Record Class GettersPack.CallProperties

java.lang.Object
java.lang.Record
com.j3d.jaiva.packs.getters.GettersPack.CallProperties
Enclosing class:
GettersPack

public static record GettersPack.CallProperties(com.jaiva.tokenizer.tokens.specific.TFuncCall call, com.jaiva.interpreter.Scope scope, com.jaiva.interpreter.runtime.IConfig<Object> config) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final com.jaiva.tokenizer.tokens.specific.TFuncCall
    The field for the call record component.
    private final com.jaiva.interpreter.runtime.IConfig<Object>
    The field for the config record component.
    private final com.jaiva.interpreter.Scope
    The field for the scope record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CallProperties(com.jaiva.tokenizer.tokens.specific.TFuncCall call, com.jaiva.interpreter.Scope scope, com.jaiva.interpreter.runtime.IConfig<Object> config)
    Creates an instance of a CallProperties record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.jaiva.tokenizer.tokens.specific.TFuncCall
    Returns the value of the call record component.
    com.jaiva.interpreter.runtime.IConfig<Object>
    Returns the value of the config record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    com.jaiva.interpreter.Scope
    Returns the value of the scope record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • call

      private final com.jaiva.tokenizer.tokens.specific.TFuncCall call
      The field for the call record component.
    • scope

      private final com.jaiva.interpreter.Scope scope
      The field for the scope record component.
    • config

      private final com.jaiva.interpreter.runtime.IConfig<Object> config
      The field for the config record component.
  • Constructor Details

    • CallProperties

      public CallProperties(com.jaiva.tokenizer.tokens.specific.TFuncCall call, com.jaiva.interpreter.Scope scope, com.jaiva.interpreter.runtime.IConfig<Object> config)
      Creates an instance of a CallProperties record class.
      Parameters:
      call - the value for the call record component
      scope - the value for the scope record component
      config - the value for the config 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. 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.
    • call

      public com.jaiva.tokenizer.tokens.specific.TFuncCall call()
      Returns the value of the call record component.
      Returns:
      the value of the call record component
    • scope

      public com.jaiva.interpreter.Scope scope()
      Returns the value of the scope record component.
      Returns:
      the value of the scope record component
    • config

      public com.jaiva.interpreter.runtime.IConfig<Object> config()
      Returns the value of the config record component.
      Returns:
      the value of the config record component