Class OQLParser
- java.lang.Object
-
- org.eclipse.mat.parser.internal.oql.parser.OQLParser
-
- All Implemented Interfaces:
OQLParserConstants
public class OQLParser extends java.lang.Object implements OQLParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntNext token.TokentokenCurrent token.OQLParserTokenManagertoken_sourceGenerated 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
Constructors Constructor Description OQLParser(java.io.InputStream stream)Constructor with InputStream.OQLParser(java.io.InputStream stream, java.lang.String encoding)Constructor with InputStream and supplied encodingOQLParser(java.io.Reader stream)Constructor.OQLParser(OQLParserTokenManager tm)Constructor with generated Token Manager.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectBooleanLiteral()java.lang.StringClassName()java.lang.ObjectConditionalAndExpression()java.lang.ObjectConditionalOrExpression()voiddisable_tracing()Disable tracing.voidenable_tracing()Enable tracing.java.lang.ObjectEnvVarPathExpression()java.lang.ObjectEqualityExpression()voidFromClause(Query q)voidFromItem(Query.FromClause fromClause)ParseExceptiongenerateParseException()Generate ParseException.TokengetNextToken()Get the next Token.TokengetToken(int index)Get the specific Token.java.lang.ObjectInClause(java.lang.Object left, boolean isIn)java.lang.ObjectLikeClause(java.lang.Object left, boolean isLike)java.lang.ObjectLiteral()static voidmain(java.lang.String[] args)java.lang.ObjectMultiplicativeExpression()java.lang.ObjectNotLikeInClause(java.lang.Object left)java.lang.ObjectNullLiteral()java.lang.ObjectNumberLiteral()longObjectAddress()java.lang.ObjectObjectFacet(boolean isFirstInPath)intObjectId()java.util.List<Expression>ParameterList()QueryParseQuery()THE OQL GRAMMAR STARTS HERE *QueryParseQueryFromInputLine()java.lang.ObjectPathExpression()java.lang.ObjectPrimaryExpression()voidReInit(java.io.InputStream stream)Reinitialise.voidReInit(java.io.InputStream stream, java.lang.String encoding)Reinitialise.voidReInit(java.io.Reader stream)Reinitialise.voidReInit(OQLParserTokenManager tm)Reinitialise.java.lang.ObjectRelationalExpression()Query.SelectItemSelectItem()voidSelectList(Query q)QuerySelectStatement()voidsetCompiler(ICompiler compiler)java.lang.ObjectSimpleExpression()java.lang.ObjectSubQuery()voidUnionClause(Query q)voidWhereClause(Query q)
-
-
-
Field Detail
-
token_source
public OQLParserTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
OQLParser
public OQLParser(java.io.InputStream stream)
Constructor with InputStream.
-
OQLParser
public OQLParser(java.io.InputStream stream, java.lang.String encoding)Constructor with InputStream and supplied encoding
-
OQLParser
public OQLParser(java.io.Reader stream)
Constructor.
-
OQLParser
public OQLParser(OQLParserTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
setCompiler
public void setCompiler(ICompiler compiler)
-
main
public static void main(java.lang.String[] args) throws ParseException- Throws:
ParseException
-
ParseQuery
public final Query ParseQuery() throws ParseException
THE OQL GRAMMAR STARTS HERE *- Throws:
ParseException
-
ParseQueryFromInputLine
public final Query ParseQueryFromInputLine() throws ParseException
- Throws:
ParseException
-
SelectStatement
public final Query SelectStatement() throws ParseException
- Throws:
ParseException
-
SelectList
public final void SelectList(Query q) throws ParseException
- Throws:
ParseException
-
SelectItem
public final Query.SelectItem SelectItem() throws ParseException
- Throws:
ParseException
-
PathExpression
public final java.lang.Object PathExpression() throws ParseException- Throws:
ParseException
-
EnvVarPathExpression
public final java.lang.Object EnvVarPathExpression() throws ParseException- Throws:
ParseException
-
ObjectFacet
public final java.lang.Object ObjectFacet(boolean isFirstInPath) throws ParseException- Throws:
ParseException
-
ParameterList
public final java.util.List<Expression> ParameterList() throws ParseException
- Throws:
ParseException
-
FromClause
public final void FromClause(Query q) throws ParseException
- Throws:
ParseException
-
FromItem
public final void FromItem(Query.FromClause fromClause) throws ParseException
- Throws:
ParseException
-
ClassName
public final java.lang.String ClassName() throws ParseException- Throws:
ParseException
-
ObjectAddress
public final long ObjectAddress() throws ParseException- Throws:
ParseException
-
ObjectId
public final int ObjectId() throws ParseException- Throws:
ParseException
-
WhereClause
public final void WhereClause(Query q) throws ParseException
- Throws:
ParseException
-
ConditionalOrExpression
public final java.lang.Object ConditionalOrExpression() throws ParseException- Throws:
ParseException
-
ConditionalAndExpression
public final java.lang.Object ConditionalAndExpression() throws ParseException- Throws:
ParseException
-
EqualityExpression
public final java.lang.Object EqualityExpression() throws ParseException- Throws:
ParseException
-
RelationalExpression
public final java.lang.Object RelationalExpression() throws ParseException- Throws:
ParseException
-
NotLikeInClause
public final java.lang.Object NotLikeInClause(java.lang.Object left) throws ParseException- Throws:
ParseException
-
LikeClause
public final java.lang.Object LikeClause(java.lang.Object left, boolean isLike) throws ParseException- Throws:
ParseException
-
InClause
public final java.lang.Object InClause(java.lang.Object left, boolean isIn) throws ParseException- Throws:
ParseException
-
SimpleExpression
public final java.lang.Object SimpleExpression() throws ParseException- Throws:
ParseException
-
MultiplicativeExpression
public final java.lang.Object MultiplicativeExpression() throws ParseException- Throws:
ParseException
-
PrimaryExpression
public final java.lang.Object PrimaryExpression() throws ParseException- Throws:
ParseException
-
SubQuery
public final java.lang.Object SubQuery() throws ParseException- Throws:
ParseException
-
Literal
public final java.lang.Object Literal() throws ParseException- Throws:
ParseException
-
NumberLiteral
public final java.lang.Object NumberLiteral() throws ParseException- Throws:
ParseException
-
BooleanLiteral
public final java.lang.Object BooleanLiteral() throws ParseException- Throws:
ParseException
-
NullLiteral
public final java.lang.Object NullLiteral() throws ParseException- Throws:
ParseException
-
UnionClause
public final void UnionClause(Query q) throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(java.io.InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(java.io.InputStream stream, java.lang.String encoding)Reinitialise.
-
ReInit
public void ReInit(java.io.Reader stream)
Reinitialise.
-
ReInit
public void ReInit(OQLParserTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-