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()
IToken
public boolean isOther()
IToken
public boolean isEOF()
IToken
public boolean isWhitespace()
IToken
isWhitespace
in interface IToken
true
if this token represents a whitespacepublic boolean isUndefined()
IToken
isUndefined
in interface IToken
true
if this token is undefined
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.