|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.text.rules.Token
Standard implementation of IToken
.
Field Summary | |
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 Summary | |
Token(Object data)
Creates a new token which represents neither undefined, whitespace, nor EOF. |
Method Summary | |
Object |
getData()
Return a data attacted 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)
Reinitializes the data of this token. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final IToken UNDEFINED
public static final IToken EOF
public static final IToken WHITESPACE
public static final IToken OTHER
Constructor Detail |
public Token(Object data)
data
- the data attached to the newly created tokenMethod Detail |
public void setData(Object data)
the
- data to be attached to the tokenpublic Object getData()
IToken
getData
in interface IToken
org.eclipse.jface.text.rules.IToken
public boolean isOther()
IToken
isOther
in interface IToken
org.eclipse.jface.text.rules.IToken
true
if this token is not undefined, not a whitespace, and not EOFpublic boolean isEOF()
IToken
isEOF
in interface IToken
org.eclipse.jface.text.rules.IToken
true
if this token represents EOFpublic boolean isWhitespace()
IToken
isWhitespace
in interface IToken
org.eclipse.jface.text.rules.IToken
true
if this token represents a whitespacepublic boolean isUndefined()
IToken
isUndefined
in interface IToken
org.eclipse.jface.text.rules.IToken
true
if this token is undefined
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |