Class CssDeclarationValueTokenizer.Token
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.parse.CssDeclarationValueTokenizer.Token
-
- Enclosing class:
- CssDeclarationValueTokenizer
public static class CssDeclarationValueTokenizer.Token extends java.lang.ObjectThe Token class.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanhasSpaceprivate charstringQuoteprivate CssDeclarationValueTokenizer.TokenTypetypeThe type.private java.lang.StringvalueThe value.
-
Constructor Summary
Constructors Constructor Description Token(java.lang.String value, CssDeclarationValueTokenizer.TokenType type)Creates a newCssDeclarationValueTokenizer.Tokeninstance.Token(java.lang.String value, CssDeclarationValueTokenizer.TokenType type, char stringQuote)Token(java.lang.String value, CssDeclarationValueTokenizer.TokenType type, char stringQuote, boolean hasSpace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description chargetStringQuote()Gets the quotes of the string.CssDeclarationValueTokenizer.TokenTypegetType()Gets the type.java.lang.StringgetValue()Gets the value.booleanhasSpace()Gets the flag if token contains whitespace.booleanisString()Checks if the token is a string.java.lang.StringtoString()
-
-
-
Field Detail
-
value
private final java.lang.String value
The value.
-
type
private final CssDeclarationValueTokenizer.TokenType type
The type.
-
stringQuote
private final char stringQuote
-
hasSpace
private final boolean hasSpace
-
-
Constructor Detail
-
Token
public Token(java.lang.String value, CssDeclarationValueTokenizer.TokenType type)Creates a newCssDeclarationValueTokenizer.Tokeninstance.- Parameters:
value- the valuetype- the type
-
Token
Token(java.lang.String value, CssDeclarationValueTokenizer.TokenType type, char stringQuote)
-
Token
Token(java.lang.String value, CssDeclarationValueTokenizer.TokenType type, char stringQuote, boolean hasSpace)
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Gets the value.- Returns:
- the value
-
getType
public CssDeclarationValueTokenizer.TokenType getType()
Gets the type.- Returns:
- the type
-
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-