Package org.terrier.querying.parser
Class TerrierQLParserTokenManager
- java.lang.Object
-
- org.terrier.querying.parser.TerrierQLParserTokenManager
-
- All Implemented Interfaces:
TerrierQLParserConstants
public class TerrierQLParserTokenManager extends java.lang.Object implements TerrierQLParserConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
curChar
java.io.PrintStream
debugStream
Debug output.protected SimpleCharStream
input_stream
static int[]
jjnewLexState
Lex State array.static java.lang.String[]
jjstrLiteralImages
Token literal values.static java.lang.String[]
lexStateNames
Lexer state names.-
Fields inherited from interface org.terrier.querying.parser.TerrierQLParserConstants
ALPHANUMERIC, CLOSE_DISJUNCTIVE, CLOSE_PAREN, COLON, DEFAULT, EOF, FLOAT, HAT, NOT_REQUIRED, OLD_MAC_EOL, OPEN_DISJUNCTIVE, OPEN_PAREN, PROXIMITY, QUOTE, REQUIRED, SPACE, tokenImage, UNIX_EOL, WINDOWS_EOL, WithinWeight
-
-
Constructor Summary
Constructors Constructor Description TerrierQLParserTokenManager(SimpleCharStream stream)
Constructor.TerrierQLParserTokenManager(SimpleCharStream stream, int lexState)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Token
getNextToken()
Get the next Token.protected Token
jjFillToken()
void
ReInit(SimpleCharStream stream)
Reinitialise parser.void
ReInit(SimpleCharStream stream, int lexState)
Reinitialise parser.void
setDebugStream(java.io.PrintStream ds)
Set debug output.void
SwitchTo(int lexState)
Switch to specified lex state.
-
-
-
Field Detail
-
debugStream
public java.io.PrintStream debugStream
Debug output.
-
jjstrLiteralImages
public static final java.lang.String[] jjstrLiteralImages
Token literal values.
-
lexStateNames
public static final java.lang.String[] lexStateNames
Lexer state names.
-
jjnewLexState
public static final int[] jjnewLexState
Lex State array.
-
input_stream
protected SimpleCharStream input_stream
-
curChar
protected int curChar
-
-
Constructor Detail
-
TerrierQLParserTokenManager
public TerrierQLParserTokenManager(SimpleCharStream stream)
Constructor.
-
TerrierQLParserTokenManager
public TerrierQLParserTokenManager(SimpleCharStream stream, int lexState)
Constructor.
-
-
Method Detail
-
setDebugStream
public void setDebugStream(java.io.PrintStream ds)
Set debug output.
-
jjFillToken
protected Token jjFillToken()
-
getNextToken
public Token getNextToken()
Get the next Token.
-
ReInit
public void ReInit(SimpleCharStream stream)
Reinitialise parser.
-
ReInit
public void ReInit(SimpleCharStream stream, int lexState)
Reinitialise parser.
-
SwitchTo
public void SwitchTo(int lexState)
Switch to specified lex state.
-
-