Class SimpleCssParser.Parser
- java.lang.Object
-
- com.github.weisj.jsvg.parser.css.impl.SimpleCssParser.Parser
-
- Enclosing class:
- SimpleCssParser
private static final class SimpleCssParser.Parser extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Parser(@NotNull java.util.List<char[]> input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
consume(TokenType type)
private void
consumeOrSkipAllowedToken(TokenType type, TokenType allowedTokeToSkip)
private @NotNull java.lang.String
consumeValue(TokenType type)
private void
expected(@NotNull java.lang.String type)
private void
next()
(package private) @NotNull SimpleStyleSheet
parse()
private @NotNull java.util.List<Token>
readIdentifierList()
private @NotNull java.util.List<StyleProperty>
readProperties()
private void
skipToNextDefinition()
-
-
-
Field Detail
-
lexer
@NotNull private final @NotNull Lexer lexer
-
sheet
@NotNull private final @NotNull SimpleStyleSheet sheet
-
current
@NotNull private @NotNull Token current
-
-
Method Detail
-
next
private void next()
-
expected
private void expected(@NotNull @NotNull java.lang.String type)
-
consumeOrSkipAllowedToken
private void consumeOrSkipAllowedToken(TokenType type, TokenType allowedTokeToSkip)
-
consume
private void consume(TokenType type)
-
consumeValue
@NotNull private @NotNull java.lang.String consumeValue(TokenType type)
-
readIdentifierList
@NotNull private @NotNull java.util.List<Token> readIdentifierList()
-
readProperties
@NotNull private @NotNull java.util.List<StyleProperty> readProperties()
-
skipToNextDefinition
private void skipToNextDefinition()
-
parse
@NotNull @NotNull SimpleStyleSheet parse()
-
-