- 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 intindexprivate @NotNull java.util.List<char[]>inputprivate booleaninRuleDefinitionprivate intlistIndexprivate static java.util.logging.LoggerLOGGERprivate booleanparsingRaw
-
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 voidconsumeWhiteSpace()private charcurrent()private booleanisEof()private booleanisIdentifierChar(char c)private booleanisIdentifierCharStart(char c)private voidnext()@NotNull TokennextToken()private charpeekNext()private @NotNull java.lang.StringreadIdentifier()private @NotNull java.lang.StringreadWhile(@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()
-
-