Record Class ExpressionParser.Tokenized
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.core.evaluate.expression.tree.ExpressionParser.Tokenized
- Record Components:
expression- The expression of a text.tokens- The text as tokens, which tell what node each part of the text belongs to.
- Enclosing class:
ExpressionParser
public static record ExpressionParser.Tokenized(Expression expression, List<ExpressionPrinter.Token> tokens)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTokenized(Expression expression, List<ExpressionPrinter.Token> tokens) Creates an instance of aTokenizedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.tokens()Returns the value of thetokensrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Tokenized
Creates an instance of aTokenizedrecord class.- Parameters:
expression- the value for theexpressionrecord componenttokens- the value for thetokensrecord component
-
-
Method Details
-
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). -
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
tokens
-