Package org.eclipse.jface.text.rules
Class Token
java.lang.Object
org.eclipse.jface.text.rules.Token
- All Implemented Interfaces:
- IToken
Standard implementation of 
IToken.
 Originally since unknown version, but moved to org.eclipse.text in 3.14- Since:
- 3.14
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetData()Return a data attached to this token.booleanisEOF()Return whether this token represents End Of File.booleanisOther()Return whether this token is neither undefined, nor whitespace, nor EOF.booleanReturn whether this token is undefined.booleanReturn whether this token represents a whitespace.voidRe-initializes the data of this token.
- 
Field Details- 
UNDEFINEDStandard token: Undefined.
- 
EOFStandard token: End Of File.
- 
WHITESPACEStandard token: Whitespace.
- 
OTHERDeprecated.will be removed
 
- 
- 
Constructor Details- 
TokenCreates a new token which represents neither undefined, whitespace, nor EOF. The newly created token has the given data attached to it.- Parameters:
- data- the data attached to the newly created token
 
 
- 
- 
Method Details- 
setDataRe-initializes the data of this token. The token may not represent undefined, whitespace, or EOF.- Parameters:
- data- to be attached to the token
- Since:
- 2.0
 
- 
getDataDescription copied from interface:ITokenReturn a data attached to this token. The semantics of this data kept undefined by this interface.
- 
isOtherpublic boolean isOther()Description copied from interface:ITokenReturn whether this token is neither undefined, nor whitespace, nor EOF.
- 
isEOFpublic boolean isEOF()Description copied from interface:ITokenReturn whether this token represents End Of File.
- 
isWhitespacepublic boolean isWhitespace()Description copied from interface:ITokenReturn whether this token represents a whitespace.- Specified by:
- isWhitespacein interface- IToken
- Returns:
- trueif this token represents a whitespace
 
- 
isUndefinedpublic boolean isUndefined()Description copied from interface:ITokenReturn whether this token is undefined.- Specified by:
- isUndefinedin interface- IToken
- Returns:
- trueif this token is undefined
 
 
-