public class ASDPhraseNode
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
ASDPhraseNode()
Initializes an ASDPhraseNode with empty word and null fields.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ASDPhraseNode()
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.Object
public void showTree(ASDPhraseNode currentNode)
currentNode
- the current node at the top level
in the phrase structure