org.eclipse.mat.parser.internal.oql.parser
Class OQLParser

java.lang.Object
  extended by org.eclipse.mat.parser.internal.oql.parser.OQLParser
All Implemented Interfaces:
OQLParserConstants

public class OQLParser
extends java.lang.Object
implements OQLParserConstants


Field Summary
 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, BANG, CHARACTER_LITERAL, DECIMAL_LITERAL, DEFAULT, DOLLAR_SIGN, EOF, EQ, EXPONENT, FALSE, FLOATING_POINT_LITERAL, FORMAL_COMMENT, GE, HEX_LITERAL, IDENTIFIER, IMPLEMENTS, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INSTANCEOF, INTEGER_LITERAL, LE, LETTER, LONG_LITERAL, LT, MULTI_LINE_COMMENT, NE, NULL, OCTAL_LITERAL, OR, PART_LETTER, SINGLE_LINE_COMMENT, STRING_LITERAL, tokenImage, TRUE
 
Constructor Summary
OQLParser(java.io.InputStream stream)
          Constructor with InputStream.
OQLParser(java.io.InputStream stream, java.lang.String encoding)
          Constructor with InputStream and supplied encoding
OQLParser(OQLParserTokenManager tm)
          Constructor with generated Token Manager.
OQLParser(java.io.Reader stream)
          Constructor.
 
Method Summary
 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(OQLParserTokenManager tm)
          Reinitialise.
 void ReInit(java.io.Reader stream)
          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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.