Record Class ExpressionParser.Context

java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.core.evaluate.expression.tree.ExpressionParser.Context
Record Components:
values - For deserializing values that are written with their type, such as items.
refTypes - Resolves the type of a variable id, may return null when unknown.
labelIds - Resolves the ids of the variables with a label.
parameterTypes - The types that parameters can have.
operators - The operators that can be used, not counting operators used as values.
Enclosing class:
ExpressionParser

public static record ExpressionParser.Context(ValueDeseralizationContext values, IntFunction<IValueType<?>> refTypes, Function<String, it.unimi.dsi.fastutil.ints.IntList> labelIds, Predicate<IValueType<?>> parameterTypes, Predicate<IOperator> operators) extends Record
What the parser needs to know about the world.
  • Constructor Details

  • Method Details

    • of

    • 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.
    • values

      public ValueDeseralizationContext values()
      Returns the value of the values record component.
      Returns:
      the value of the values record component
    • refTypes

      public IntFunction<IValueType<?>> refTypes()
      Returns the value of the refTypes record component.
      Returns:
      the value of the refTypes record component
    • labelIds

      public Function<String, it.unimi.dsi.fastutil.ints.IntList> labelIds()
      Returns the value of the labelIds record component.
      Returns:
      the value of the labelIds record component
    • parameterTypes

      public Predicate<IValueType<?>> parameterTypes()
      Returns the value of the parameterTypes record component.
      Returns:
      the value of the parameterTypes record component
    • operators

      public Predicate<IOperator> operators()
      Returns the value of the operators record component.
      Returns:
      the value of the operators record component