|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.gate.yam.parse.YamParseTree
class YamParseTree
The parse tree and related state created by parsing a YAM file. Forms the input to YAM translators.
Field Summary | |
---|---|
SimpleNode |
contentsNode
The contents node of the tree. |
List |
errors
A list of errors encountered during parsing. |
List |
headingNodes
The heading nodes of the tree. |
List |
includes
A list of includes of other local files made in the YAM source. |
List |
links
A list of links to other local files made from the YAM source. |
SimpleNode |
rootNode
The root node of the tree. |
SimpleNode |
titleNode
The title node of the tree. |
List |
warnings
A list of warnings encountered during parsing. |
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
|
getIncludes()
Get the list of includes of other local files made in the YAM source. |
List
|
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. |
int
|
getNumNodes(int n, SimpleNode node)
Helper to 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
|
reset(SimpleNode n)
Recursive helper method for { |
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 Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
SimpleNode contentsNode
List errors
List headingNodes
List includes
List links
SimpleNode rootNode
SimpleNode titleNode
List warnings
Constructor Detail |
---|
public YamParseTree()
Method Detail |
---|
public void addHeadingNode(Node headingNode)
public SimpleNode getContentsNode()
public List getErrors()
public List getHeadingNodes()
public List getIncludes()
public List getLinks()
public int getNumNodes(SimpleNode node)
public int getNumNodes(int n, SimpleNode node)
public SimpleNode getRootNode()
public SimpleNode getTitleNode()
public List getWarnings()
public void merge(YamParseTree other)
public void reset()
public void reset(SimpleNode n)
public void setContentsNode(Node contentsNode)
public void setRootNode(Node rootNode)
public void setTitleNode(Node titleNode)
Groovy Documentation