|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcorelib.tools.languages.parsers.Token
public class Token
This class is used for store a Javascript syntaxic token.
| Constructor Summary | |
|---|---|
Token(TokenType type,
java.lang.String content)
Class constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getContent()
Returns the text content of this token. |
TokenType |
getType()
Returns the type of this token. |
boolean |
isKeyword()
Checks if this token is a keyword. |
void |
setContent(java.lang.String content)
Changes the text content of this token. |
void |
setType(TokenType type)
Changes the type of this token. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Token(TokenType type,
java.lang.String content)
type - Identify the type of this token.content - The javascript text of this token.| Method Detail |
|---|
public java.lang.String getContent()
public void setContent(java.lang.String content)
content - The new text content of this token.public TokenType getType()
TokenTypepublic void setType(TokenType type)
type - The new type of this token.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isKeyword()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||