marf.nlp.Parsing.GrammarCompiler
Class SemanticToken

java.lang.Object
  extended by marf.nlp.Parsing.GrammarCompiler.GrammarElement
      extended by marf.nlp.Parsing.GrammarCompiler.SemanticToken
All Implemented Interfaces:
java.io.Serializable

public class SemanticToken
extends GrammarElement

Class SematicToken, for Semantic Analysis.

$Id: SemanticToken.java,v 1.10 2005/12/18 21:29:18 mokhov Exp $

Since:
0.3.0.2
Version:
$Revision: 1.10 $
Author:
Serguei Mokhov
See Also:
Serialized Form

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

SemanticToken

public SemanticToken(Token poToken)
Token-based constructor.

Parameters:
poToken - the token

SemanticToken

public SemanticToken(Token poToken,
                     int piID)
Token- and ID-based constructor.

Parameters:
poToken - the token
piID - token ID

SemanticToken

public SemanticToken(java.lang.String pstrName,
                     int piID)
Name- and ID-based constructor.

Parameters:
pstrName - the name
piID - token ID
Method Detail

isNonTerminal

public boolean isNonTerminal()
Description copied from class: GrammarElement
Allows querying this grammar element for non-terminality.

Specified by:
isNonTerminal in class GrammarElement
Returns:
false
See Also:
GrammarElement.isNonTerminal()

isTerminal

public boolean isTerminal()
Description copied from class: GrammarElement
Allows querying this grammar element for terminality.

Specified by:
isTerminal in class GrammarElement
Returns:
false
See Also:
GrammarElement.isTerminal()

getMARFSourceCodeRevision

public static java.lang.String getMARFSourceCodeRevision()
Retrieves class' revision.

Returns:
revision string


SourceForge Logo