org.xerial.amoeba.query
Class ANTLRUtil
java.lang.Object
org.xerial.amoeba.query.ANTLRUtil
public class ANTLRUtil
- extends Object
Utiltiles to manipulate ANTLR parse trees
- Author:
- leo
|
Constructor Summary |
protected |
ANTLRUtil()
Non constractable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ANTLRUtil
protected ANTLRUtil()
- Non constractable
getFirstNode
public static org.antlr.runtime.tree.Tree getFirstNode(org.antlr.runtime.tree.Tree t,
int tokenType)
getNodeList
public static ArrayList<org.antlr.runtime.tree.Tree> getNodeList(org.antlr.runtime.tree.Tree t,
int tokenType)
getFirstNodeValue
public static String getFirstNodeValue(org.antlr.runtime.tree.Tree t,
int tokenType)
getValueList
public static ArrayList<String> getValueList(org.antlr.runtime.tree.Tree t,
int tokenType)
toString
public static String toString(org.antlr.runtime.tree.Tree t)

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