org.openl.grammar.jgrammar
Class JGrammar

java.lang.Object
  extended by org.openl.syntax.grammar.impl.Grammar
      extended by org.openl.grammar.JavaCC30Grammar
          extended by org.openl.grammar.jgrammar.JGrammar
All Implemented Interfaces:
JGrammarConstants, IGrammar

public class JGrammar
extends JavaCC30Grammar
implements JGrammarConstants


Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 JGrammarTokenManager token_source
           
 
Fields inherited from class org.openl.syntax.grammar.impl.Grammar
syntaxBuilder
 
Fields inherited from interface org.openl.grammar.jgrammar.JGrammarConstants
_DEFAULT, ABSTRACT, ANDASSIGN, ASSIGN, BANG, BIT_AND, BIT_OR, BREAK, CASE, CATCH, CHARACTER_LITERAL, COLON, COMMA, CONST, CONTINUE, DECIMAL_LITERAL, DECR, DEFAULT, DIGIT, DO, DOT, ELSE, EOF, EQ, EXP, EXPONENT, EXTENDS, FALSE, FINAL, FINALLY, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GOTO, GT, HEX_LITERAL, HOOK, IDENTIFIER, IF, IMPL, IMPLEMENTS, IMPORT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, INCR, INSTANCEOF, INTEGER_LITERAL, INTERFACE, LBRACE, LBRACKET, LE, LETTER, LPAREN, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NATIVE, NE, NEW, NULL, OCTAL_LITERAL, ORASSIGN, PACKAGE, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHILE, XOR, XORASSIGN
 
Constructor Summary
JGrammar()
           
JGrammar(InputStream stream)
           
JGrammar(InputStream stream, String encoding)
           
JGrammar(JGrammarTokenManager tm)
           
JGrammar(Reader stream)
           
 
Method Summary
 void AbsExpression()
           
 void AdditiveExpression()
           
 void AllocationExpression()
           
 void ArrayDimsAndInits()
           
 void ArrayInitializer()
           
protected  IPosition begin(Token t)
           
 void Block()
           
 void BlockStatement()
           
 void BlockStatementList()
           
 void BooleanLiteral()
           
 void BreakStatement()
           
 void CastExpression()
           
 void CastLookahead()
           
 void ClassName()
           
 void ConditionalAndExpression()
           
 void ConditionalExpression()
           
 void ConditionalImplExpression()
           
 void ConditionalOrExpression()
           
 void ConditionalXorExpression()
           
 void ContinueStatement()
           
 void disable_tracing()
           
 void DoStatement()
           
 void EmptyStatement()
           
 void enable_tracing()
           
protected  IPosition end(Token t)
           
 void EqualityExpression()
           
 void Expression()
           
 void ForInit()
           
 void FormalParameter()
           
 void FormalParameters()
           
 void ForStatement()
           
 void ForUpdate()
           
 void function()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 void identifier()
           
 void IfStatement()
           
 void index()
           
 void LabeledStatement()
           
 void Literal()
           
 void LocalVariableDeclaration()
           
 void MethodDeclaration()
           
 void MethodDeclarator()
           
 void MethodHeader()
           
 void MethodName()
           
 void MethodOrVarDeclaration()
           
 void MultiplicativeExpression()
           
 void NullLiteral()
           
 void OptionalSemiColon()
           
 void parseModuleInternal()
           
 void parseTopNode(String type)
           
 void parseTopNodeInternal()
           
protected  TextInterval pos(String lexError, Token t, StringBuffer resMessage)
           
protected  TextInterval pos(Token t)
           
protected  TextInterval pos(Token t1, Token t2)
           
 void PostfixExpression()
           
 void PowerExpression()
           
 void PreDecrementExpression()
           
 void PreIncrementExpression()
           
 void PrimaryExpression()
           
 void PrimaryPrefix()
           
 void PrimarySuffix()
           
 void ReInit(InputStream stream)
           
 void ReInit(InputStream stream, String encoding)
           
 void ReInit(JGrammarTokenManager tm)
           
 void ReInit(Reader stream)
           
 void RelationalExpression()
           
 void ResultType()
           
 void ReturnStatement()
           
 void Statement()
           
 void StatementExpression()
           
 void StatementExpressionList()
           
 void ThrowStatement()
           
 void Type()
           
 void TypeDimension()
           
 void UnaryExpression()
           
 void VarDeclaration()
           
 void VariableDeclarator()
           
 void VariableDeclaratorId()
           
 void VariableInitializer()
           
 void WhileStatement()
           
 
Methods inherited from class org.openl.grammar.JavaCC30Grammar
parse, parseAsMethod, parseAsMethodHeader, parseAsModule, parseAsType, pos
 
Methods inherited from class org.openl.syntax.grammar.impl.Grammar
getErrors, getSyntaxTreeBuilder, getTopNode, setModule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public JGrammarTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

JGrammar

public JGrammar()

JGrammar

public JGrammar(InputStream stream)

JGrammar

public JGrammar(InputStream stream,
                String encoding)

JGrammar

public JGrammar(Reader stream)

JGrammar

public JGrammar(JGrammarTokenManager tm)
Method Detail

begin

protected IPosition begin(Token t)

end

protected IPosition end(Token t)

pos

protected TextInterval pos(Token t)

pos

protected TextInterval pos(Token t1,
                           Token t2)

pos

protected TextInterval pos(String lexError,
                           Token t,
                           StringBuffer resMessage)

parseTopNode

public void parseTopNode(String type)
Specified by:
parseTopNode in class JavaCC30Grammar

Expression

public final void Expression()
                      throws ParseException
Throws:
ParseException

ConditionalExpression

public final void ConditionalExpression()
                                 throws ParseException
Throws:
ParseException

ConditionalImplExpression

public final void ConditionalImplExpression()
                                     throws ParseException
Throws:
ParseException

ConditionalOrExpression

public final void ConditionalOrExpression()
                                   throws ParseException
Throws:
ParseException

ConditionalXorExpression

public final void ConditionalXorExpression()
                                    throws ParseException
Throws:
ParseException

ConditionalAndExpression

public final void ConditionalAndExpression()
                                    throws ParseException
Throws:
ParseException

EqualityExpression

public final void EqualityExpression()
                              throws ParseException
Throws:
ParseException

RelationalExpression

public final void RelationalExpression()
                                throws ParseException
Throws:
ParseException

AdditiveExpression

public final void AdditiveExpression()
                              throws ParseException
Throws:
ParseException

MultiplicativeExpression

public final void MultiplicativeExpression()
                                    throws ParseException
Throws:
ParseException

PowerExpression

public final void PowerExpression()
                           throws ParseException
Throws:
ParseException

UnaryExpression

public final void UnaryExpression()
                           throws ParseException
Throws:
ParseException

PreIncrementExpression

public final void PreIncrementExpression()
                                  throws ParseException
Throws:
ParseException

PreDecrementExpression

public final void PreDecrementExpression()
                                  throws ParseException
Throws:
ParseException

PostfixExpression

public final void PostfixExpression()
                             throws ParseException
Throws:
ParseException

PrimaryExpression

public final void PrimaryExpression()
                             throws ParseException
Throws:
ParseException

PrimaryPrefix

public final void PrimaryPrefix()
                         throws ParseException
Throws:
ParseException

PrimarySuffix

public final void PrimarySuffix()
                         throws ParseException
Throws:
ParseException

CastExpression

public final void CastExpression()
                          throws ParseException
Throws:
ParseException

CastLookahead

public final void CastLookahead()
                         throws ParseException
Throws:
ParseException

identifier

public final void identifier()
                      throws ParseException
Throws:
ParseException

TypeDimension

public final void TypeDimension()
                         throws ParseException
Throws:
ParseException

Type

public final void Type()
                throws ParseException
Throws:
ParseException

ResultType

public final void ResultType()
                      throws ParseException
Throws:
ParseException

ClassName

public final void ClassName()
                     throws ParseException
Throws:
ParseException

function

public final void function()
                    throws ParseException
Throws:
ParseException

AllocationExpression

public final void AllocationExpression()
                                throws ParseException
Throws:
ParseException

ArrayDimsAndInits

public final void ArrayDimsAndInits()
                             throws ParseException
Throws:
ParseException

index

public final void index()
                 throws ParseException
Throws:
ParseException

AbsExpression

public final void AbsExpression()
                         throws ParseException
Throws:
ParseException

Literal

public final void Literal()
                   throws ParseException
Throws:
ParseException

BooleanLiteral

public final void BooleanLiteral()
                          throws ParseException
Throws:
ParseException

NullLiteral

public final void NullLiteral()
                       throws ParseException
Throws:
ParseException

Block

public final void Block()
                 throws ParseException
Throws:
ParseException

BlockStatementList

public final void BlockStatementList()
                              throws ParseException
Throws:
ParseException

OptionalSemiColon

public final void OptionalSemiColon()
                             throws ParseException
Throws:
ParseException

Statement

public final void Statement()
                     throws ParseException
Throws:
ParseException

LabeledStatement

public final void LabeledStatement()
                            throws ParseException
Throws:
ParseException

BlockStatement

public final void BlockStatement()
                          throws ParseException
Throws:
ParseException

StatementExpression

public final void StatementExpression()
                               throws ParseException
Throws:
ParseException

EmptyStatement

public final void EmptyStatement()
                          throws ParseException
Throws:
ParseException

IfStatement

public final void IfStatement()
                       throws ParseException
Throws:
ParseException

WhileStatement

public final void WhileStatement()
                          throws ParseException
Throws:
ParseException

ReturnStatement

public final void ReturnStatement()
                           throws ParseException
Throws:
ParseException

ThrowStatement

public final void ThrowStatement()
                          throws ParseException
Throws:
ParseException

DoStatement

public final void DoStatement()
                       throws ParseException
Throws:
ParseException

LocalVariableDeclaration

public final void LocalVariableDeclaration()
                                    throws ParseException
Throws:
ParseException

VariableDeclarator

public final void VariableDeclarator()
                              throws ParseException
Throws:
ParseException

VariableDeclaratorId

public final void VariableDeclaratorId()
                                throws ParseException
Throws:
ParseException

VariableInitializer

public final void VariableInitializer()
                               throws ParseException
Throws:
ParseException

ArrayInitializer

public final void ArrayInitializer()
                            throws ParseException
Throws:
ParseException

ForStatement

public final void ForStatement()
                        throws ParseException
Throws:
ParseException

ForInit

public final void ForInit()
                   throws ParseException
Throws:
ParseException

StatementExpressionList

public final void StatementExpressionList()
                                   throws ParseException
Throws:
ParseException

ForUpdate

public final void ForUpdate()
                     throws ParseException
Throws:
ParseException

BreakStatement

public final void BreakStatement()
                          throws ParseException
Throws:
ParseException

ContinueStatement

public final void ContinueStatement()
                             throws ParseException
Throws:
ParseException

MethodHeader

public final void MethodHeader()
                        throws ParseException
Throws:
ParseException

MethodDeclaration

public final void MethodDeclaration()
                             throws ParseException
Throws:
ParseException

MethodDeclarator

public final void MethodDeclarator()
                            throws ParseException
Throws:
ParseException

MethodName

public final void MethodName()
                      throws ParseException
Throws:
ParseException

FormalParameters

public final void FormalParameters()
                            throws ParseException
Throws:
ParseException

FormalParameter

public final void FormalParameter()
                           throws ParseException
Throws:
ParseException

VarDeclaration

public final void VarDeclaration()
                          throws ParseException
Throws:
ParseException

MethodOrVarDeclaration

public final void MethodOrVarDeclaration()
                                  throws ParseException
Throws:
ParseException

parseModuleInternal

public final void parseModuleInternal()
                               throws ParseException
Throws:
ParseException

parseTopNodeInternal

public final void parseTopNodeInternal()
                                throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)

ReInit

public void ReInit(InputStream stream,
                   String encoding)

ReInit

public void ReInit(Reader stream)
Specified by:
ReInit in class JavaCC30Grammar

ReInit

public void ReInit(JGrammarTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


Copyright © 2011. All Rights Reserved.