Package com.yahoo.document.select.parser
Class SelectParser
java.lang.Object
com.yahoo.document.select.parser.SelectParser
- All Implemented Interfaces:
SelectParserConstants
-
Field Summary
Modifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface com.yahoo.document.select.parser.SelectParserConstants
ADD, AND, COMMA, DECIMAL, DEFAULT, DIV, DOLLAR, DOT, EOF, EQ, EXPONENT, FALSE, FLOAT, GE, GLOB, GT, HEX, ID, ID_BUCKET, ID_GROUP, ID_NAMESPACE, ID_SCHEME, ID_SPECIFIC, ID_TYPE, ID_USER, IDENTIFIER, INTEGER, LBRACE, LE, LT, MOD, MUL, NE, NOT, NOW, NULL, OCTAL, OR, RBRACE, REGEX, STRING, SUB, tokenImage, TRUE
-
Constructor Summary
ConstructorDescriptionSelectParser
(CharStream stream) Constructor with user supplied CharStream.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal ExpressionNode
final ExpressionNode
final void
Disable tracing.final DocumentNode
document()
final void
Enable tracing.final ExpressionNode
Generate ParseException.final Token
final Token
getToken
(int index) final IdNode
id()
final void
final LiteralNode
literal()
final ExpressionNode
logic()
final ExpressionNode
negation()
final NowNode
now()
void
ReInit
(CharStream stream) Reinitialise.void
Reinitialisefinal ExpressionNode
final boolean
final ExpressionNode
value()
final VariableNode
variable()
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
SelectParser
Constructor with user supplied CharStream.- Parameters:
stream
- stream to init with
-
SelectParser
Constructor with generated Token Manager.- Parameters:
tm
- Token manager to use
-
-
Method Details
-
expression
- Throws:
ParseException
-
logic
- Throws:
ParseException
-
negation
- Throws:
ParseException
-
now
- Throws:
ParseException
-
relational
- Throws:
ParseException
-
arithmetic
- Throws:
ParseException
-
variable
- Throws:
ParseException
-
attribute
- Throws:
ParseException
-
value
- Throws:
ParseException
-
document
- Throws:
ParseException
-
identifier
- Throws:
ParseException
-
id
- Throws:
ParseException
-
literal
- Throws:
ParseException
-
ReInit
Reinitialise.- Parameters:
stream
- stream to init with
-
ReInit
Reinitialise- Parameters:
tm
- Token manager to use
-
getNextToken
- Returns:
- the next Token.
-
getToken
- Parameters:
index
- index to be retrieved- Returns:
- the specific Token.
-
generateParseException
Generate ParseException.- Returns:
- new Exception object. Never
null
-
trace_enabled
public final boolean trace_enabled()- Returns:
- Always
false
.
-
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-