|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.rules.Token
public class 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 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. |
| 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
UNDEFINED, WHITESPACE, nor EOF.
| Constructor Detail |
|---|
public Token(Object data)
data - the data attached to the newly created token| Method Detail |
|---|
public void setData(Object data)
data - to be attached to the tokenpublic Object getData()
IToken
getData in interface ITokenpublic boolean isOther()
IToken
isOther in interface ITokentrueif this token is not undefined, not a whitespace, and not EOFpublic boolean isEOF()
IToken
isEOF in interface ITokentrueif this token represents EOFpublic boolean isWhitespace()
IToken
isWhitespace in interface ITokentrueif this token represents a whitespacepublic boolean isUndefined()
IToken
isUndefined in interface ITokentrueif this token is undefined
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.