|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.jane.jjtree.JJTreeUtils
Utilities for parsing/manipulating JJTree constructs.
Constructor Summary | |
JJTreeUtils()
|
Method Summary | |
static ChildNodeEnumeration |
childNodes(Node parent,
java.lang.Class type)
Returns the child nodes of the given type. |
static Node |
findChild(Node parent,
int startingIndex,
java.lang.Class type)
Find the first child node of the given type, starting at the given index. |
static Node |
findFirstChild(Node parent,
java.lang.Class type)
Find the first child node of the given type. |
static Node |
findFirstDescendant(Node parent,
java.lang.Class type)
Find the first descendant node of the given type. |
static JavaCompilationUnit |
getCompilationUnit(Node node)
Returns the compilation unit. |
static java.lang.String[] |
getNameListArray(Node parent)
Returns an array of names from a JavaNameList . |
static java.lang.String |
getNormalizedTokenImage(int kind)
Returns the image of the given kind of token. |
static JavaCompilationUnit |
parse(java.io.InputStream in)
Parse the given input stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JJTreeUtils()
Method Detail |
public static ChildNodeEnumeration childNodes(Node parent, java.lang.Class type)
public static Node findChild(Node parent, int startingIndex, java.lang.Class type)
public static Node findFirstChild(Node parent, java.lang.Class type)
public static Node findFirstDescendant(Node parent, java.lang.Class type)
public static java.lang.String[] getNameListArray(Node parent)
JavaNameList
.public static java.lang.String getNormalizedTokenImage(int kind)
public static JavaCompilationUnit getCompilationUnit(Node node)
public static JavaCompilationUnit parse(java.io.InputStream in) throws ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |