final class CssLexer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private class |
CssLexer.UnitsState |
Modifier and Type | Field and Description |
---|---|
private Recognizer |
A |
private Recognizer |
ALPHA |
(package private) static int |
AT_KEYWORD |
private Recognizer |
B |
private Recognizer |
C |
private int |
ch |
private boolean |
charNotConsumed |
(package private) static int |
CM |
(package private) static int |
COLON |
private Recognizer |
COLON_CHAR |
(package private) static int |
COMMA |
private Recognizer |
COMMA_CHAR |
private LexerState |
currentState |
private Recognizer |
D |
(package private) LexerState |
decimalMarkState |
(package private) static int |
DEG |
private Recognizer |
DIGIT |
(package private) static int |
DOT |
private Recognizer |
DOT_CHAR |
(package private) LexerState |
dotState |
private Recognizer |
E |
(package private) static int |
EMS |
(package private) static int |
EXS |
private Recognizer |
F |
(package private) static int |
FONT_FACE |
(package private) static int |
FUNCTION |
private Recognizer |
G |
(package private) static int |
GRAD |
(package private) static int |
GREATER |
private Recognizer |
GREATER_CHAR |
private Recognizer |
H |
(package private) static int |
HASH |
private Recognizer |
HASH_CHAR |
(package private) LexerState |
hashNameCharState |
(package private) LexerState |
hashState |
private Recognizer |
HEX_DIGIT |
private Recognizer |
I |
(package private) static int |
IDENT |
(package private) static int |
IMPORT |
(package private) static int |
IMPORTANT_SYM |
(package private) static int |
IN |
(package private) LexerState |
initState |
private Recognizer |
J |
private Recognizer |
K |
private Recognizer |
L |
private int |
lastc |
(package private) static int |
LBRACE |
private Recognizer |
LBRACE_CHAR |
(package private) LexerState |
leadingDigitsState |
private int |
line |
(package private) static int |
LPAREN |
private Recognizer |
LPAREN_CHAR |
(package private) LexerState |
lparenState |
private Recognizer |
M |
private Recognizer |
MINUS_CHAR |
(package private) LexerState |
minusState |
(package private) static int |
MM |
(package private) static int |
MS |
private Recognizer |
N |
(package private) static int |
NL |
private Recognizer |
NL_CHARS |
(package private) LexerState |
nmCharState |
(package private) LexerState |
nmStartState |
private Recognizer |
NON_ASCII |
(package private) static int |
NUMBER |
private Recognizer |
O |
private int |
offset |
private Recognizer |
P |
(package private) static int |
PC |
(package private) static int |
PERCENTAGE |
private Recognizer |
PLUS_CHAR |
(package private) LexerState |
plusState |
private int |
pos |
(package private) static int |
PT |
(package private) static int |
PX |
private Recognizer |
Q |
private Recognizer |
R |
(package private) static int |
RAD |
(package private) static int |
RBRACE |
private Recognizer |
RBRACE_CHAR |
private java.io.Reader |
reader |
(package private) static int |
RPAREN |
private Recognizer |
RPAREN_CHAR |
private Recognizer |
S |
(package private) static int |
SECONDS |
(package private) static int |
SEMI |
private Recognizer |
SEMI_CHAR |
(package private) static int |
SOLIDUS |
private Recognizer |
SOLIDUS_CHAR |
(package private) static int |
STAR |
private Recognizer |
STAR_CHAR |
private java.util.Map<LexerState,LexerState[]> |
stateMap |
(package private) static int |
STRING |
private Recognizer |
T |
private java.lang.StringBuilder |
text |
private Token |
token |
(package private) LexerState |
trailingDigitsState |
(package private) static int |
TURN |
private Recognizer |
U |
private Recognizer |
UNDERSCORE_CHAR |
(package private) LexerState |
unitsState |
(package private) static int |
URL |
private Recognizer |
V |
private Recognizer |
W |
(package private) static int |
WS |
private Recognizer |
WS_CHARS |
private Recognizer |
X |
private Recognizer |
Y |
private Recognizer |
Z |
Constructor and Description |
---|
CssLexer() |
Modifier and Type | Method and Description |
---|---|
private int |
consumeUrl() |
private java.util.Map<LexerState,LexerState[]> |
createStateMap() |
private Token |
getToken() |
(package private) Token |
nextToken() |
private int |
readChar() |
private Token |
scanImportant() |
(package private) void |
setReader(java.io.Reader reader) |
private void |
skipComment() |
private void |
skipEOL() |
static final int STRING
static final int IDENT
static final int FUNCTION
static final int NUMBER
static final int CM
static final int EMS
static final int EXS
static final int IN
static final int MM
static final int PC
static final int PT
static final int PX
static final int PERCENTAGE
static final int DEG
static final int GRAD
static final int RAD
static final int TURN
static final int GREATER
static final int LBRACE
static final int RBRACE
static final int SEMI
static final int COLON
static final int SOLIDUS
static final int STAR
static final int LPAREN
static final int RPAREN
static final int COMMA
static final int HASH
static final int DOT
static final int IMPORTANT_SYM
static final int WS
static final int NL
static final int FONT_FACE
static final int URL
static final int IMPORT
static final int SECONDS
static final int MS
static final int AT_KEYWORD
private final Recognizer A
private final Recognizer B
private final Recognizer C
private final Recognizer D
private final Recognizer E
private final Recognizer F
private final Recognizer G
private final Recognizer H
private final Recognizer I
private final Recognizer J
private final Recognizer K
private final Recognizer L
private final Recognizer M
private final Recognizer N
private final Recognizer O
private final Recognizer P
private final Recognizer Q
private final Recognizer R
private final Recognizer S
private final Recognizer T
private final Recognizer U
private final Recognizer V
private final Recognizer W
private final Recognizer X
private final Recognizer Y
private final Recognizer Z
private final Recognizer ALPHA
private final Recognizer NON_ASCII
private final Recognizer DOT_CHAR
private final Recognizer GREATER_CHAR
private final Recognizer LBRACE_CHAR
private final Recognizer RBRACE_CHAR
private final Recognizer SEMI_CHAR
private final Recognizer COLON_CHAR
private final Recognizer SOLIDUS_CHAR
private final Recognizer MINUS_CHAR
private final Recognizer PLUS_CHAR
private final Recognizer STAR_CHAR
private final Recognizer LPAREN_CHAR
private final Recognizer RPAREN_CHAR
private final Recognizer COMMA_CHAR
private final Recognizer UNDERSCORE_CHAR
private final Recognizer HASH_CHAR
private final Recognizer WS_CHARS
private final Recognizer NL_CHARS
private final Recognizer DIGIT
private final Recognizer HEX_DIGIT
final LexerState initState
final LexerState hashState
final LexerState minusState
final LexerState plusState
final LexerState dotState
final LexerState nmStartState
final LexerState nmCharState
final LexerState hashNameCharState
final LexerState lparenState
final LexerState leadingDigitsState
final LexerState decimalMarkState
final LexerState trailingDigitsState
final LexerState unitsState
private int pos
private int offset
private int line
private int lastc
private int ch
private boolean charNotConsumed
private java.io.Reader reader
private Token token
private final java.util.Map<LexerState,LexerState[]> stateMap
private LexerState currentState
private final java.lang.StringBuilder text
private java.util.Map<LexerState,LexerState[]> createStateMap()
void setReader(java.io.Reader reader)
private Token scanImportant() throws java.io.IOException
java.io.IOException
private int consumeUrl() throws java.io.IOException
java.io.IOException
private void skipComment() throws java.io.IOException
java.io.IOException
private void skipEOL() throws java.io.IOException
java.io.IOException
private int readChar() throws java.io.IOException
java.io.IOException
Token nextToken()
private Token getToken()