/* Generated By:JavaCC: Do not edit this line. HTMLParserTokenManager.java */
package org.apache.lucene.demo.html;
import java.io.*;
import java.util.Properties;
public class HTMLParserTokenManager implements HTMLParserConstants
{
public java.io.PrintStream debugStream = System.out;
public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
private final int jjStopStringLiteralDfa_0(int pos, long active0)
{
switch (pos)
{
case 0:
if ((active0 & 0x32L) != 0L)
return 17;
return -1;
case 1:
if ((active0 & 0x30L) != 0L)
return 22;
if ((active0 & 0x2L) != 0L)
{
if (jjmatchedPos != 1)
{
jjmatchedKind = 2;
jjmatchedPos = 1;
}
return 19;
}
return -1;
case 2:
if ((active0 & 0x2L) != 0L)
{
jjmatchedKind = 2;
jjmatchedPos = 2;
return 20;
}
return -1;
case 3:
if ((active0 & 0x2L) != 0L)
{
jjmatchedKind = 2;
jjmatchedPos = 3;
return 20;
}
return -1;
case 4:
if ((active0 & 0x2L) != 0L)
{
jjmatchedKind = 2;
jjmatchedPos = 4;
return 20;
}
return -1;
case 5:
if ((active0 & 0x2L) != 0L)
{
jjmatchedKind = 2;
jjmatchedPos = 5;
return 20;
}
return -1;
default :
return -1;
}
}
private final int jjStartNfa_0(int pos, long active0)
{
return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1);
}
private final int jjStopAtPos(int pos, int kind)
{
jjmatchedKind = kind;
jjmatchedPos = pos;
return pos + 1;
}
private final int jjStartNfaWithStates_0(int pos, int kind, int state)
{
jjmatchedKind = kind;
jjmatchedPos = pos;
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { return pos + 1; }
return jjMoveNfa_0(state, pos + 1);
}
private final int jjMoveStringLiteralDfa0_0()
{
switch(curChar)
{
case 60:
return jjMoveStringLiteralDfa1_0(0x32L);
default :
return jjMoveNfa_0(11, 0);
}
}
private final int jjMoveStringLiteralDfa1_0(long active0)
{
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(0, active0);
return 1;
}
switch(curChar)
{
case 33:
if ((active0 & 0x20L) != 0L)
{
jjmatchedKind = 5;
jjmatchedPos = 1;
}
return jjMoveStringLiteralDfa2_0(active0, 0x10L);
case 115:
return jjMoveStringLiteralDfa2_0(active0, 0x2L);
default :
break;
}
return jjStartNfa_0(0, active0);
}
private final int jjMoveStringLiteralDfa2_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjStartNfa_0(0, old0);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(1, active0);
return 2;
}
switch(curChar)
{
case 45:
return jjMoveStringLiteralDfa3_0(active0, 0x10L);
case 99:
return jjMoveStringLiteralDfa3_0(active0, 0x2L);
default :
break;
}
return jjStartNfa_0(1, active0);
}
private final int jjMoveStringLiteralDfa3_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjStartNfa_0(1, old0);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(2, active0);
return 3;
}
switch(curChar)
{
case 45:
if ((active0 & 0x10L) != 0L)
return jjStopAtPos(3, 4);
break;
case 114:
return jjMoveStringLiteralDfa4_0(active0, 0x2L);
default :
break;
}
return jjStartNfa_0(2, active0);
}
private final int jjMoveStringLiteralDfa4_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjStartNfa_0(2, old0);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(3, active0);
return 4;
}
switch(curChar)
{
case 105:
return jjMoveStringLiteralDfa5_0(active0, 0x2L);
default :
break;
}
return jjStartNfa_0(3, active0);
}
private final int jjMoveStringLiteralDfa5_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjStartNfa_0(3, old0);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(4, active0);
return 5;
}
switch(curChar)
{
case 112:
return jjMoveStringLiteralDfa6_0(active0, 0x2L);
default :
break;
}
return jjStartNfa_0(4, active0);
}
private final int jjMoveStringLiteralDfa6_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjStartNfa_0(4, old0);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(5, active0);
return 6;
}
switch(curChar)
{
case 116:
if ((active0 & 0x2L) != 0L)
return jjStartNfaWithStates_0(6, 1, 20);
break;
default :
break;
}
return jjStartNfa_0(5, active0);
}
private final void jjCheckNAdd(int state)
{
if (jjrounds[state] != jjround)
{
jjstateSet[jjnewStateCnt++] = state;
jjrounds[state] = jjround;
}
}
private final void jjAddStates(int start, int end)
{
do {
jjstateSet[jjnewStateCnt++] = jjnextStates[start];
} while (start++ != end);
}
private final void jjCheckNAddTwoStates(int state1, int state2)
{
jjCheckNAdd(state1);
jjCheckNAdd(state2);
}
private final void jjCheckNAddStates(int start, int end)
{
do {
jjCheckNAdd(jjnextStates[start]);
} while (start++ != end);
}
private final void jjCheckNAddStates(int start)
{
jjCheckNAdd(jjnextStates[start]);
jjCheckNAdd(jjnextStates[start + 1]);
}
static final long[] jjbitVec0 = {
0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
};
private final int jjMoveNfa_0(int startState, int curPos)
{
int[] nextStates;
int startsAt = 0;
jjnewStateCnt = 25;
int i = 1;
jjstateSet[0] = startState;
int j, kind = 0x7fffffff;
for (;;)
{
if (++jjround == 0x7fffffff)
ReInitRounds();
if (curChar < 64)
{
long l = 1L << curChar;
MatchLoop: do
{
switch(jjstateSet[--i])
{
case 11:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(7, 2);
else if ((0x100002600L & l) != 0L)
{
if (kind > 10)
kind = 10;
jjCheckNAdd(10);
}
else if (curChar == 60)
jjCheckNAddStates(0, 2);
else if (curChar == 38)
jjAddStates(3, 4);
else if (curChar == 36)
jjstateSet[jjnewStateCnt++] = 1;
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 6)
kind = 6;
jjCheckNAddStates(5, 9);
}
break;
case 17:
if (curChar == 33)
jjstateSet[jjnewStateCnt++] = 22;
else if (curChar == 47)
jjCheckNAdd(18);
break;
case 0:
if (curChar == 36)
jjstateSet[jjnewStateCnt++] = 1;
break;
case 1:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAdd(2);
break;
case 2:
i