Class CssDeclarationVarParser
java.lang.Object
com.itextpdf.styledxmlparser.css.parse.CssDeclarationValueTokenizer
com.itextpdf.styledxmlparser.css.parse.CssDeclarationVarParser
Tokenizer for searching var expressions in css declarations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The Token class which contains CSS var expression.Nested classes/interfaces inherited from class com.itextpdf.styledxmlparser.css.parse.CssDeclarationValueTokenizer
CssDeclarationValueTokenizer.Token, CssDeclarationValueTokenizer.TokenType
-
Field Summary
Fields inherited from class com.itextpdf.styledxmlparser.css.parse.CssDeclarationValueTokenizer
functionDepth, index, inString, src, stringQuote
-
Constructor Summary
ConstructorsConstructorDescriptionCssDeclarationVarParser
(String propertyValue) Creates a newCssDeclarationVarParser
instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the first valid var expression token.Methods inherited from class com.itextpdf.styledxmlparser.css.parse.CssDeclarationValueTokenizer
getNextToken, getNextValidToken, parseFunctionToken
-
Constructor Details
-
CssDeclarationVarParser
Creates a newCssDeclarationVarParser
instance.- Parameters:
-
propertyValue
- the property value
-
-
Method Details
-
getFirstValidVarToken
Gets the first valid var expression token. This method can't be called in chain to find all var expressions in declaration since it invalidates internal parser state.- Returns:
- the first valid var expression token
-