Class CssDeclarationValueTokenizer.Token
java.lang.Object
com.itextpdf.styledxmlparser.css.parse.CssDeclarationValueTokenizer.Token
- Enclosing class:
CssDeclarationValueTokenizer
The Token class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final charprivate final CssDeclarationValueTokenizer.TokenTypeThe type.private final StringThe value. -
Constructor Summary
ConstructorsConstructorDescriptionToken(String value, CssDeclarationValueTokenizer.TokenType type) Creates a newCssDeclarationValueTokenizer.Tokeninstance.Token(String value, CssDeclarationValueTokenizer.TokenType type, char stringQuote) Token(String value, CssDeclarationValueTokenizer.TokenType type, char stringQuote, boolean hasSpace) -
Method Summary
-
Field Details
-
value
The value. -
type
The type. -
stringQuote
private final char stringQuote -
hasSpace
private final boolean hasSpace
-
-
Constructor Details
-
Token
Creates a newCssDeclarationValueTokenizer.Tokeninstance.- Parameters:
value- the valuetype- the type
-
Token
Token(String value, CssDeclarationValueTokenizer.TokenType type, char stringQuote) -
Token
Token(String value, CssDeclarationValueTokenizer.TokenType type, char stringQuote, boolean hasSpace)
-
-
Method Details
-
getValue
-
getType
-
getStringQuote
public char getStringQuote()Gets the quotes of the string.- Returns:
0if the token isn't a string or there are no quotes,quote charotherwise
-
hasSpace
public boolean hasSpace()Gets the flag if token contains whitespace.- Returns:
- true, if containing whitespace
-
isString
public boolean isString()Checks if the token is a string.- Returns:
- true, if is string
-
toString
-