|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectname.angoca.db2sa.core.lexical.Token
public class Token
This is the representation of the decomposition of a phrase in several words
or symbols. Each token is the product of dividing the given phrase and
tokenize it in spaces, parenthesis and single and double quotation marks.
TODO is reserved?
Control Version
Constructor Summary | |
---|---|
Token(String token)
Constructor of a token, giving the value of it. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
String |
getToken()
Returns the value that this token represents. |
int |
hashCode()
|
String |
toString()
Returns a string representation of a token. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Token(String token) throws InvalidTokenException
token
- Value to represent.
InvalidTokenException
- When trying to create an invalid token.Method Detail |
---|
public final boolean equals(Object object)
equals
in class Object
public final String getToken()
public final int hashCode()
hashCode
in class Object
public final String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |