|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fido.grammar.StackElement
Represents all of the grammar expressions for a word. If the word in the input has any open links, Grammar creates a new StackElement to be placed on the GrammarStack.
GrammarStack
Constructor Summary | |
StackElement(WordSense sense)
Creates a new StackElement. |
Method Summary | |
void |
addOpenExpression(NodeExpression exp)
Add an open expression. |
boolean |
allExpressionsUsed()
Tests if: There are no more expressions The only expression is a multi-node and it has been used |
StackElement |
cloneStackElement()
Creates a deep copy of this element. |
java.util.Iterator |
expressionIterator()
Returns an iterator over the expressions in this element. |
NodeExpression |
getExpression()
Get the first element of the open expression queue. |
WordSense |
getNodeWordSense()
Returns the WordSense associated with this element. |
boolean |
hasMoreExpressions()
Tests for an open expressions held by this element. |
void |
removeExpression()
Removes the first element of the open expression queue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StackElement(WordSense sense)
sense
- WordSense for the element.Method Detail |
public void addOpenExpression(NodeExpression exp)
exp
- Grammar expression for the element.public NodeExpression getExpression()
public java.util.Iterator expressionIterator()
public boolean hasMoreExpressions()
public boolean allExpressionsUsed()
NodeExpression.isNodeMulti()
,
NodeExpression.isMultiNodeUsed()
public void removeExpression()
public WordSense getNodeWordSense()
public StackElement cloneStackElement()
|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |