Class ReadOnlyToken


  • @Immutable
    public class ReadOnlyToken
    extends Object
    This class has the same layout as the normal Token class, but its contents are not modifiable!
    Author:
    Philip Helger
    • Constructor Detail

    • Method Detail

      • getKind

        public int getKind()
        Returns:
        The internal index identifying this token.
      • getBeginLine

        public int getBeginLine()
        Returns:
        Line number where the token starts
      • getBeginColumn

        public int getBeginColumn()
        Returns:
        Column number where the token starts
      • getEndLine

        public int getEndLine()
        Returns:
        Line number where the token ends
      • getEndColumn

        public int getEndColumn()
        Returns:
        Column number where the token ends
      • getImage

        @Nullable
        public String getImage()
        Returns:
        The string representation of the token. May be null but should not.