org.xerial.util.bean
Class ANTLRWalker
java.lang.Object
org.xerial.util.bean.TreeWalker
org.xerial.util.bean.ANTLRWalker
public class ANTLRWalker
- extends TreeWalker
A walker implementation for ANTLR parse trees
- Author:
- leo
|
Method Summary |
TreeNode |
getSubTree()
Gets the entire subtree beginning from the current node, and
skips the descendants. |
void |
skipDescendants()
Skip the descendants of the current node |
void |
walk()
Start walking |
void |
walk(org.antlr.runtime.tree.Tree t)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ANTLRWalker
public ANTLRWalker(String[] parserTokenNames,
TreeVisitor visitor,
org.antlr.runtime.tree.Tree parseTree)
walk
public void walk()
throws XerialException
- Description copied from class:
TreeWalker
- Start walking
- Specified by:
walk in class TreeWalker
- Throws:
XerialException
walk
public void walk(org.antlr.runtime.tree.Tree t)
throws XerialException
- Throws:
XerialException
skipDescendants
public void skipDescendants()
- Description copied from class:
TreeWalker
- Skip the descendants of the current node
- Specified by:
skipDescendants in class TreeWalker
getSubTree
public TreeNode getSubTree()
throws BeanException
- Description copied from class:
TreeWalker
- Gets the entire subtree beginning from the current node, and
skips the descendants.
- Specified by:
getSubTree in class TreeWalker
- Returns:
TreeNode representation of the tree structured data beginning from the current node
- Throws:
BeanException - TODO

This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.