Record Class CloseCallTarget.Target

java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.calls.CloseCallTarget.Target
Record Components:
ownerTypeName - the type the call names
isTraitCall - true when that type is a trait (an interface call)
isVirtualCall - true when the value's static type may hold a subtype that overrides close
Enclosing class:
CloseCallTarget

public static record CloseCallTarget.Target(String ownerTypeName, boolean isTraitCall, boolean isVirtualCall) extends Record
The CALL's target type and how it is dispatched.
  • Constructor Details

    • Target

      public Target(String ownerTypeName, boolean isTraitCall, boolean isVirtualCall)
      Creates an instance of a Target record class.
      Parameters:
      ownerTypeName - the value for the ownerTypeName record component
      isTraitCall - the value for the isTraitCall record component
      isVirtualCall - the value for the isVirtualCall 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.
    • ownerTypeName

      public String ownerTypeName()
      Returns the value of the ownerTypeName record component.
      Returns:
      the value of the ownerTypeName record component
    • isTraitCall

      public boolean isTraitCall()
      Returns the value of the isTraitCall record component.
      Returns:
      the value of the isTraitCall record component
    • isVirtualCall

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