|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.nlp.Parsing.Token
public class Token
This class denotes a Token data structure. $Id: Token.java,v 1.9 2005/06/16 19:58:57 mokhov Exp $
Field Summary | |
---|---|
protected java.lang.String |
Lexeme
Parts of a Token. |
protected TokenSubType |
oTokenType
|
protected java.awt.Point |
Position
|
Constructor Summary | |
---|---|
Token(java.lang.String pstrLexeme,
java.awt.Point poPosition,
TokenSubType poTokenType)
Constructor. |
|
Token(Token poToken)
Simulation of a copy-constructor. |
Method Summary | |
---|---|
java.lang.String |
getLexeme()
Access method for the Lexeme property. |
static java.lang.String |
getMARFSourceCodeRevision()
Retrieves class' revision. |
java.awt.Point |
getPosition()
Access method for the Position property. |
TokenSubType |
getTokenType()
Access method for the TokenType property. |
boolean |
serialize(int piOperation,
java.io.FileWriter poFileWriter)
Loads/Saves the token to a text file. |
void |
setLexeme(java.lang.String pstrLexeme)
Sets the value of the Lexeme property. |
void |
setPosition(java.awt.Point aPosition)
Sets the value of the Position property. |
void |
setTokenType(TokenSubType aTokenType)
Sets the value of the TokenType property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String Lexeme
protected java.awt.Point Position
protected TokenSubType oTokenType
Constructor Detail |
---|
public Token(java.lang.String pstrLexeme, java.awt.Point poPosition, TokenSubType poTokenType)
public Token(Token poToken)
Method Detail |
---|
public boolean serialize(int piOperation, java.io.FileWriter poFileWriter)
public java.lang.String getLexeme()
public void setLexeme(java.lang.String pstrLexeme)
pstrLexeme
- the new value of the Lexeme propertypublic java.awt.Point getPosition()
public void setPosition(java.awt.Point aPosition)
aPosition
- the new value of the Position propertypublic TokenSubType getTokenType()
public void setTokenType(TokenSubType aTokenType)
aTokenType
- the new value of the TokenType propertypublic static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |