| Modifier and Type | Field and Description |
|---|---|
static IToken |
EOF
Standard token: End Of File.
|
static IToken |
OTHER
Deprecated.
will be removed
|
static IToken |
UNDEFINED
Standard token: Undefined.
|
static IToken |
WHITESPACE
Standard token: Whitespace.
|
| Constructor and Description |
|---|
Token(Object data)
Creates a new token which represents neither undefined, whitespace, nor EOF.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getData()
Return a data attached to this token.
|
boolean |
isEOF()
Return whether this token represents End Of File.
|
boolean |
isOther()
Return whether this token is neither undefined, nor whitespace, nor EOF.
|
boolean |
isUndefined()
Return whether this token is undefined.
|
boolean |
isWhitespace()
Return whether this token represents a whitespace.
|
void |
setData(Object data)
Re-initializes the data of this token.
|
public static final IToken UNDEFINED
public static final IToken EOF
public static final IToken WHITESPACE
public static final IToken OTHER
public Token(Object data)
data - the data attached to the newly created tokenpublic void setData(Object data)
data - to be attached to the tokenpublic Object getData()
ITokenpublic boolean isOther()
ITokenpublic boolean isEOF()
ITokenpublic boolean isWhitespace()
ITokenisWhitespace in interface ITokentrueif this token represents a whitespacepublic boolean isUndefined()
ITokenisUndefined in interface ITokentrueif this token is undefinedGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.