Contents
Class ASTOperand
java.lang.Object
com.hypixel.hytale.server.npc.util.expression.compile.ast.AST
com.hypixel.hytale.server.npc.util.expression.compile.ast.ASTOperand
- Direct Known Subclasses:
ASTOperandBoolean, ASTOperandBooleanArray, ASTOperandEmptyArray, ASTOperandIdentifier, ASTOperandNumber, ASTOperandNumberArray, ASTOperandString, ASTOperandStringArray
ASTOperands are the leaves of the abstract syntax tree.
- Since:
- 2017-11-22
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ASTOperandcreateFromOperand(Token token, int tokenPosition, ExecutionContext.Operand operand) static ASTOperandcreateFromParsedToken(Parser.ParsedToken operand, CompileContext compileContext) Methods inherited from class AST
asOperand, genCode, getBoolean, getCodeGen, getNumber, getParent, getString, getToken, getTokenPosition, getValueType, isConstant, returnType, setParent
-
Constructor Details
-
ASTOperand
-
-
Method Details
-
createFromParsedToken
@Nonnull public static ASTOperand createFromParsedToken(@Nonnull Parser.ParsedToken operand, @Nonnull CompileContext compileContext) -
createFromOperand
@Nonnull public static ASTOperand createFromOperand(@Nonnull Token token, int tokenPosition, @Nonnull ExecutionContext.Operand operand)
-