|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.chartparser.ParseTree
public class ParseTree
This class represents the parse tree of a successfully parsed text.
Method Summary | |
---|---|
java.lang.String |
getAsciiLambdaSemTree()
Returns an ASCII representation of the semantics tree under lambda interpretation. |
java.lang.String |
getAsciiSemTree()
Returns an ASCII representation of the semantics tree. |
java.lang.String |
getAsciiSynTree()
Returns an ASCII representation of the syntax tree. |
int |
getEndPos()
Returns the end position of this tree. |
java.lang.Object |
getLambdaSemTree()
Returns the semantics tree, interpreted as a lambda expression. |
java.lang.Object |
getSemTree()
Returns the semantics tree. |
java.lang.String |
getSerializedLambdaSemTree()
Returns a serialization of the semantics tree under lambda interpretation. |
java.lang.String |
getSerializedSemTree()
Returns a serialization of the semantics tree. |
java.lang.String |
getSerializedSynTree()
Returns a serialization of the syntax tree. |
int |
getStartPos()
Returns the start position of this tree. |
java.util.List<ParseTree> |
getSubTrees(java.lang.String categoryName)
Returns all subtrees that have the given category name as their top node. |
java.lang.Object |
getSynTree()
Returns the syntax tree. |
java.util.List<Terminal> |
getTerminals()
Returns the list of terminals of this tree. |
ParseTreeNode |
getTopNode()
Returns the top node of the parse tree. |
void |
setApplicationFunctor(java.lang.String appFunctor)
Sets the functor of the application function for the calculation of lambda semantics. |
void |
setConcatFunctor(java.lang.String concatFunctor)
Sets the functor of the concatenation function for the calculation of semantics. |
void |
setLambdaFunctor(java.lang.String lamFunctor)
Sets the functor of the lambda function for the calculation of lambda semantics. |
void |
setSemanticsLabel(java.lang.String semLabel)
Sets the name of the annotation item that contains the semantics information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getStartPos()
public int getEndPos()
public void setSemanticsLabel(java.lang.String semLabel)
semLabel
- The name of the annotation item containing the semantics.public void setLambdaFunctor(java.lang.String lamFunctor)
lamFunctor
- The lambda functor.public void setApplicationFunctor(java.lang.String appFunctor)
appFunctor
- The application functor.public void setConcatFunctor(java.lang.String concatFunctor)
concatFunctor
- The concatentation functor.public ParseTreeNode getTopNode()
public java.lang.Object getSynTree()
public java.lang.String getSerializedSynTree()
public java.lang.String getAsciiSynTree()
public java.lang.Object getSemTree()
public java.lang.String getSerializedSemTree()
public java.lang.String getAsciiSemTree()
public java.lang.Object getLambdaSemTree()
public java.lang.String getSerializedLambdaSemTree()
public java.lang.String getAsciiLambdaSemTree()
public java.util.List<ParseTree> getSubTrees(java.lang.String categoryName)
categoryName
- The category name.
public java.util.List<Terminal> getTerminals()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |