| java.lang.Object persistence.antlr.TreeParser
TreeParser | public class TreeParser (Code) | | |
ASTNULL | public static ASTNULLType ASTNULL(Code) | | The AST Null object; the parsing cursor is set to this when
it is found to be null. This way, we can test the
token type of a node without having to have tests for null
everywhere.
|
_retTree | protected AST _retTree(Code) | | Where did this rule leave off parsing; avoids a return parameter
|
astFactory | protected ASTFactory astFactory(Code) | | AST support code; parser and treeparser delegate to this object
|
returnAST | protected AST returnAST(Code) | | AST return value for a rule is squirreled away here
|
tokenNames | protected String[] tokenNames(Code) | | Table of token type to token names
|
traceDepth | protected int traceDepth(Code) | | Used to keep track of indentdepth for traceIn/Out
|
TreeParser | public TreeParser()(Code) | | |
getAST | public AST getAST()(Code) | | Get the AST return value squirreled away in the parser
|
match | public void match(AST t, BitSet b) throws MismatchedTokenException(Code) | | Make sure current lookahead symbol matches the given set
Throw an exception upon mismatch, which is catch by either the
error handler or by the syntactic predicate.
|
panic | public static void panic()(Code) | | |
reportError | public void reportError(String s)(Code) | | Parser error-reporting function can be overridden in subclass
|
reportWarning | public void reportWarning(String s)(Code) | | Parser warning-reporting function can be overridden in subclass
|
setASTFactory | public void setASTFactory(ASTFactory f)(Code) | | Specify an object with support code (shared by
Parser and TreeParser. Normally, the programmer
does not play with this, using setASTNodeType instead.
|
setASTNodeClass | public void setASTNodeClass(String nodeType)(Code) | | Specify the type of node to create during tree building
|
setASTNodeType | public void setASTNodeType(String nodeType)(Code) | | Specify the type of node to create during tree building.
|
traceIndent | public void traceIndent()(Code) | | |
|
|