HyCodeYourTale
classpublicPriority 3

CompileContext

com.hypixel.hytale.server.npc.util.expression.compile.CompileContext

implements Parser.ParsedTokenConsumer

16

Methods

16

Public Methods

4

Fields

2

Constructors

Constructors

public
CompileContext()
public
CompileContext(Scope scope)

Methods

Public Methods (16)

public
void checkResultType(ValueType type)
public
ValueType compile(String expression, Scope compileScope, boolean fullResolve)
public
ValueType compile(String expression, Scope compileScope, boolean fullResolve, List<ExecutionContext.Instruction> instructions)
public
ValueType compile(String expression, boolean fullResolve)
public
void done()
@Override
public
ExecutionContext.Operand getAsOperand()
@Nullable
public
ExecutionContext getExecutionContext()
@Nonnull
public
List<ExecutionContext.Instruction> getInstructions()
public
Stack<AST> getOperandStack()
@Nonnull
public
ValueType getResultType()
public
Scope getScope()
public
void processFunction(int argumentCount)

throws ParseException

@Override
public
void processOperator(Parser.ParsedToken operator)

throws ParseException

@Override
public
void processTuple(Parser.ParsedToken openingToken, int argumentCount)
@Override
public
void pushOperand(Parser.ParsedToken parsedToken)
@Override
public
void setInstructions(List<ExecutionContext.Instruction> instructionList)

Fields

Private/Package Fields (4)

privateExecutionContext executionContext
privateList<ExecutionContext.Instruction> instructions
privateValueType resultType
privateScope scope

Related Classes