Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.jface.text.rules
Interface IToken

All Known Implementing Classes:
  Token

public interface IToken

A token to be returned by a rule.

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.

Method Detail

### isUndefined

    public boolean isUndefined()

  Return whether this token is undefined.

  Returns:
    `true`if this token is undefined

### isWhitespace

    public boolean isWhitespace()

  Return whether this token represents a whitespace.

  Returns:
    `true`if this token represents a whitespace

### isEOF

    public boolean isEOF()

  Return whether this token represents End Of File.

  Returns:
    `true`if this token represents EOF

### isOther

    public boolean isOther()

  Return whether this token is neither undefined, nor whitespace, nor EOF.

  Returns:
    `true`if this token is not undefined, not a whitespace, and not EOF

### getData

    public Object getData()

  Return a data attached to this token. The semantics of this data kept undefined by this interface.

  Returns:
    the data attached to this token.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.