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
java.lang.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 java.lang.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
-
-
-
-
Constructor Detail
-
TreePattern
public TreePattern(Token payload)
-
-
Method Detail
-
toString
public java.lang.String toString()
Description copied from class:BaseTree
Override to say how a node (not a tree) should look as text- Specified by:
toString
in interfaceTree
- Overrides:
toString
in classCommonTree
-
-