com.evelopers.unimod.runtime.interpretation
Class GuardInterpreter

java.lang.Object
  extended byantlr.TreeParser
      extended bycom.evelopers.unimod.runtime.interpretation.GuardInterpreter
All Implemented Interfaces:
GuardInterpreterTokenTypes

public class GuardInterpreter
extends antlr.TreeParser
implements GuardInterpreterTokenTypes

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

_tokenNames

public static final java.lang.String[] _tokenNames
Constructor Detail

GuardInterpreter

public GuardInterpreter()
Method Detail

interpret

public static boolean interpret(Guard c,
                                StateMachineContext context,
                                CalculatedInputActions inputActions)
                         throws InterpreterException
Interpret expression of given guard. Returns "true" if given Guard is Guard.ELSE.

Throws:
InterpreterException

interpret

public static boolean interpret(antlr.collections.AST ast,
                                StateMachineContext context,
                                CalculatedInputActions inputActions)
                         throws InterpreterException
Interpret expression of given guard. Returns "true" if given Guard is Guard.ELSE. TODO: make pool of interpreters

Throws:
InterpreterException

s

public final boolean s(antlr.collections.AST _t)
                throws antlr.RecognitionException,
                       InterpreterException
Throws:
antlr.RecognitionException
InterpreterException

i5

public final int i5(antlr.collections.AST _t)
             throws antlr.RecognitionException,
                    InterpreterException
Throws:
antlr.RecognitionException
InterpreterException