java.lang.Object
com.github.weisj.jsvg.parser.css.impl.Lexer

public final class Lexer extends Object
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • input

      @NotNull private final @NotNull List<char[]> input
    • listIndex

      private int listIndex
    • index

      private int index
    • inRuleDefinition

      private boolean inRuleDefinition
    • parsingRaw

      private boolean parsingRaw
  • Constructor Details

    • Lexer

      public Lexer(@NotNull @NotNull List<char[]> input)
  • Method Details

    • nextToken

      @NotNull public @NotNull Token nextToken()
    • isEof

      private boolean isEof()
    • consumeWhiteSpace

      private void consumeWhiteSpace()
    • isIdentifierCharStart

      private boolean isIdentifierCharStart(char c)
    • isIdentifierChar

      private boolean isIdentifierChar(char c)
    • readIdentifier

      @NotNull private @NotNull String readIdentifier()
    • readWhile

      @NotNull private @NotNull String readWhile(@NotNull @NotNull Predicate<Character> filter)
    • current

      private char current()
    • peekNext

      private char peekNext()
    • next

      private void next()