Class CssDeclarationValueTokenizer.Token
java.lang.Object
com.itextpdf.styledxmlparser.css.parse.CssDeclarationValueTokenizer.Token
- Enclosing class:
- CssDeclarationValueTokenizer
The Token class.
-
Constructor Summary
ConstructorsConstructorDescriptionToken
(String value, CssDeclarationValueTokenizer.TokenType type) Creates a newCssDeclarationValueTokenizer.Token
instance. -
Method Summary
-
Constructor Details
-
Token
Creates a newCssDeclarationValueTokenizer.Token
instance.- Parameters:
-
value
- the value -
type
- the type
-
-
Method Details
-
getValue
Gets the value.- Returns:
- the value
-
getType
Gets the type.- Returns:
- the type
-
getStringQuote
public char getStringQuote()Gets the quotes of the string.- Returns:
-
0
if the token isn't a string or there are no quotes,quote char
otherwise
-
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
-