Record Class TerminalSetup
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.TerminalSetup
record TerminalSetup(String variable, IAggregateSymbol type, MethodSymbol resolvedPipeMethod, ISymbol consumesType, boolean promotionRequired)
extends Record
Helper record for terminal sink setup results.
-
Constructor Summary
ConstructorsConstructorDescriptionTerminalSetup(String variable, IAggregateSymbol type, MethodSymbol resolvedPipeMethod, ISymbol consumesType, boolean promotionRequired) Creates an instance of aTerminalSetuprecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconsumesTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thepromotionRequiredrecord component.Returns the value of theresolvedPipeMethodrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.variable()Returns the value of thevariablerecord component.
-
Constructor Details
-
TerminalSetup
TerminalSetup(String variable, IAggregateSymbol type, MethodSymbol resolvedPipeMethod, ISymbol consumesType, boolean promotionRequired) Creates an instance of aTerminalSetuprecord class.- Parameters:
variable- the value for thevariablerecord componenttype- the value for thetyperecord componentresolvedPipeMethod- the value for theresolvedPipeMethodrecord componentconsumesType- the value for theconsumesTyperecord componentpromotionRequired- the value for thepromotionRequiredrecord 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. -
variable
Returns the value of thevariablerecord component.- Returns:
- the value of the
variablerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
resolvedPipeMethod
Returns the value of theresolvedPipeMethodrecord component.- Returns:
- the value of the
resolvedPipeMethodrecord component
-
consumesType
Returns the value of theconsumesTyperecord component.- Returns:
- the value of the
consumesTyperecord component
-
promotionRequired
public boolean promotionRequired()Returns the value of thepromotionRequiredrecord component.- Returns:
- the value of the
promotionRequiredrecord component
-