Class Lexer
- java.lang.Object
-
- com.github.weisj.jsvg.parser.css.impl.Lexer
-
public final class Lexer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
index
private @NotNull java.util.List<char[]>
input
private boolean
inRuleDefinition
private int
listIndex
private static java.util.logging.Logger
LOGGER
private boolean
parsingRaw
-
Constructor Summary
Constructors Constructor Description Lexer(@NotNull java.util.List<char[]> input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
consumeWhiteSpace()
private char
current()
private boolean
isEof()
private boolean
isIdentifierChar(char c)
private boolean
isIdentifierCharStart(char c)
private void
next()
@NotNull Token
nextToken()
private char
peekNext()
private @NotNull java.lang.String
readIdentifier()
private @NotNull java.lang.String
readWhile(@NotNull java.util.function.Predicate<java.lang.Character> filter)
-
-
-
Method Detail
-
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 java.lang.String readIdentifier()
-
readWhile
@NotNull private @NotNull java.lang.String readWhile(@NotNull @NotNull java.util.function.Predicate<java.lang.Character> filter)
-
current
private char current()
-
peekNext
private char peekNext()
-
next
private void next()
-
-