Class TreeWizard.TreePatternTreeAdaptor
java.lang.Object
org.antlr.runtime.tree.BaseTreeAdaptor
org.antlr.runtime.tree.CommonTreeAdaptor
org.antlr.runtime.tree.TreeWizard.TreePatternTreeAdaptor
- All Implemented Interfaces:
TreeAdaptor
- Enclosing class:
TreeWizard
This adaptor creates TreePattern objects for use during scan()
-
Field Summary
Fields inherited from class BaseTreeAdaptor
treeToUniqueIDMap, uniqueNodeID -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class CommonTreeAdaptor
createToken, createToken, dupNode, getChild, getChildCount, getChildIndex, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, replaceChildren, setChildIndex, setParent, setTokenBoundariesMethods inherited from class BaseTreeAdaptor
addChild, becomeRoot, becomeRoot, create, create, create, deleteChild, dupTree, dupTree, errorNode, getUniqueID, isNil, nil, rulePostProcessing, setChild, setText, setType
-
Constructor Details
-
TreePatternTreeAdaptor
public TreePatternTreeAdaptor()
-
-
Method Details
-
create
Description copied from interface:TreeAdaptorCreate a tree node from Token object; for CommonTree type trees, then the token just becomes the payload. This is the most common create call. Override if you want another kind of node to be built.- Specified by:
createin interfaceTreeAdaptor- Overrides:
createin classCommonTreeAdaptor
-