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
ParseExceptionpublic final Query ParseQuery() throws ParseException
ParseExceptionpublic final Query ParseQueryFromInputLine() throws ParseException
ParseExceptionpublic final Query SelectStatement() throws ParseException
ParseExceptionpublic final void SelectList(Query q) throws ParseException
ParseExceptionpublic final Query.SelectItem SelectItem() throws ParseException
ParseExceptionpublic final Object PathExpression() throws ParseException
ParseExceptionpublic final Object EnvVarPathExpression() throws ParseException
ParseExceptionpublic final Object ObjectFacet(boolean isFirstInPath) throws ParseException
ParseExceptionpublic final List<Expression> ParameterList() throws ParseException
ParseExceptionpublic final void FromClause(Query q) throws ParseException
ParseExceptionpublic final void FromItem(Query.FromClause fromClause) throws ParseException
ParseExceptionpublic final String ClassName() throws ParseException
ParseExceptionpublic final long ObjectAddress()
throws ParseException
ParseExceptionpublic final int ObjectId()
throws ParseException
ParseExceptionpublic final void WhereClause(Query q) throws ParseException
ParseExceptionpublic final Object ConditionalOrExpression() throws ParseException
ParseExceptionpublic final Object ConditionalAndExpression() throws ParseException
ParseExceptionpublic final Object EqualityExpression() throws ParseException
ParseExceptionpublic final Object RelationalExpression() throws ParseException
ParseExceptionpublic final Object NotLikeInClause(Object left) throws ParseException
ParseExceptionpublic final Object LikeClause(Object left, boolean isLike) throws ParseException
ParseExceptionpublic final Object InClause(Object left, boolean isIn) throws ParseException
ParseExceptionpublic final Object SimpleExpression() throws ParseException
ParseExceptionpublic final Object MultiplicativeExpression() throws ParseException
ParseExceptionpublic final Object PrimaryExpression() throws ParseException
ParseExceptionpublic final Object SubQuery() throws ParseException
ParseExceptionpublic final Object Literal() throws ParseException
ParseExceptionpublic final Object NumberLiteral() throws ParseException
ParseExceptionpublic final Object BooleanLiteral() throws ParseException
ParseExceptionpublic final Object NullLiteral() throws ParseException
ParseExceptionpublic final void UnionClause(Query q) throws ParseException
ParseExceptionpublic 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()