|
||||||||||
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.SemanticToken
public class SemanticToken
Class SematicToken, for Semantic Analysis.
$Id: SemanticToken.java,v 1.10 2005/12/18 21:29:18 mokhov Exp $
Field Summary |
---|
Fields inherited from class marf.nlp.Parsing.GrammarCompiler.GrammarElement |
---|
iID, oFirstSet, oToken, strName |
Constructor Summary | |
---|---|
SemanticToken(java.lang.String pstrName,
int piID)
Name- and ID-based constructor. |
|
SemanticToken(Token poToken)
Token-based constructor. |
|
SemanticToken(Token poToken,
int piID)
Token- and ID-based constructor. |
Method Summary | |
---|---|
static java.lang.String |
getMARFSourceCodeRevision()
Retrieves class' revision. |
boolean |
isNonTerminal()
Allows querying this grammar element for non-terminality. |
boolean |
isTerminal()
Allows querying this grammar element for terminality. |
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 |
Constructor Detail |
---|
public SemanticToken(Token poToken)
poToken
- the tokenpublic SemanticToken(Token poToken, int piID)
poToken
- the tokenpiID
- token IDpublic SemanticToken(java.lang.String pstrName, int piID)
pstrName
- the namepiID
- token IDMethod Detail |
---|
public boolean isNonTerminal()
GrammarElement
isNonTerminal
in class GrammarElement
false
GrammarElement.isNonTerminal()
public boolean isTerminal()
GrammarElement
isTerminal
in class GrammarElement
false
GrammarElement.isTerminal()
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |