Class SyntaxTreeBuilderTokenManager
- java.lang.Object
-
- org.eclipse.rdf4j.query.parser.sparql.ast.SyntaxTreeBuilderTokenManager
-
- All Implemented Interfaces:
SyntaxTreeBuilderConstants
public class SyntaxTreeBuilderTokenManager extends java.lang.Object implements SyntaxTreeBuilderConstants
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 CharStream
input_stream
(package private) static long[]
jjbitVec0
(package private) static long[]
jjbitVec10
(package private) static long[]
jjbitVec11
(package private) static long[]
jjbitVec12
(package private) static long[]
jjbitVec13
(package private) static long[]
jjbitVec2
(package private) static long[]
jjbitVec3
(package private) static long[]
jjbitVec4
(package private) static long[]
jjbitVec5
(package private) static long[]
jjbitVec6
(package private) static long[]
jjbitVec7
(package private) static long[]
jjbitVec8
(package private) static long[]
jjbitVec9
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
static java.lang.String[]
lexStateNames
Lexer state names.-
Fields inherited from interface org.eclipse.rdf4j.query.parser.sparql.ast.SyntaxTreeBuilderConstants
ABS, ADD, ALL, ALPHA, AND, ANON, AS, ASC, ASK, AVG, BASE, BIND, BINDINGS, BLANK_NODE_LABEL, BNODE, BOUND, BY, CEIL, CLEAR, COALESCE, COMMA, CONCAT, CONSTRUCT, CONTAINS, COPY, COUNT, CREATE, DATA, DATATYPE, DAY, DECIMAL, DECIMAL_NEGATIVE, DECIMAL_POSITIVE, DEFAULT, DEFAULT_GRAPH, DELETE, DESC, DESCRIBE, DISTINCT, DOT, DOUBLE, DOUBLE_NEGATIVE, DOUBLE_POSITIVE, DOUBLE1, DOUBLE2, DOUBLE3, DROP, DT_PREFIX, ECHAR, ENCODE_FOR_URI, EOF, EQ, EXISTS, EXPONENT, FALSE, FILTER, FLOOR, FROM, GE, GRAPH, GROUP, GROUP_CONCAT, GT, HAVING, HEX, HOURS, IF, IN, INSERT, INTEGER, INTEGER_NEGATIVE, INTEGER_POSITIVE, INTO, INVERSE, IRI, IS_A, IS_BLANK, IS_IRI, IS_LITERAL, IS_NUMERIC, LANG, LANGMATCHES, LANGTAG, LBRACE, LBRACK, LCASE, LE, LIMIT, LOAD, LPAREN, LT, MAX, MD5, MIN, MINUS, MINUS_SETOPER, MINUTES, MONTH, MOVE, NAMED, NE, NIL, NOT, NOT_FUNC, NOW, NUM, OFFSET, OPTIONAL, OR, ORDER, PERCENT, PIPE, PLUS, PLX, PN_CHARS, PN_CHARS_BASE, PN_CHARS_U, PN_LOCAL, PN_LOCAL_ESC, PN_PREFIX, PNAME_LN, PNAME_NS, PREFIX, Q_IRI_REF, QUESTION, RAND, RBRACE, RBRACK, REDUCED, REGEX, REPLACE, ROUND, RPAREN, SAFE_CHAR_LONG1, SAFE_CHAR_LONG2, SAFE_CHAR1, SAFE_CHAR2, SAMETERM, SAMPLE, SECONDS, SELECT, SEMICOLON, SEPARATOR, SERVICE, SHA1, SHA224, SHA256, SHA384, SHA512, SILENT, SINGLE_LINE_COMMENT, SLASH, STAR, STR, STR_AFTER, STR_BEFORE, STR_ENDS, STR_STARTS, STRDT, STRING_LITERAL_LONG1, STRING_LITERAL_LONG2, STRING_LITERAL1, STRING_LITERAL2, STRLANG, STRLEN, STRUUID, SUBSTR, SUM, TIMEZONE, TO, tokenImage, TRIPLE_CLOSE, TRIPLE_OPEN, TRUE, TZ, UCASE, UNDEF, UNION, USING, UUID, VALUES, VAR_CHAR, VAR1, VAR2, VARNAME, WHERE, WHITESPACE, WITH, WS_CHAR, YEAR
-
-
Constructor Summary
Constructors Constructor Description SyntaxTreeBuilderTokenManager(CharStream stream)
Constructor.SyntaxTreeBuilderTokenManager(CharStream 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 static boolean
jjCanMove_2(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 curPos)
private int
jjMoveNfa_0_curChar128AndAbove(int startsAt, int i, int kind)
private int
jjMoveNfa_0_curCharLessThan128(int startsAt, int i, int kind)
private int
jjMoveNfa_0_curCharLessThan64(int startsAt, int i, int kind)
private int
jjMoveStringLiteralDfa0_0()
private int
jjMoveStringLiteralDfa1_0(long active0, long active1, long active2)
private int
jjMoveStringLiteralDfa10_0(long old0, long active0, long old1, long active1)
private int
jjMoveStringLiteralDfa11_0(long old0, long old1, long active1)
private int
jjMoveStringLiteralDfa12_0(long old1, long active1)
private int
jjMoveStringLiteralDfa13_0(long old1, long active1)
private int
jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1, long old2, long active2)
private int
jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1, long old2, long active2)
private int
jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1, long old2, long active2)
private int
jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1, long old2, long active2)
private int
jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1, long old2, long active2)
private int
jjMoveStringLiteralDfa7_0(long old0, long active0, long old1, long active1, long old2)
private int
jjMoveStringLiteralDfa8_0(long old0, long active0, long old1, long active1)
private int
jjMoveStringLiteralDfa9_0(long old0, long active0, long old1, long active1)
private int
jjStopAtPos(int pos, int kind)
(package private) void
MoreLexicalActions()
void
ReInit(CharStream stream)
Reinitialise parser.void
ReInit(CharStream 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
-
jjbitVec4
static final long[] jjbitVec4
-
jjbitVec5
static final long[] jjbitVec5
-
jjbitVec6
static final long[] jjbitVec6
-
jjbitVec7
static final long[] jjbitVec7
-
jjbitVec8
static final long[] jjbitVec8
-
jjbitVec9
static final long[] jjbitVec9
-
jjbitVec10
static final long[] jjbitVec10
-
jjbitVec11
static final long[] jjbitVec11
-
jjbitVec12
static final long[] jjbitVec12
-
jjbitVec13
static final long[] jjbitVec13
-
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 final java.lang.StringBuilder image
-
jjimageLen
private int jjimageLen
-
curChar
protected int curChar
-
-
Constructor Detail
-
SyntaxTreeBuilderTokenManager
public SyntaxTreeBuilderTokenManager(CharStream stream)
Constructor.
-
SyntaxTreeBuilderTokenManager
public SyntaxTreeBuilderTokenManager(CharStream 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_0
private int jjMoveStringLiteralDfa0_0()
-
jjMoveStringLiteralDfa1_0
private int jjMoveStringLiteralDfa1_0(long active0, long active1, long active2)
-
jjMoveStringLiteralDfa2_0
private int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1, long old2, long active2)
-
jjMoveStringLiteralDfa3_0
private int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1, long old2, long active2)
-
jjMoveStringLiteralDfa4_0
private int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1, long old2, long active2)
-
jjMoveStringLiteralDfa5_0
private int jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1, long old2, long active2)
-
jjMoveStringLiteralDfa6_0
private int jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1, long old2, long active2)
-
jjMoveStringLiteralDfa7_0
private int jjMoveStringLiteralDfa7_0(long old0, long active0, long old1, long active1, long old2)
-
jjMoveStringLiteralDfa8_0
private int jjMoveStringLiteralDfa8_0(long old0, long active0, long old1, long active1)
-
jjMoveStringLiteralDfa9_0
private int jjMoveStringLiteralDfa9_0(long old0, long active0, long old1, long active1)
-
jjMoveStringLiteralDfa10_0
private int jjMoveStringLiteralDfa10_0(long old0, long active0, long old1, long active1)
-
jjMoveStringLiteralDfa11_0
private int jjMoveStringLiteralDfa11_0(long old0, long old1, long active1)
-
jjMoveStringLiteralDfa12_0
private int jjMoveStringLiteralDfa12_0(long old1, long active1)
-
jjMoveStringLiteralDfa13_0
private int jjMoveStringLiteralDfa13_0(long old1, long active1)
-
jjMoveNfa_0
private int jjMoveNfa_0(int curPos)
-
jjMoveNfa_0_curChar128AndAbove
private int jjMoveNfa_0_curChar128AndAbove(int startsAt, int i, int kind)
-
jjMoveNfa_0_curCharLessThan128
private int jjMoveNfa_0_curCharLessThan128(int startsAt, int i, int kind)
-
jjMoveNfa_0_curCharLessThan64
private int jjMoveNfa_0_curCharLessThan64(int startsAt, int i, int kind)
-
jjFillToken
protected Token jjFillToken()
-
jjCanMove_0
private static boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)
-
jjCanMove_1
private static boolean jjCanMove_1(int hiByte, int i1, int i2, long l1, long l2)
-
jjCanMove_2
private static boolean jjCanMove_2(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.
-
-