|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.chartparser.ParseTreeNode
public class ParseTreeNode
This class represents a node of the parse tree. Each node has a category and an annotation object that are carried over from the edge in the chart parser and originate from the respective grammar rule. Additionally, each parse node has start and end positions denoting the covered part of the input text.
Method Summary | |
---|---|
Annotation |
getAnnotation()
Returns the annotation object of this node. |
java.lang.Object |
getAnnotationItem(java.lang.String name)
Returns the annotation item for the given annotation item name. |
Category |
getCategory()
Returns the category of this node. |
ParseTreeNode |
getChild(int i)
Returns the child at the given position. |
java.util.List<ParseTreeNode> |
getChildren()
Returns the children of this node. |
int |
getEndPos()
Returns the end position. |
int |
getStartPos()
Returns the start position. |
java.util.List<Terminal> |
getTerminals()
Returns the list of terminals that are descendants of this node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Category getCategory()
public int getStartPos()
public int getEndPos()
public Annotation getAnnotation()
public java.lang.Object getAnnotationItem(java.lang.String name)
name
- The name of the annotation item.
public java.util.List<ParseTreeNode> getChildren()
public ParseTreeNode getChild(int i)
i
- The position.
public java.util.List<Terminal> getTerminals()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |