Interface IToken

All Known Implementing Classes:
Token

public interface IToken
A token to be returned by a rule. Originally since unknown version, but moved to org.eclipse.text in 3.14
Since:
3.14
  • Method Summary

    Modifier and Type
    Method
    Description
    Return a data attached to this token.
    boolean
    Return whether this token represents End Of File.
    boolean
    Return whether this token is neither undefined, nor whitespace, nor EOF.
    boolean
    Return whether this token is undefined.
    boolean
    Return whether this token represents a whitespace.
  • Method Details

    • isUndefined

      boolean isUndefined()
      Return whether this token is undefined.
      Returns:
      trueif this token is undefined
    • isWhitespace

      boolean isWhitespace()
      Return whether this token represents a whitespace.
      Returns:
      trueif this token represents a whitespace
    • isEOF

      boolean isEOF()
      Return whether this token represents End Of File.
      Returns:
      trueif this token represents EOF
    • isOther

      boolean isOther()
      Return whether this token is neither undefined, nor whitespace, nor EOF.
      Returns:
      trueif this token is not undefined, not a whitespace, and not EOF
    • getData

      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.