| |
|
| java.lang.Object javaparser.RAWSyntaxTree
RAWSyntaxTree | public class RAWSyntaxTree implements ParserOutputProcessor(Code) | | This builds the complete syntax tree as the tokens come from the trace methods of the parser.
|
Method Summary | |
public void | addLeaf(Token t) Called by the parser when it has encountered a token
at the current treeposition, which is defined by all
already received calls of addNode() and returnFromNode(). | public void | addNode(String name) | public static void | main(String[] arguments) | public void | returnFromNode(String name) | public void | terminateRecurse() | public static void | testNewRAWTree() two times quicker using RAWTreeNode as MutableTN... |
addLeaf | public void addLeaf(Token t)(Code) | | Called by the parser when it has encountered a token
at the current treeposition, which is defined by all
already received calls of addNode() and returnFromNode().
|
returnFromNode | public void returnFromNode(String name)(Code) | | Called by the parser when it returns from a previously
encountered node (for which it has called addNode)
|
terminateRecurse | public void terminateRecurse()(Code) | | |
testNewRAWTree | public static void testNewRAWTree() throws Exception(Code) | | two times quicker using RAWTreeNode as MutableTN...
OLd tree: 483 171 156 187 171
New tree:
With recycling: 109 78 62 62 63 62 78 62 156 62
RAWParserTreeNodeFactory: 57709 free, 519291 reused.
Without 109 124 94 124 78 125 77 125 78 125
Directcreat 109 109 78 124 78 125 78 124 78 125
|
|
|
|