Class ReadOnlyToken

java.lang.Object
com.helger.css.parser.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 Details

  • Method Details

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object