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 Details

    • Steps

      public Steps(List<ISymbol> closed, Optional<MethodSymbol> parentClose)
      Creates an instance of a Steps record class.
      Parameters:
      closed - the value for the closed record component
      parentClose - the value for the parentClose record component
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Nothing to close and no parent close: nothing is generated.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • closed

      public List<ISymbol> closed()
      Returns the value of the closed record component.
      Returns:
      the value of the closed record component
    • parentClose

      public Optional<MethodSymbol> parentClose()
      Returns the value of the parentClose record component.
      Returns:
      the value of the parentClose record component