Record Class CloseSteps.Steps
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.CloseSteps.Steps
- Record Components:
closed- the fields closed, in ACQUISITION order (closed in reverse: last made, first closed)parentClose- the super class's close, called non-virtually after them
- Enclosing class:
CloseSteps
public static record CloseSteps.Steps(List<ISymbol> closed, Optional<MethodSymbol> parentClose)
extends Record
What a type's close closes, and the parent close it then calls.
-
Constructor Summary
ConstructorsConstructorDescriptionSteps(List<ISymbol> closed, Optional<MethodSymbol> parentClose) Creates an instance of aStepsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclosed()Returns the value of theclosedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Nothing to close and no parent close: nothing is generated.Returns the value of theparentCloserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Steps
Creates an instance of aStepsrecord class.- Parameters:
closed- the value for theclosedrecord componentparentClose- the value for theparentCloserecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()Nothing to close and no parent close: nothing is generated. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
closed
-
parentClose
Returns the value of theparentCloserecord component.- Returns:
- the value of the
parentCloserecord component
-