| 
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.NodeExpression
The basic component for a grammar string. Each node contains a String value for the name of the node, a direction the expression links to, whether the node can match multiple nodes, and the next expression node in the full expression.
 In the expression, A+ & B-, each A+ and B- would create
 an NodeExpression class, where A would create a class with the string 'A'
 as the name, and DIR_RIGHT as the direction.
| Field Summary | |
static int | 
DIR_LEFT
Value for Direction indicating the expression will link to the left  | 
static int | 
DIR_RIGHT
Value for Direction indicating the expression will link to the right  | 
| Constructor Summary | |
NodeExpression(java.lang.String name,
               int direction,
               boolean multi)
Creates a NODE_TYPE node.  | 
|
| Method Summary | |
 NodeExpression | 
cloneExpression()
Creates a new NodeExpression with the same values as this expression.  | 
 int | 
getDirection()
Returns the direction the expression will match.  | 
 java.lang.String | 
getExpressionName()
Returns the link name of the expression.  | 
 boolean | 
isMultiNodeUsed()
Returns if the node has been used at least once, which makes it valid.  | 
 boolean | 
isNodeMulti()
Returns true if the node is a multi node.  | 
 void | 
setMultiNode()
Sets the node to be a multi node, which means it can match one to many nodes in a grammar.  | 
 void | 
setMultiNodeUsed()
Sets this node as used at least once in a grammar.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final int DIR_LEFT
public static final int DIR_RIGHT
| Constructor Detail | 
public NodeExpression(java.lang.String name,
                      int direction,
                      boolean multi)
| Method Detail | 
public boolean isNodeMulti()
public void setMultiNode()
public boolean isMultiNodeUsed()
setMultiNodeUsed()public void setMultiNodeUsed()
isMultiNodeUsed()public int getDirection()
DIR_LEFT, 
DIR_RIGHTpublic java.lang.String getExpressionName()
public NodeExpression cloneExpression()
  | 
Fido Alpha 3.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||