Contents
Class ASTOperatorUnary
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.ASTOperatorUnary
- Since:
- 2017-11-22
-
Constructor Summary
ConstructorsConstructorDescriptionASTOperatorUnary(OperatorUnary operatorUnary, Token token, int tokenPosition, AST argument) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfromUnaryOperator(Parser.ParsedToken operand, CompileContext compileContext) booleanMethods inherited from class ASTOperator
addArgument, fromParsedOperator, genCode, getArgumentsMethods inherited from class AST
asOperand, getBoolean, getCodeGen, getNumber, getParent, getString, getToken, getTokenPosition, getValueType, returnType, setParent
-
Constructor Details
-
ASTOperatorUnary
public ASTOperatorUnary(@Nonnull OperatorUnary operatorUnary, @Nonnull Token token, int tokenPosition, @Nonnull AST argument)
-
-
Method Details
-
isConstant
public boolean isConstant()- Specified by:
isConstantin classAST
-
fromUnaryOperator
public static void fromUnaryOperator(@Nonnull Parser.ParsedToken operand, @Nonnull CompileContext compileContext) throws ParseException - Throws:
ParseException
-