|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gate.yam.parse.YamParseTree
public class YamParseTree
The parse tree and related state created by parsing a YAM file. Forms the input to YAM translators.
Constructor Summary | |
---|---|
YamParseTree()
Construction. |
Method Summary | |
---|---|
void |
addHeadingNode(Node headingNode)
Add a heading node. |
SimpleNode |
getContentsNode()
Get the contents node of the tree. |
List |
getErrors()
Get the list of errors encountered during parsing. |
List |
getHeadingNodes()
Get the list of heading nodes. |
List<String> |
getIncludes()
Get the list of includes of other local files made in the YAM source. |
List<String> |
getLinks()
Get the list of links to other local files made from the YAM source. |
int |
getNumNodes(SimpleNode node)
Count the number of nodes in a (sub)tree. |
SimpleNode |
getRootNode()
Get the root node of the tree. |
SimpleNode |
getTitleNode()
Get the title node of the tree. |
List |
getWarnings()
Get the list of warnings encountered during parsing. |
void |
merge(YamParseTree other)
Merge another tree with this one. |
void |
reset()
Reset the output strings on all nodes in the tree. |
void |
setContentsNode(Node contentsNode)
Set the contents node of the tree. |
void |
setRootNode(Node rootNode)
Set the root node of the tree. |
void |
setTitleNode(Node titleNode)
Set the title node of the tree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public YamParseTree()
Method Detail |
---|
public SimpleNode getRootNode()
public void setRootNode(Node rootNode)
public SimpleNode getTitleNode()
public void setTitleNode(Node titleNode)
public SimpleNode getContentsNode()
public void setContentsNode(Node contentsNode)
public List getHeadingNodes()
public void addHeadingNode(Node headingNode)
public List getErrors()
public List getWarnings()
public void reset()
public int getNumNodes(SimpleNode node)
public void merge(YamParseTree other)
public List<String> getLinks()
public List<String> getIncludes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |