77
77
import org .w3c .css .selectors .attributes .AttributeSuffix ;
78
78
79
79
/** Token Manager. */
80
- @ SuppressWarnings ( "unused" ) public class CssParserTokenManager implements CssParserConstants {
80
+ public class CssParserTokenManager implements CssParserConstants {
81
81
82
82
/** Debug output. */
83
83
public java .io .PrintStream debugStream = System .out ;
@@ -6131,7 +6131,7 @@ else if ((0x800000008000L & l) != 0L)
6131
6131
kind = 96 ;
6132
6132
{ jjCheckNAddTwoStates (678 , 679 ); }
6133
6133
break ;
6134
- default : if (i1 == 0 || l1 == 0 || i2 == 0 || l2 == 0 ) break ; else break ;
6134
+ default : if (i1 == 0 || l1 == 0 || i2 == 0 || l2 == 0 ) break ; else break ;
6135
6135
}
6136
6136
} while (i != startsAt );
6137
6137
}
@@ -6167,6 +6167,41 @@ else if (jjmatchedPos == strPos && jjmatchedKind > strKind)
6167
6167
6168
6168
return toRet ;
6169
6169
}
6170
+
6171
+ /** Token literal values. */
6172
+ public static final String [] jjstrLiteralImages = {
6173
+ "" , null , null , null , null , null , null , null , null , null , null , null , null ,
6174
+ null , null , null , null , null , null , null , null , null , "\74 \41 \55 \55 " , "\55 \55 \76 " ,
6175
+ null , "\174 \75 " , null , null , "\55 " , null , null , null , null , null , null , null , null ,
6176
+ null , null , "\175 " , "\136 \75 " , "\44 \75 " , "\52 \75 " , "\75 " , "\73 " , "\57 " , "\133 " ,
6177
+ "\135 " , "\52 " , "\56 " , "\51 " , "\50 " , "\72 " , null , null , null , null , null , null , null ,
6178
+ null , null , null , null , null , null , null , null , "\72 \72 " , null , null , null , null ,
6179
+ null , null , null , null , null , null , null , null , null , null , null , null , null , null ,
6180
+ null , null , null , null , null , null , null , null , null , null , null , null , null , null ,
6181
+ null , null , null , "\174 " , "\45 " , };
6182
+ protected Token jjFillToken ()
6183
+ {
6184
+ final Token t ;
6185
+ final String curTokenImage ;
6186
+ final int beginLine ;
6187
+ final int endLine ;
6188
+ final int beginColumn ;
6189
+ final int endColumn ;
6190
+ String im = jjstrLiteralImages [jjmatchedKind ];
6191
+ curTokenImage = (im == null ) ? input_stream .GetImage () : im ;
6192
+ beginLine = input_stream .getBeginLine ();
6193
+ beginColumn = input_stream .getBeginColumn ();
6194
+ endLine = input_stream .getEndLine ();
6195
+ endColumn = input_stream .getEndColumn ();
6196
+ t = Token .newToken (jjmatchedKind , curTokenImage );
6197
+
6198
+ t .beginLine = beginLine ;
6199
+ t .endLine = endLine ;
6200
+ t .beginColumn = beginColumn ;
6201
+ t .endColumn = endColumn ;
6202
+
6203
+ return t ;
6204
+ }
6170
6205
static final int [] jjnextStates = {
6171
6206
700 , 701 , 702 , 564 , 703 , 704 , 705 , 567 , 706 , 707 , 708 , 570 , 709 , 710 , 711 , 573 ,
6172
6207
712 , 713 , 714 , 576 , 715 , 716 , 717 , 579 , 718 , 719 , 720 , 584 , 721 , 722 , 723 , 589 ,
@@ -6305,41 +6340,6 @@ private static final boolean jjCanMove_1(int hiByte, int i1, int i2, long l1, lo
6305
6340
}
6306
6341
}
6307
6342
6308
- /** Token literal values. */
6309
- public static final String [] jjstrLiteralImages = {
6310
- "" , null , null , null , null , null , null , null , null , null , null , null , null ,
6311
- null , null , null , null , null , null , null , null , null , "\74 \41 \55 \55 " , "\55 \55 \76 " ,
6312
- null , "\174 \75 " , null , null , "\55 " , null , null , null , null , null , null , null , null ,
6313
- null , null , "\175 " , "\136 \75 " , "\44 \75 " , "\52 \75 " , "\75 " , "\73 " , "\57 " , "\133 " ,
6314
- "\135 " , "\52 " , "\56 " , "\51 " , "\50 " , "\72 " , null , null , null , null , null , null , null ,
6315
- null , null , null , null , null , null , null , null , "\72 \72 " , null , null , null , null ,
6316
- null , null , null , null , null , null , null , null , null , null , null , null , null , null ,
6317
- null , null , null , null , null , null , null , null , null , null , null , null , null , null ,
6318
- null , null , null , "\174 " , "\45 " , };
6319
- protected Token jjFillToken ()
6320
- {
6321
- final Token t ;
6322
- final String curTokenImage ;
6323
- final int beginLine ;
6324
- final int endLine ;
6325
- final int beginColumn ;
6326
- final int endColumn ;
6327
- String im = jjstrLiteralImages [jjmatchedKind ];
6328
- curTokenImage = (im == null ) ? input_stream .GetImage () : im ;
6329
- beginLine = input_stream .getBeginLine ();
6330
- beginColumn = input_stream .getBeginColumn ();
6331
- endLine = input_stream .getEndLine ();
6332
- endColumn = input_stream .getEndColumn ();
6333
- t = Token .newToken (jjmatchedKind , curTokenImage );
6334
-
6335
- t .beginLine = beginLine ;
6336
- t .endLine = endLine ;
6337
- t .beginColumn = beginColumn ;
6338
- t .endColumn = endColumn ;
6339
-
6340
- return t ;
6341
- }
6342
-
6343
6343
int curLexState = 0 ;
6344
6344
int defaultLexState = 0 ;
6345
6345
int jjnewStateCnt ;
@@ -6361,7 +6361,7 @@ public Token getNextToken()
6361
6361
{
6362
6362
curChar = input_stream .BeginToken ();
6363
6363
}
6364
- catch (java . io . IOException e )
6364
+ catch (Exception e )
6365
6365
{
6366
6366
jjmatchedKind = 0 ;
6367
6367
jjmatchedPos = -1 ;
@@ -6422,6 +6422,31 @@ public Token getNextToken()
6422
6422
}
6423
6423
}
6424
6424
6425
+ void SkipLexicalActions (Token matchedToken )
6426
+ {
6427
+ switch (jjmatchedKind )
6428
+ {
6429
+ default :
6430
+ break ;
6431
+ }
6432
+ }
6433
+ void MoreLexicalActions ()
6434
+ {
6435
+ jjimageLen += (lengthOfMatch = jjmatchedPos + 1 );
6436
+ switch (jjmatchedKind )
6437
+ {
6438
+ default :
6439
+ break ;
6440
+ }
6441
+ }
6442
+ void TokenLexicalActions (Token matchedToken )
6443
+ {
6444
+ switch (jjmatchedKind )
6445
+ {
6446
+ default :
6447
+ break ;
6448
+ }
6449
+ }
6425
6450
private void jjCheckNAdd (int state )
6426
6451
{
6427
6452
if (jjrounds [state ] != jjround )
@@ -6465,9 +6490,14 @@ public CssParserTokenManager (SimpleCharStream stream, int lexState){
6465
6490
}
6466
6491
6467
6492
/** Reinitialise parser. */
6493
+
6468
6494
public void ReInit (SimpleCharStream stream )
6469
6495
{
6470
- jjmatchedPos = jjnewStateCnt = 0 ;
6496
+
6497
+
6498
+ jjmatchedPos =
6499
+ jjnewStateCnt =
6500
+ 0 ;
6471
6501
curLexState = defaultLexState ;
6472
6502
input_stream = stream ;
6473
6503
ReInitRounds ();
@@ -6483,6 +6513,7 @@ private void ReInitRounds()
6483
6513
6484
6514
/** Reinitialise parser. */
6485
6515
public void ReInit (SimpleCharStream stream , int lexState )
6516
+
6486
6517
{
6487
6518
ReInit (stream );
6488
6519
SwitchTo (lexState );
@@ -6497,10 +6528,20 @@ public void SwitchTo(int lexState)
6497
6528
curLexState = lexState ;
6498
6529
}
6499
6530
6531
+
6500
6532
/** Lexer state names. */
6501
6533
public static final String [] lexStateNames = {
6502
6534
"DEFAULT" ,
6503
6535
};
6536
+
6537
+ /** Lex State array. */
6538
+ public static final int [] jjnewLexState = {
6539
+ -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
6540
+ -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
6541
+ -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
6542
+ -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
6543
+ -1 , -1 , -1 , -1 , -1 , -1 ,
6544
+ };
6504
6545
static final long [] jjtoToken = {
6505
6546
0xffffffffffe00001L , 0x3ff803fffffL ,
6506
6547
};
@@ -6509,12 +6550,17 @@ public void SwitchTo(int lexState)
6509
6550
};
6510
6551
static final long [] jjtoSpecial = {
6511
6552
0x2L , 0x0L ,
6553
+ };
6554
+ static final long [] jjtoMore = {
6555
+ 0x0L , 0x0L ,
6512
6556
};
6513
6557
protected SimpleCharStream input_stream ;
6514
6558
6515
6559
private final int [] jjrounds = new int [775 ];
6516
6560
private final int [] jjstateSet = new int [2 * 775 ];
6517
-
6518
-
6519
- protected char curChar ;
6561
+ private final StringBuilder jjimage = new StringBuilder ();
6562
+ private StringBuilder image = jjimage ;
6563
+ private int jjimageLen ;
6564
+ private int lengthOfMatch ;
6565
+ protected int curChar ;
6520
6566
}
0 commit comments