Class OQLParser
java.lang.Object
org.eclipse.mat.parser.internal.oql.parser.OQLParser
- All Implemented Interfaces:
OQLParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface org.eclipse.mat.parser.internal.oql.parser.OQLParserConstants
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 Summary
ConstructorsConstructorDescriptionOQLParser(InputStream stream) Constructor with InputStream.OQLParser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingConstructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal Objectfinal Stringfinal Objectfinal Objectfinal voidDisable tracing.final voidEnable tracing.final Objectfinal Objectfinal voidFromClause(Query q) final voidFromItem(Query.FromClause fromClause) Generate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final Objectfinal ObjectLikeClause(Object left, boolean isLike) final ObjectLiteral()static voidfinal Objectfinal ObjectNotLikeInClause(Object left) final Objectfinal Objectfinal longfinal ObjectObjectFacet(boolean isFirstInPath) final intObjectId()final List<Expression>final QueryTHE OQL GRAMMAR STARTS HERE *final Queryfinal Objectfinal ObjectvoidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.final Objectfinal Query.SelectItemfinal voidSelectList(Query q) final QueryvoidsetCompiler(ICompiler compiler) final Objectfinal ObjectSubQuery()final voidUnionClause(Query q) final voidWhereClause(Query q)
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
OQLParser
Constructor with InputStream. -
OQLParser
Constructor with InputStream and supplied encoding -
OQLParser
Constructor. -
OQLParser
Constructor with generated Token Manager.
-
-
Method Details
-
setCompiler
-
main
- Throws:
ParseException
-
ParseQuery
THE OQL GRAMMAR STARTS HERE *- Throws:
ParseException
-
ParseQueryFromInputLine
- Throws:
ParseException
-
SelectStatement
- Throws:
ParseException
-
SelectList
- Throws:
ParseException
-
SelectItem
- Throws:
ParseException
-
PathExpression
- Throws:
ParseException
-
EnvVarPathExpression
- Throws:
ParseException
-
ObjectFacet
- Throws:
ParseException
-
ParameterList
- Throws:
ParseException
-
FromClause
- Throws:
ParseException
-
FromItem
- Throws:
ParseException
-
ClassName
- Throws:
ParseException
-
ObjectAddress
- Throws:
ParseException
-
ObjectId
- Throws:
ParseException
-
WhereClause
- Throws:
ParseException
-
ConditionalOrExpression
- Throws:
ParseException
-
ConditionalAndExpression
- Throws:
ParseException
-
EqualityExpression
- Throws:
ParseException
-
RelationalExpression
- Throws:
ParseException
-
NotLikeInClause
- Throws:
ParseException
-
LikeClause
- Throws:
ParseException
-
InClause
- Throws:
ParseException
-
SimpleExpression
- Throws:
ParseException
-
MultiplicativeExpression
- Throws:
ParseException
-
PrimaryExpression
- Throws:
ParseException
-
SubQuery
- Throws:
ParseException
-
Literal
- Throws:
ParseException
-
NumberLiteral
- Throws:
ParseException
-
BooleanLiteral
- Throws:
ParseException
-
NullLiteral
- Throws:
ParseException
-
UnionClause
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-