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 Summary
ConstructorsConstructorDescriptionContext(ValueDeseralizationContext values, IntFunction<IValueType<?>> refTypes, Function<String, it.unimi.dsi.fastutil.ints.IntList> labelIds, Predicate<IValueType<?>> parameterTypes, Predicate<IOperator> operators) Creates an instance of aContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.labelIds()Returns the value of thelabelIdsrecord component.static ExpressionParser.Contextof(ValueDeseralizationContext values) Returns the value of theoperatorsrecord component.Predicate<IValueType<?>> Returns the value of theparameterTypesrecord component.refTypes()Returns the value of therefTypesrecord component.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
Context
public Context(ValueDeseralizationContext values, IntFunction<IValueType<?>> refTypes, Function<String, it.unimi.dsi.fastutil.ints.IntList> labelIds, Predicate<IValueType<?>> parameterTypes, Predicate<IOperator> operators) Creates an instance of aContextrecord class.- Parameters:
values- the value for thevaluesrecord componentrefTypes- the value for therefTypesrecord componentlabelIds- the value for thelabelIdsrecord componentparameterTypes- the value for theparameterTypesrecord componentoperators- the value for theoperatorsrecord component
-
-
Method Details
-
of
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
values
-
refTypes
-
labelIds
-
parameterTypes
Returns the value of theparameterTypesrecord component.- Returns:
- the value of the
parameterTypesrecord component
-
operators
-