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
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ASTOperandcreateFromOperand(Token token, int tokenPosition, ExecutionContext.Operand operand) static ASTOperandcreateFromParsedToken(Parser.ParsedToken operand, CompileContext compileContext) private static ASTOperandcreateFromScopeConstant(Token token, int tokenPosition, Scope scope, String identifier) Methods inherited from class com.hypixel.hytale.server.npc.util.expression.compile.ast.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) -
createFromScopeConstant
@Nonnull private static ASTOperand createFromScopeConstant(@Nonnull Token token, int tokenPosition, @Nonnull Scope scope, String identifier) -
createFromOperand
@Nonnull public static ASTOperand createFromOperand(@Nonnull Token token, int tokenPosition, @Nonnull ExecutionContext.Operand operand)
-