|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object antlr.TreeParser com.evelopers.unimod.runtime.interpretation.GuardInterpreter
AST Tree Interpreter
Field Summary | |
static java.lang.String[] |
_tokenNames
|
Fields inherited from class antlr.TreeParser |
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth |
Fields inherited from interface com.evelopers.unimod.runtime.interpretation.GuardInterpreterTokenTypes |
AND, CONST_BOOL, CONST_BOOL_OR_IDENT, CONST_NUM, DIGIT, EOF, EQUAL, FALSE, GE, GT, IDENT, LE, LETTER, LPAREN, LT, NAME, NEQUAL, NOT, NULL_TREE_LOOKAHEAD, OR, RPAREN, TRUE, WS |
Constructor Summary | |
GuardInterpreter()
|
Method Summary | |
int |
i5(antlr.collections.AST _t)
|
static boolean |
interpret(antlr.collections.AST ast,
StateMachineContext context,
CalculatedInputActions inputActions)
Interpret expression of given guard. |
static boolean |
interpret(Guard c,
StateMachineContext context,
CalculatedInputActions inputActions)
Interpret expression of given guard. |
boolean |
s(antlr.collections.AST _t)
|
Methods inherited from class antlr.TreeParser |
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, reportError, reportError, reportWarning, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String[] _tokenNames
Constructor Detail |
public GuardInterpreter()
Method Detail |
public static boolean interpret(Guard c, StateMachineContext context, CalculatedInputActions inputActions) throws InterpreterException
Guard.ELSE
.
InterpreterException
public static boolean interpret(antlr.collections.AST ast, StateMachineContext context, CalculatedInputActions inputActions) throws InterpreterException
Guard.ELSE
.
TODO: make pool of interpreters
InterpreterException
public final boolean s(antlr.collections.AST _t) throws antlr.RecognitionException, InterpreterException
antlr.RecognitionException
InterpreterException
public final int i5(antlr.collections.AST _t) throws antlr.RecognitionException, InterpreterException
antlr.RecognitionException
InterpreterException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |