public class CssDeclarationValueTokenizer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CssDeclarationValueTokenizer.Token
The Token class.
|
static class |
CssDeclarationValueTokenizer.TokenType
Enumeration of the different token types.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
functionDepth
The depth.
|
protected int |
index
The current index.
|
protected boolean |
inString
Indicates if we're inside a string.
|
protected String |
src
The source string.
|
protected char |
stringQuote
The quote string, either "'" or "\"".
|
| Constructor and Description |
|---|
CssDeclarationValueTokenizer(String propertyValue)
Creates a new
CssDeclarationValueTokenizer instance. |
| Modifier and Type | Method and Description |
|---|---|
protected CssDeclarationValueTokenizer.Token |
getNextToken()
Gets the next token.
|
CssDeclarationValueTokenizer.Token |
getNextValidToken()
Gets the next valid token.
|
protected CssDeclarationValueTokenizer.Token |
parseFunctionToken(CssDeclarationValueTokenizer.Token token,
int funcDepth)
Parse internal function token to full function token, e.g.
|
protected final String src
protected int index
protected char stringQuote
protected boolean inString
protected int functionDepth
public CssDeclarationValueTokenizer(String propertyValue)
CssDeclarationValueTokenizer instance.propertyValue - the property valuepublic CssDeclarationValueTokenizer.Token getNextValidToken()
protected CssDeclarationValueTokenizer.Token parseFunctionToken(CssDeclarationValueTokenizer.Token token, int funcDepth)
calc(calc( to calc(calc(50px + 5px) + 20px)
token - function token to expandfuncDepth - function depth for resolving, e.g. if you want to resolve only nested function, not the whole
declarationprotected CssDeclarationValueTokenizer.Token getNextToken()
Copyright © 1998–2025 Apryse Group NV. All rights reserved.