|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.inxar.syntacs.grammar.context_free.CFTerminal
Standard Terminal
implementation.
Method Summary | |
boolean |
equals(Object other)
|
IntSet |
getFirstSet()
Computes the IntSet Of terminal s that is
the first set for this GrammarSymbol . |
int |
getID()
The globally assigned integer identifier for this GrammarSymbol . |
String |
getName()
The common name of the GrammarSymbol . |
Token |
getToken()
Returns the Token object upon which this
Terminal takes its identity. |
boolean |
isNullable()
Returns true if this item either is
Epsilon (case of Terminal ) or derives
it (case of NonTerminal ). |
boolean |
isTerminal()
Returns true if this GrammarSymbol is
an instanceof Terminal and may safely be cast to a
Terminal (or vice versa). |
String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public int getID()
GrammarSymbol
GrammarSymbol
.getID
in interface GrammarSymbol
public String getName()
GrammarSymbol
GrammarSymbol
.getName
in interface GrammarSymbol
public Token getToken()
Terminal
Token
object upon which this
Terminal
takes its identity.getToken
in interface Terminal
public boolean isTerminal()
GrammarSymbol
true
if this GrammarSymbol
is
an instanceof Terminal
and may safely be cast to a
Terminal
(or vice versa).isTerminal
in interface GrammarSymbol
public boolean isNullable()
GrammarSymbol
true
if this item either is
Epsilon
(case of Terminal
) or derives
it (case of NonTerminal
).isNullable
in interface GrammarSymbol
public IntSet getFirstSet()
GrammarSymbol
IntSet
Of terminal
s that is
the first set for this GrammarSymbol
.getFirstSet
in interface GrammarSymbol
public String toString()
toString
in class Object
public boolean equals(Object other)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |