Record Class ConstructionEdges.MustCall
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.construction.ConstructionEdges.MustCall
- Record Components:
target- what it reachestoken- where it is - the call site, or the constructor or type for a step construction takesexplicitCall- true for a call written in the source; false for a step construction takes implicitly
- Enclosing class:
ConstructionEdges
public static record ConstructionEdges.MustCall(ConstructionEdges.Target target, IToken token, boolean explicitCall)
extends Record
One always-run call.
-
Constructor Summary
ConstructorsConstructorDescriptionMustCall(ConstructionEdges.Target target, IToken token, boolean explicitCall) Creates an instance of aMustCallrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexplicitCallrecord component.final inthashCode()Returns a hash code value for this object.target()Returns the value of thetargetrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MustCall
Creates an instance of aMustCallrecord class.- Parameters:
target- the value for thetargetrecord componenttoken- the value for thetokenrecord componentexplicitCall- the value for theexplicitCallrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
target
-
token
-
explicitCall
public boolean explicitCall()Returns the value of theexplicitCallrecord component.- Returns:
- the value of the
explicitCallrecord component
-