Class ASTOperatorBinary
java.lang.Object
com.hypixel.hytale.server.npc.util.expression.compile.ast.AST
com.hypixel.hytale.server.npc.util.expression.compile.ast.ASTOperator
com.hypixel.hytale.server.npc.util.expression.compile.ast.ASTOperatorBinary
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionASTOperatorBinary(OperatorBinary operatorBinary, Token token, int tokenPosition, AST lhs, AST rhs) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfromBinaryOperator(Parser.ParsedToken operator, CompileContext compileContext) booleanMethods inherited from class com.hypixel.hytale.server.npc.util.expression.compile.ast.ASTOperator
addArgument, fromParsedOperator, genCode, getArgumentsMethods inherited from class com.hypixel.hytale.server.npc.util.expression.compile.ast.AST
asOperand, getBoolean, getCodeGen, getNumber, getParent, getString, getToken, getTokenPosition, getValueType, returnType, setParent
-
Constructor Details
-
ASTOperatorBinary
public ASTOperatorBinary(@Nonnull OperatorBinary operatorBinary, @Nonnull Token token, int tokenPosition, @Nonnull AST lhs, @Nonnull AST rhs)
-
-
Method Details
-
isConstant
public boolean isConstant()- Specified by:
isConstantin classAST
-
fromBinaryOperator
public static void fromBinaryOperator(@Nonnull Parser.ParsedToken operator, @Nonnull CompileContext compileContext) throws ParseException - Throws:
ParseException
-