Class MapCSSParserTokenManager
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParserTokenManager
-
- All Implemented Interfaces:
MapCSSParserConstants
public class MapCSSParserTokenManager extends java.lang.Object implements MapCSSParserConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
curChar
(package private) int
curLexState
java.io.PrintStream
debugStream
Debug output.(package private) int
defaultLexState
private java.lang.StringBuilder
image
protected SimpleCharStream
input_stream
(package private) static long[]
jjbitVec0
(package private) static long[]
jjbitVec2
(package private) static long[]
jjbitVec3
private java.lang.StringBuilder
jjimage
private int
jjimageLen
(package private) int
jjmatchedKind
(package private) int
jjmatchedPos
static int[]
jjnewLexState
Lex State array.(package private) int
jjnewStateCnt
(package private) static int[]
jjnextStates
(package private) int
jjround
private int[]
jjrounds
private int[]
jjstateSet
static java.lang.String[]
jjstrLiteralImages
Token literal values.(package private) static long[]
jjtoMore
(package private) static long[]
jjtoSkip
(package private) static long[]
jjtoSpecial
(package private) static long[]
jjtoToken
private int
lengthOfMatch
static java.lang.String[]
lexStateNames
Lexer state names.-
Fields inherited from interface org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParserConstants
AMPERSAND, CARET, COLON, COMMA, COMMENT, COMMENT_END, COMMENT_START, CROSSING, DCOLON, DEFAULT, DEG, DOLLAR, EOF, EQUAL, EXCLAMATION, FULLSTOP, GREATER, GREATER_EQUAL, H, HEXCOLOR, IDENT, LBRACE, LESS, LESS_EQUAL, LPAR, LSQUARE, MINUS, NOT_SUBSET_OR_EQUAL, NOT_SUPERSET_OR_EQUAL, PERCENT, PIPE, PIPE_Z, PLUS, PP_AND, PP_COMMENT, PP_COMMENT_END, PP_COMMENT_START, PP_NEWLINECHAR, PP_NOT, PP_OR, PP_SOMETHING_ELSE, PP_SUPPORTS, PP_WHITESPACE, PREDEFINED, PREPROCESSOR, QUESTION, RBRACE, REGEX, REGEX_CHAR_WITHOUT_STAR, RPAR, RSQUARE, S, SEMICOLON, SET, SLASH, STAR, STRING, SUBSET_OR_EQUAL, SUPERSET_OR_EQUAL, TILDE, tokenImage, UFLOAT, UINT, UNEXPECTED_CHAR
-
-
Constructor Summary
Constructors Constructor Description MapCSSParserTokenManager(SimpleCharStream stream)
Constructor.MapCSSParserTokenManager(SimpleCharStream stream, int lexState)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Token
getNextToken()
Get the next Token.private void
jjAddStates(int start, int end)
private static boolean
jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)
private static boolean
jjCanMove_1(int hiByte, int i1, int i2, long l1, long l2)
private void
jjCheckNAdd(int state)
private void
jjCheckNAddStates(int start, int end)
private void
jjCheckNAddTwoStates(int state1, int state2)
protected Token
jjFillToken()
private int
jjMoveNfa_0(int startState, int curPos)
private int
jjMoveNfa_2(int startState, int curPos)
private int
jjMoveStringLiteralDfa0_0()
private int
jjMoveStringLiteralDfa0_1()
private int
jjMoveStringLiteralDfa0_2()
private int
jjMoveStringLiteralDfa0_3()
private int
jjMoveStringLiteralDfa1_0(long active0)
private int
jjMoveStringLiteralDfa1_1(long active0)
private int
jjMoveStringLiteralDfa1_2(long active0)
private int
jjMoveStringLiteralDfa1_3(long active0)
private int
jjMoveStringLiteralDfa2_0(long old0, long active0)
private int
jjMoveStringLiteralDfa2_2(long old0, long active0)
private int
jjMoveStringLiteralDfa3_0(long old0, long active0)
private int
jjMoveStringLiteralDfa4_0(long old0, long active0)
private int
jjMoveStringLiteralDfa5_0(long old0, long active0)
private int
jjMoveStringLiteralDfa6_0(long old0, long active0)
private int
jjMoveStringLiteralDfa7_0(long old0, long active0)
private int
jjMoveStringLiteralDfa8_0(long old0, long active0)
private int
jjStartNfa_0(int pos, long active0)
private int
jjStartNfaWithStates_0(int pos, int kind, int state)
private int
jjStopAtPos(int pos, int kind)
private int
jjStopStringLiteralDfa_0(int pos, long active0)
(package private) void
MoreLexicalActions()
void
ReInit(SimpleCharStream stream)
Reinitialise parser.void
ReInit(SimpleCharStream stream, int lexState)
Reinitialise parser.private void
ReInitRounds()
void
setDebugStream(java.io.PrintStream ds)
Set debug output.(package private) void
SkipLexicalActions(Token matchedToken)
void
SwitchTo(int lexState)
Switch to specified lex state.(package private) void
TokenLexicalActions(Token matchedToken)
-
-
-
Field Detail
-
debugStream
public java.io.PrintStream debugStream
Debug output.
-
jjbitVec0
static final long[] jjbitVec0
-
jjbitVec2
static final long[] jjbitVec2
-
jjbitVec3
static final long[] jjbitVec3
-
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 SimpleCharStream 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
-
MapCSSParserTokenManager
public MapCSSParserTokenManager(SimpleCharStream stream)
Constructor.
-
MapCSSParserTokenManager
public MapCSSParserTokenManager(SimpleCharStream stream, int lexState)
Constructor.
-
-
Method Detail
-
setDebugStream
public void setDebugStream(java.io.PrintStream ds)
Set debug output.
-
jjStopAtPos
private int jjStopAtPos(int pos, int kind)
-
jjMoveStringLiteralDfa0_2
private int jjMoveStringLiteralDfa0_2()
-
jjMoveStringLiteralDfa1_2
private int jjMoveStringLiteralDfa1_2(long active0)
-
jjMoveStringLiteralDfa2_2
private int jjMoveStringLiteralDfa2_2(long old0, long active0)
-
jjMoveNfa_2
private int jjMoveNfa_2(int startState, int curPos)
-
jjStopStringLiteralDfa_0
private final int jjStopStringLiteralDfa_0(int pos, long active0)
-
jjStartNfa_0
private final int jjStartNfa_0(int pos, long active0)
-
jjMoveStringLiteralDfa0_0
private int jjMoveStringLiteralDfa0_0()
-
jjMoveStringLiteralDfa1_0
private int jjMoveStringLiteralDfa1_0(long active0)
-
jjMoveStringLiteralDfa2_0
private int jjMoveStringLiteralDfa2_0(long old0, long active0)
-
jjMoveStringLiteralDfa3_0
private int jjMoveStringLiteralDfa3_0(long old0, long active0)
-
jjMoveStringLiteralDfa4_0
private int jjMoveStringLiteralDfa4_0(long old0, long active0)
-
jjMoveStringLiteralDfa5_0
private int jjMoveStringLiteralDfa5_0(long old0, long active0)
-
jjMoveStringLiteralDfa6_0
private int jjMoveStringLiteralDfa6_0(long old0, long active0)
-
jjMoveStringLiteralDfa7_0
private int jjMoveStringLiteralDfa7_0(long old0, long active0)
-
jjMoveStringLiteralDfa8_0
private int jjMoveStringLiteralDfa8_0(long old0, long active0)
-
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)
-
jjMoveStringLiteralDfa0_3
private int jjMoveStringLiteralDfa0_3()
-
jjMoveStringLiteralDfa1_3
private int jjMoveStringLiteralDfa1_3(long active0)
-
jjFillToken
protected Token jjFillToken()
-
jjCanMove_0
private static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)
-
jjCanMove_1
private static final boolean jjCanMove_1(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(SimpleCharStream stream)
Reinitialise parser.
-
ReInitRounds
private void ReInitRounds()
-
ReInit
public void ReInit(SimpleCharStream stream, int lexState)
Reinitialise parser.
-
SwitchTo
public void SwitchTo(int lexState)
Switch to specified lex state.
-
-