Record Class StreamTermination
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.streams.StreamTermination
- Record Components:
terminationOp- the termination's token type,EK9Parser.GTorEK9Parser.SHFTRtarget- the type of the terminal's receiver
-
Constructor Summary
ConstructorsConstructorDescriptionStreamTermination(int terminationOp, ISymbol target) Creates an instance of aStreamTerminationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.target()Returns the value of thetargetrecord component.intReturns the value of theterminationOprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StreamTermination
Creates an instance of aStreamTerminationrecord class.- Parameters:
terminationOp- the value for theterminationOprecord componenttarget- the value for thetargetrecord 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. -
terminationOp
public int terminationOp()Returns the value of theterminationOprecord component.- Returns:
- the value of the
terminationOprecord component
-
target
-