AST

abstract class AST

Class AST. Provides ast functionality for the Hytale server.

java.lang.Object > AST

Field Summary

parent

private AST parent

Field parent.

Method Detail

AST

public public AST (@Nonnull final ValueType valueType, @Nonnull final Token token, final int tokenPosition)

Method AST.

Parameters:
@Nonnull final ValueType valueType
@Nonnull final Token token
final int tokenPosition

getParent

public AST getParent ()

Method getParent.

setParent

public void setParent (final AST parent)

Method setParent.

Parameters:
final AST parent

getValueType

public ValueType getValueType ()

Method getValueType.

getToken

public Token getToken ()

Method getToken.

getTokenPosition

public int getTokenPosition ()

Method getTokenPosition.

getCodeGen

public ExecutionContext.Instruction> getCodeGen ()

Method getCodeGen.

asOperand

public ExecutionContext.Operand asOperand ()

Method asOperand.

getString

public String getString ()

Method getString.

getBoolean

public boolean getBoolean ()

Method getBoolean.

getNumber

public double getNumber ()

Method getNumber.

returnType

public ValueType returnType ()

Method returnType.

genCode

public ValueType genCode (@Nonnull final List list, final Scope scope)

Method genCode.

Parameters:
@Nonnull final List list
final Scope scope