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
public static class TreeWizard.TreePattern extends CommonTree
When using %label:TOKENNAME in a tree for parse(), we must track the label.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
hasTextArg
String
label
-
Fields inherited from class org.antlr.runtime.tree.CommonTree
childIndex, parent, startIndex, stopIndex, token
-
Fields inherited from interface org.antlr.runtime.tree.Tree
INVALID_NODE
-
-
Constructor Summary
Constructors Constructor Description TreePattern(Token payload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
Override to say how a node (not a tree) should look as text-
Methods inherited from class org.antlr.runtime.tree.CommonTree
dupNode, getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries
-
Methods 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
-
-