Class ListCssTokenizer

java.lang.Object
org.jhotdraw8.css.parser.ListCssTokenizer
All Implemented Interfaces:
CssTokenizer

public class ListCssTokenizer extends Object implements CssTokenizer
  • Constructor Details

  • Method Details

    • currentNumber

      public @Nullable Number currentNumber()
      Specified by:
      currentNumber in interface CssTokenizer
    • currentString

      public @Nullable String currentString()
      Description copied from interface: CssTokenizer
      Returns the current string value.
      Specified by:
      currentString in interface CssTokenizer
      Returns:
      the current string value
    • current

      public int current()
      Description copied from interface: CssTokenizer
      Returns the current token type.
      Specified by:
      current in interface CssTokenizer
      Returns:
      the current token type
    • getLineNumber

      public int getLineNumber()
      Specified by:
      getLineNumber in interface CssTokenizer
    • getSourceLocator

      public @Nullable SourceLocator getSourceLocator()
      Specified by:
      getSourceLocator in interface CssTokenizer
    • getStartPosition

      public int getStartPosition()
      Specified by:
      getStartPosition in interface CssTokenizer
    • getEndPosition

      public int getEndPosition()
      Specified by:
      getEndPosition in interface CssTokenizer
    • getNextPosition

      public int getNextPosition()
      Description copied from interface: CssTokenizer
      Gets the current position.
      Specified by:
      getNextPosition in interface CssTokenizer
      Returns:
      the start position of the token if a token has been pushed back, the end position of the token otherwise
    • next

      public int next()
      Description copied from interface: CssTokenizer
      Gets the next token skipping whitespaces and comments.
      Specified by:
      next in interface CssTokenizer
      Returns:
      the next non-whitespace token
    • nextNoSkip

      public int nextNoSkip()
      Description copied from interface: CssTokenizer
      Gets the next token without skipping whitespaces and comments.
      Specified by:
      nextNoSkip in interface CssTokenizer
      Returns:
      the next token
    • pushBack

      public void pushBack()
      Description copied from interface: CssTokenizer
      Pushes the current token back.
      Specified by:
      pushBack in interface CssTokenizer
    • getToken

      public CssToken getToken()
      Specified by:
      getToken in interface CssTokenizer