Class CSS3ParserTokenManager
- java.lang.Object
-
- org.htmlunit.cssparser.parser.javacc.CSS3ParserTokenManager
-
- All Implemented Interfaces:
CSS3ParserConstants
public class CSS3ParserTokenManager extends java.lang.Object implements CSS3ParserConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected intcurChar(package private) intcurLexStatejava.io.PrintStreamdebugStreamDebug output.(package private) intdefaultLexStateprivate java.lang.StringBuilderimageprotected CharStreaminput_stream(package private) static long[]jjbitVec0(package private) static long[]jjbitVec2private java.lang.StringBuilderjjimageprivate intjjimageLen(package private) intjjmatchedKind(package private) intjjmatchedPosstatic int[]jjnewLexStateLex State array.(package private) intjjnewStateCnt(package private) static int[]jjnextStates(package private) intjjroundprivate int[]jjroundsprivate int[]jjstateSetstatic java.lang.String[]jjstrLiteralImagesToken literal values.(package private) static long[]jjtoMore(package private) static long[]jjtoSkip(package private) static long[]jjtoSpecial(package private) static long[]jjtoTokenprivate intlengthOfMatchstatic java.lang.String[]lexStateNamesLexer state names.-
Fields inherited from interface org.htmlunit.cssparser.parser.javacc.CSS3ParserConstants
A_LETTER, AND, ANGLE_DEG, ANGLE_GRAD, ANGLE_RAD, ANGLE_TURN, ASTERISK, ATKEYWORD, C_LETTER, CDC, CDO, CH, CHARSET_SYM, COLON, COMMA, COMMENT, COMMENT_, CUSTOM_PROPERTY_NAME, D_LETTER, DASHMATCH, DEFAULT, DIMENSION, DOT, E_LETTER, EMS, EOF, EQUALS, ESCAPE, EXS, F_LETTER, FONT_FACE_SYM, FREQ_HZ, FREQ_KHZ, FUNCTION, FUNCTION_CALC, FUNCTION_HSL, FUNCTION_LANG, FUNCTION_NOT, FUNCTION_RGB, FUNCTION_VAR, G_LETTER, GREATER, H, H_LETTER, H_PLACEHOLDER, HASH, HNUM, I_LETTER, IDENT, IMPORT_SYM, IMPORTANT_SYM, INCLUDES, INHERIT, K_LETTER, L_LETTER, LBRACE, LENGTH_CM, LENGTH_IN, LENGTH_MM, LENGTH_PC, LENGTH_PT, LENGTH_PX, LENGTH_Q, LROUND, LSQUARE, M_LETTER, MEDIA_SYM, MINUS, N_LETTER, NAME, NL, NMCHAR, NMSTART, NONASCII, NOT, NUM, NUMBER, O_LETTER, ONLY, P_LETTER, PAGE_SYM, PERCENTAGE, PLUS, PREFIXMATCH, R_LETTER, RBRACE, REM, RESOLUTION_DPCM, RESOLUTION_DPI, RROUND, RSQUARE, S, S_LETTER, SEMICOLON, SLASH, STRING, STRING1, STRING2, SUBSTRINGMATCH, SUFFIXMATCH, T_LETTER, TILDE, TIME_MS, TIME_S, tokenImage, U_LETTER, UNICODE, UNICODE_RANGE, UNKNOWN, URI, URL, VH, VMAX, VMIN, VW, W, X_LETTER, Z_LETTER
-
-
Constructor Summary
Constructors Constructor Description CSS3ParserTokenManager(CharStream stream)Constructor.CSS3ParserTokenManager(CharStream stream, int lexState)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TokengetNextToken()Get the next Token.private voidjjAddStates(int start, int end)private static booleanjjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)private voidjjCheckNAdd(int state)private voidjjCheckNAddStates(int start, int end)private voidjjCheckNAddTwoStates(int state1, int state2)protected TokenjjFillToken()private intjjMoveNfa_0(int startState, int curPos)private intjjMoveStringLiteralDfa0_0()private intjjMoveStringLiteralDfa0_1()private intjjMoveStringLiteralDfa1_0(long active0, long active1)private intjjMoveStringLiteralDfa1_1(long active0)private intjjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1)private intjjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1)private intjjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1)private intjjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1)private intjjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1)private intjjStartNfa_0(int pos, long active0, long active1)private intjjStartNfaWithStates_0(int pos, int kind, int state)private intjjStopAtPos(int pos, int kind)private intjjStopStringLiteralDfa_0(int pos, long active0, long active1)(package private) voidMoreLexicalActions()voidReInit(CharStream stream)Reinitialise parser.voidReInit(CharStream stream, int lexState)Reinitialise parser.private voidReInitRounds()voidsetDebugStream(java.io.PrintStream ds)Set debug output.(package private) voidSkipLexicalActions(Token matchedToken)voidSwitchTo(int lexState)Switch to specified lex state.(package private) voidTokenLexicalActions(Token matchedToken)
-
-
-
Field Detail
-
debugStream
public java.io.PrintStream debugStream
Debug output.
-
jjbitVec0
static final long[] jjbitVec0
-
jjbitVec2
static final long[] jjbitVec2
-
jjstrLiteralImages
public static final java.lang.String[] jjstrLiteralImages
Token literal values.
-
jjnextStates
static final int[] jjnextStates
-
curLexState
int curLexState
-
defaultLexState
int defaultLexState
-
jjnewStateCnt
int jjnewStateCnt
-
jjround
int jjround
-
jjmatchedPos
int jjmatchedPos
-
jjmatchedKind
int jjmatchedKind
-
lexStateNames
public static final java.lang.String[] lexStateNames
Lexer state names.
-
jjnewLexState
public static final int[] jjnewLexState
Lex State array.
-
jjtoToken
static final long[] jjtoToken
-
jjtoSkip
static final long[] jjtoSkip
-
jjtoSpecial
static final long[] jjtoSpecial
-
jjtoMore
static final long[] jjtoMore
-
input_stream
protected CharStream input_stream
-
jjrounds
private final int[] jjrounds
-
jjstateSet
private final int[] jjstateSet
-
jjimage
private final java.lang.StringBuilder jjimage
-
image
private java.lang.StringBuilder image
-
jjimageLen
private int jjimageLen
-
lengthOfMatch
private int lengthOfMatch
-
curChar
protected int curChar
-
-
Constructor Detail
-
CSS3ParserTokenManager
public CSS3ParserTokenManager(CharStream stream)
Constructor.
-
CSS3ParserTokenManager
public CSS3ParserTokenManager(CharStream stream, int lexState)
Constructor.
-
-
Method Detail
-
setDebugStream
public void setDebugStream(java.io.PrintStream ds)
Set debug output.
-
jjStopStringLiteralDfa_0
private final int jjStopStringLiteralDfa_0(int pos, long active0, long active1)
-
jjStartNfa_0
private final int jjStartNfa_0(int pos, long active0, long active1)
-
jjStopAtPos
private int jjStopAtPos(int pos, int kind)
-
jjMoveStringLiteralDfa0_0
private int jjMoveStringLiteralDfa0_0()
-
jjMoveStringLiteralDfa1_0
private int jjMoveStringLiteralDfa1_0(long active0, long active1)
-
jjMoveStringLiteralDfa2_0
private int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1)
-
jjMoveStringLiteralDfa3_0
private int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1)
-
jjMoveStringLiteralDfa4_0
private int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1)
-
jjMoveStringLiteralDfa5_0
private int jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1)
-
jjMoveStringLiteralDfa6_0
private int jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1)
-
jjStartNfaWithStates_0
private int jjStartNfaWithStates_0(int pos, int kind, int state)
-
jjMoveNfa_0
private int jjMoveNfa_0(int startState, int curPos)
-
jjMoveStringLiteralDfa0_1
private int jjMoveStringLiteralDfa0_1()
-
jjMoveStringLiteralDfa1_1
private int jjMoveStringLiteralDfa1_1(long active0)
-
jjFillToken
protected Token jjFillToken()
-
jjCanMove_0
private static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)
-
getNextToken
public Token getNextToken()
Get the next Token.
-
SkipLexicalActions
void SkipLexicalActions(Token matchedToken)
-
MoreLexicalActions
void MoreLexicalActions()
-
TokenLexicalActions
void TokenLexicalActions(Token matchedToken)
-
jjCheckNAdd
private void jjCheckNAdd(int state)
-
jjAddStates
private void jjAddStates(int start, int end)
-
jjCheckNAddTwoStates
private void jjCheckNAddTwoStates(int state1, int state2)
-
jjCheckNAddStates
private void jjCheckNAddStates(int start, int end)
-
ReInit
public void ReInit(CharStream stream)
Reinitialise parser.
-
ReInitRounds
private void ReInitRounds()
-
ReInit
public void ReInit(CharStream stream, int lexState)
Reinitialise parser.
-
SwitchTo
public void SwitchTo(int lexState)
Switch to specified lex state.
-
-