Record Class ObjectAccessInstrGenerator.ChainStepResult
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.ObjectAccessInstrGenerator.ChainStepResult
- Record Components:
tempName- The temp variable holding the resulttypeSymbol- The type of the resultisVoid- True if this was a void-returning method (no result to store)isExplicitTraitTypeRef- True if this represents an explicit trait type reference (e.g., TraitName in TraitName.method() syntax) rather than a variable of trait type. Used to generate INVOKESPECIAL for calling trait default methods.
- Enclosing class:
ObjectAccessInstrGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionChainStepResult(String tempName, ISymbol typeSymbol, boolean isVoid, boolean isExplicitTraitTypeRef) Creates an instance of aChainStepResultrecord 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.booleanReturns the value of theisExplicitTraitTypeRefrecord component.booleanisVoid()Returns the value of theisVoidrecord component.tempName()Returns the value of thetempNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeSymbolrecord component.
-
Constructor Details
-
ChainStepResult
ChainStepResult(String tempName, ISymbol typeSymbol, boolean isVoid, boolean isExplicitTraitTypeRef) Creates an instance of aChainStepResultrecord class.- Parameters:
tempName- the value for thetempNamerecord componenttypeSymbol- the value for thetypeSymbolrecord componentisVoid- the value for theisVoidrecord componentisExplicitTraitTypeRef- the value for theisExplicitTraitTypeRefrecord 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. -
tempName
-
typeSymbol
Returns the value of thetypeSymbolrecord component.- Returns:
- the value of the
typeSymbolrecord component
-
isVoid
-
isExplicitTraitTypeRef
public boolean isExplicitTraitTypeRef()Returns the value of theisExplicitTraitTypeRefrecord component.- Returns:
- the value of the
isExplicitTraitTypeRefrecord component
-