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 Token
jj_nt
Next token.Token
token
Current token.OQLParserTokenManager
token_source
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
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.Object
BooleanLiteral()
java.lang.String
ClassName()
java.lang.Object
ConditionalAndExpression()
java.lang.Object
ConditionalOrExpression()
void
disable_tracing()
Disable tracing.void
enable_tracing()
Enable tracing.java.lang.Object
EnvVarPathExpression()
java.lang.Object
EqualityExpression()
void
FromClause(Query q)
void
FromItem(Query.FromClause fromClause)
ParseException
generateParseException()
Generate ParseException.Token
getNextToken()
Get the next Token.Token
getToken(int index)
Get the specific Token.java.lang.Object
InClause(java.lang.Object left, boolean isIn)
java.lang.Object
LikeClause(java.lang.Object left, boolean isLike)
java.lang.Object
Literal()
static void
main(java.lang.String[] args)
java.lang.Object
MultiplicativeExpression()
java.lang.Object
NotLikeInClause(java.lang.Object left)
java.lang.Object
NullLiteral()
java.lang.Object
NumberLiteral()
long
ObjectAddress()
java.lang.Object
ObjectFacet(boolean isFirstInPath)
int
ObjectId()
java.util.List<Expression>
ParameterList()
Query
ParseQuery()
THE OQL GRAMMAR STARTS HERE *Query
ParseQueryFromInputLine()
java.lang.Object
PathExpression()
java.lang.Object
PrimaryExpression()
void
ReInit(java.io.InputStream stream)
Reinitialise.void
ReInit(java.io.InputStream stream, java.lang.String encoding)
Reinitialise.void
ReInit(java.io.Reader stream)
Reinitialise.void
ReInit(OQLParserTokenManager tm)
Reinitialise.java.lang.Object
RelationalExpression()
Query.SelectItem
SelectItem()
void
SelectList(Query q)
Query
SelectStatement()
void
setCompiler(ICompiler compiler)
java.lang.Object
SimpleExpression()
java.lang.Object
SubQuery()
void
UnionClause(Query q)
void
WhereClause(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.
-
-