public class OQLParser extends Object implements OQLParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
OQLParserTokenManager |
token_source
Generated Token Manager.
|
AND, ARRAY, ARRAYLEFT, ARRAYRIGHT, CHARACTER_LITERAL, COLON, COMMA, DECIMAL_LITERAL, DEFAULT, DIVIDE, DOLLAR_SIGN, DOT, EOF, EQ, EXPONENT, FALSE, FLOATING_POINT_LITERAL, FORMAL_COMMENT, GE, GT, HEX_LITERAL, IDENTIFIER, IMPLEMENTS, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INSIDE_COMMENT, INSTANCEOF, INTEGER_LITERAL, LBRACE, LE, LETTER, LONG_LITERAL, LPAREN, LT, MINUS, MULTI_LINE_COMMENT, NATIVE, NE, NULL, OCTAL_LITERAL, OR, PART_LETTER, PLUS, RBRACE, RPAREN, SINGLE_LINE_COMMENT, STAR, START_FORMAL_COMMENT, STRING_LITERAL, TERMINATOR, tokenImage, TRUE
Constructor and Description |
---|
OQLParser(InputStream stream)
Constructor with InputStream.
|
OQLParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
OQLParser(OQLParserTokenManager tm)
Constructor with generated Token Manager.
|
OQLParser(Reader stream)
Constructor.
|
public OQLParserTokenManager token_source
public Token token
public Token jj_nt
public OQLParser(InputStream stream)
public OQLParser(InputStream stream, String encoding)
public OQLParser(Reader stream)
public OQLParser(OQLParserTokenManager tm)
public void setCompiler(ICompiler compiler)
public static void main(String[] args) throws ParseException
ParseException
public final Query ParseQuery() throws ParseException
ParseException
public final Query ParseQueryFromInputLine() throws ParseException
ParseException
public final Query SelectStatement() throws ParseException
ParseException
public final void SelectList(Query q) throws ParseException
ParseException
public final Query.SelectItem SelectItem() throws ParseException
ParseException
public final Object PathExpression() throws ParseException
ParseException
public final Object EnvVarPathExpression() throws ParseException
ParseException
public final Object ObjectFacet(boolean isFirstInPath) throws ParseException
ParseException
public final List<Expression> ParameterList() throws ParseException
ParseException
public final void FromClause(Query q) throws ParseException
ParseException
public final void FromItem(Query.FromClause fromClause) throws ParseException
ParseException
public final String ClassName() throws ParseException
ParseException
public final long ObjectAddress() throws ParseException
ParseException
public final int ObjectId() throws ParseException
ParseException
public final void WhereClause(Query q) throws ParseException
ParseException
public final Object ConditionalOrExpression() throws ParseException
ParseException
public final Object ConditionalAndExpression() throws ParseException
ParseException
public final Object EqualityExpression() throws ParseException
ParseException
public final Object RelationalExpression() throws ParseException
ParseException
public final Object NotLikeInClause(Object left) throws ParseException
ParseException
public final Object LikeClause(Object left, boolean isLike) throws ParseException
ParseException
public final Object InClause(Object left, boolean isIn) throws ParseException
ParseException
public final Object SimpleExpression() throws ParseException
ParseException
public final Object MultiplicativeExpression() throws ParseException
ParseException
public final Object PrimaryExpression() throws ParseException
ParseException
public final Object SubQuery() throws ParseException
ParseException
public final Object Literal() throws ParseException
ParseException
public final Object NumberLiteral() throws ParseException
ParseException
public final Object BooleanLiteral() throws ParseException
ParseException
public final Object NullLiteral() throws ParseException
ParseException
public final void UnionClause(Query q) throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(OQLParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()