Record Class ObjectSharing.Reach

java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.ObjectSharing.Reach
Record Components:
givenThis - this (or super) is the receiver - written, or implied by a bare call of a method - or an argument
named - the variables it is given: receiver and arguments, and what a list literal, a constructor call or a coalescing operator among the arguments holds
someOtherObject - it is given an object nothing here can name: a call's result that may be an existing object, a delegate's code, a stream stage
Enclosing class:
ObjectSharing

public static record ObjectSharing.Reach(boolean givenThis, List<ISymbol> named, boolean someOtherObject) extends Record
What a call can REACH (D66, Steve 2026-10-21): the objects it is given.
  • Constructor Details

    • Reach

      public Reach(boolean givenThis, List<ISymbol> named, boolean someOtherObject)
      Creates an instance of a Reach record class.
      Parameters:
      givenThis - the value for the givenThis record component
      named - the value for the named record component
      someOtherObject - the value for the someOtherObject record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • givenThis

      public boolean givenThis()
      Returns the value of the givenThis record component.
      Returns:
      the value of the givenThis record component
    • named

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

      public boolean someOtherObject()
      Returns the value of the someOtherObject record component.
      Returns:
      the value of the someOtherObject record component