|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectasd.ASDPhraseNode
public class ASDPhraseNode
Instances are nodes in an ASD phrase structure, which results from a partial or complete parse of a given phrase.
| Constructor Summary | |
|---|---|
ASDPhraseNode()
Initializes an ASDPhraseNode with empty word and null fields. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
clone()
|
ASDGrammarNode |
instance()
Returns the ASDGrammarNode that this ASDPhraseNode matched in an ASDGrammar; null if there is no match yet. |
ASDPhraseNode |
nextNode()
Returns the next ASDPhraseNode (if any) in the subphrase to which this node belongs; null if there is no next node. |
void |
showTree(ASDPhraseNode currentNode)
Displays to System.out the tree rooted at the receiver, with node currentNode indicated by an asterisk and an arrow. |
ASDPhraseNode |
subphrase()
Returns the first ASDPhraseNode in the subphrase (if any) that this ASDPhraseNode represents; null if there is no subphrase. |
java.lang.Object |
value()
Returns the semantic value for this node; null if none. |
java.lang.String |
word()
Returns the vocabulary element in this node. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ASDPhraseNode()
| Method Detail |
|---|
public ASDGrammarNode instance()
public ASDPhraseNode nextNode()
public ASDPhraseNode subphrase()
public java.lang.Object value()
public java.lang.String word()
protected java.lang.Object clone()
clone in class java.lang.Objectpublic void showTree(ASDPhraseNode currentNode)
currentNode - the current node at the top level
in the phrase structure
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||