public class GrammarRuleNode extends GrammarNode
children, head| Constructor and Description |
|---|
GrammarRuleNode(String head) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChoice(GrammarNode choice)
Adds a choice to the children of this node.
|
GrammarNode |
getChoice(int index)
Returns a given choice.
|
int |
getNumChoices()
Returns the current number of choices to the node.
|
void |
merge(GrammarRuleNode other)
Adds to this node all the choices of another node.
|
String |
toString()
A better toString() function -- khaled
|
equals, getHead, hashCodepublic GrammarRuleNode(String head)
public void addChoice(GrammarNode choice)
public int getNumChoices()
public GrammarNode getChoice(int index)
public void merge(GrammarRuleNode other)
public String toString()
toString in class GrammarNodeCopyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.