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.
Method Summary |
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 |
label
public String label
hasTextArg
public boolean hasTextArg
TreeWizard.TreePattern
public TreeWizard.TreePattern(Token payload)
toString
public String toString()
- Description copied from class:
BaseTree
- Override to say how a node (not a tree) should look as text
- Specified by:
toString
in interface Tree
- Overrides:
toString
in class CommonTree
Copyright © 2011. All Rights Reserved.