Package org.antlr.runtime.tree
Class TreeWizard.TreePattern
java.lang.Object
org.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
org.antlr.runtime.tree.TreeWizard.TreePattern
- All Implemented Interfaces:
Tree
- Direct Known Subclasses:
TreeWizard.WildcardTreePattern
- Enclosing class:
TreeWizard
When using %label:TOKENNAME in a tree for parse(), we must
track the label.
-
Field Summary
FieldsFields inherited from class org.antlr.runtime.tree.CommonTree
childIndex, parent, startIndex, stopIndex, tokenFields inherited from interface org.antlr.runtime.tree.Tree
INVALID_NODE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.antlr.runtime.tree.CommonTree
dupNode, getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundariesMethods inherited from class org.antlr.runtime.tree.BaseTree
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
-
Field Details
-
label
-
hasTextArg
public boolean hasTextArg
-
-
Constructor Details
-
TreePattern
-
-
Method Details
-
toString
Description copied from class:BaseTreeOverride to say how a node (not a tree) should look as text- Specified by:
toStringin interfaceTree- Overrides:
toStringin classCommonTree
-