Package com.yahoo.document.select.parser
Class SelectParser
java.lang.Object
com.yahoo.document.select.parser.SelectParser
- All Implemented Interfaces:
SelectParserConstants
-
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionSelectParser(CharStream stream) Constructor with user supplied CharStream.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal ExpressionNodefinal ExpressionNodefinal voidDisable tracing.final DocumentNodedocument()final voidEnable tracing.final ExpressionNodeGenerate ParseException.final Tokenfinal TokengetToken(int index) final IdNodeid()final voidfinal LiteralNodeliteral()final ExpressionNodelogic()final ExpressionNodenegation()final NowNodenow()voidReInit(CharStream stream) Reinitialise.voidReinitialisefinal ExpressionNodefinal booleanfinal ExpressionNodevalue()final VariableNodevariable()
-
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.
-