|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--marf.nlp.Parsing.GrammarCompiler.GrammarElement | +--marf.nlp.Parsing.GrammarCompiler.NonTerminal
NonTerminal grammar element. E.g.: <prog>. $Id: NonTerminal.java,v 1.9 2005/08/13 23:09:39 susan_fan Exp $
Field Summary | |
protected boolean |
Defined
Flag Defined or not. |
protected java.util.Vector |
FollowSet
Follow Set. |
Fields inherited from class marf.nlp.Parsing.GrammarCompiler.GrammarElement |
FirstSet, ID, Name, oToken |
Constructor Summary | |
NonTerminal(java.lang.String pName,
int pID)
|
|
NonTerminal(marf.nlp.Parsing.Token poToken,
int pID)
|
Method Summary | |
boolean |
addToFollowSet(marf.nlp.Parsing.GrammarCompiler.NonTerminal poNonTerminal)
Adds a single non-terminal to the follow set. |
boolean |
addToFollowSet(marf.nlp.Parsing.GrammarCompiler.Terminal poTerminal)
Adds a single terminal to the follow set. |
boolean |
addToFollowSet(java.util.Vector poSet)
Appends elements from the passed set to its current follow set. |
java.util.Vector |
getFollowSet()
|
static java.lang.String |
getMARFSourceCodeRevision()
Retrieves class' revision. |
boolean |
isDefined()
|
boolean |
isNonTerminal()
|
boolean |
isTerminal()
|
void |
setDefined()
Only allow to set it, but not unset. |
Methods inherited from class marf.nlp.Parsing.GrammarCompiler.GrammarElement |
addToFirstSet, addToFirstSet, addToFirstSet, getFirstSet, getID, getName, getToken, isEqualByName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected boolean Defined
protected java.util.Vector FollowSet
Constructor Detail |
public NonTerminal(java.lang.String pName, int pID)
public NonTerminal(marf.nlp.Parsing.Token poToken, int pID)
Method Detail |
public boolean isDefined()
public void setDefined()
public java.util.Vector getFollowSet()
public boolean addToFollowSet(java.util.Vector poSet)
public boolean addToFollowSet(marf.nlp.Parsing.GrammarCompiler.Terminal poTerminal)
public boolean addToFollowSet(marf.nlp.Parsing.GrammarCompiler.NonTerminal poNonTerminal)
public boolean isTerminal()
isTerminal
in class GrammarElement
public boolean isNonTerminal()
isNonTerminal
in class GrammarElement
public static java.lang.String getMARFSourceCodeRevision()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |