org.openl.grammar.bexgrammar
Class BExGrammar

java.lang.Object
  extended by org.openl.syntax.grammar.impl.Grammar
      extended by org.openl.grammar.JavaCC30Grammar
          extended by org.openl.grammar.bexgrammar.BExGrammar
All Implemented Interfaces:
BExGrammarConstants, IGrammar

public class BExGrammar
extends JavaCC30Grammar
implements BExGrammarConstants


Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 BExGrammarTokenManager token_source
          Generated Token Manager.
 
Fields inherited from class org.openl.syntax.grammar.impl.Grammar
syntaxBuilder
 
Fields inherited from interface org.openl.grammar.bexgrammar.BExGrammarConstants
_DEFAULT, ABSTRACT, AND, ANDASSIGN, ASSIGN, BANG, BIT_AND, BIT_OR, BIT_XOR, BOOL_AND, BOOL_OR, BREAK, BUSINESS_INTEGER_LITERAL, CALCULATE, CASE, CATCH, CHARACTER_LITERAL, COLON, COMMA, CONST, CONTINUE, DATE_FORMAT_LITERAL_4_2_2, DDOT, DECIMAL_LITERAL, DECR, DEFAULT, DIGIT, DO, DOT, ELSE, EOF, EQ, EXP, EXPONENT, EXTENDS, FALSE, FINAL, FINALLY, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, FP_LITERAL1, FP_LITERAL2, GE, GOTO, GT, HEX_LITERAL, HOOK, IDENTIFIER, IF, IMPL, IMPLEMENTS, IMPORT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, INCR, INSTANCEOF, INTEGER_LITERAL, INTERFACE, IS, LBRACE, LBRACKET, LE, LESS, LETTER, LPAREN, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NATIVE, NE, NEW, NOT, NULL, OCTAL_LITERAL, OF, OR, ORASSIGN, PACKAGE, PERCENT_LITERAL, PLUS, PLUSASSIGN, PLUSSTR, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRICT_EQ, STRICT_GE, STRICT_GT, STRICT_LE, STRICT_LT, STRICT_NE, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, TDOT, THAN, THE, THROW, THROWS, TILDE, TIME_FORMAT_LITERAL, tokenImage, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHERE, WHILE, XORASSIGN
 
Constructor Summary
BExGrammar()
           
BExGrammar(BExGrammarTokenManager tm)
          Constructor with generated Token Manager.
BExGrammar(InputStream stream)
          Constructor with InputStream.
BExGrammar(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
BExGrammar(Reader stream)
          Constructor.
 
Method Summary
 void AbsExpression()
           
 void AdditiveExpression()
           
 void AllocationExpression()
           
 void ArrayDimsAndInits()
           
 void ArrayInitializer()
           
protected  IPosition begin(Token t)
           
 void BitwiseAndExpression()
           
 void BitwiseOrExpression()
           
 void BitwiseXorExpression()
           
 void Block()
           
 void BlockStatement()
           
 void BlockStatementList()
           
 void BooleanLiteral()
           
 void BreakStatement()
           
 void CastExpression()
           
 void CastLookahead()
           
 void ClassName()
           
 void CommaSeparatedList()
           
 void ConditionalAndExpression()
           
 void ConditionalImplExpression()
           
 void ConditionalOrExpression()
           
 void ConditionalTernaryExpression()
           
 void ContinueStatement()
           
 void DateLiteral()
           
 void DateTimeLiteral()
           
 void disable_tracing()
          Disable tracing.
 void DoStatement()
           
 void EmptyStatement()
           
 void enable_tracing()
          Enable tracing.
protected  IPosition end(Token t)
           
 void EqualityExpression()
           
 void Expression()
           
 void ExtendedWhereStatement()
           
 void ForInit()
           
 void FormalParameter()
           
 void FormalParameters()
           
 void ForStatement()
           
 void ForUpdate()
           
 void function()
           
 ParseException generateParseException()
          Generate ParseException.
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 void identifier()
           
 void IdentifierSequence()
           
 void IfStatement()
           
 void IndexOperator()
           
 void LabeledStatement()
           
 void Literal()
           
 void LiteralBI()
           
 void LiteralFloat()
           
 void LocalVariableDeclaration()
           
 void MethodDeclaration()
           
 void MethodDeclarator()
           
 void MethodHeader()
           
 void MethodName()
           
 void MethodOrVarDeclaration()
           
 void MultiplicativeExpression()
           
 void NegLiteralBI()
           
 void NegLiteralFloat()
           
 void NullLiteral()
           
 void OfTheExpression()
           
 void OfTheExpressionSuffix()
           
 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 RangeBinary()
           
 void RangeBinaryFloat()
           
 void RangeBrackets()
           
 void RangeBracketsFloat()
           
 void RangeLiteral()
           
 void RangeLiteralFloat()
           
 void RangeNumber()
           
 void RangeNumberFloat()
           
 void RangePrefix()
           
 void RangePrefixFloat()
           
 void RangeSuffix()
           
 void RangeSuffixFloat()
           
 void ReInit(BExGrammarTokenManager tm)
          Reinitialise.
 void ReInit(InputStream stream)
          Reinitialise.
 void ReInit(InputStream stream, String encoding)
          Reinitialise.
 void ReInit(Reader stream)
          Reinitialise.
 void RelationalExpression()
           
 void ResultType()
           
 void ReturnStatement()
           
 void SemiColon()
           
 void ShiftExpression()
           
 void Statement()
           
 void StatementExpression()
           
 void StatementExpressionList()
           
 void ThrowStatement()
           
 void TimeLiteral()
           
 void Type()
           
 void TypeDimension()
           
 void UnaryExpression()
           
 void VarDeclaration()
           
 void VariableDeclarator()
           
 void VariableDeclaratorId()
           
 void VariableInitializer()
           
 void WhereVarExpalnation()
           
 void WhileStatement()
           
 void Word(String type)
           
 
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 BExGrammarTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

BExGrammar

public BExGrammar()

BExGrammar

public BExGrammar(InputStream stream)
Constructor with InputStream.


BExGrammar

public BExGrammar(InputStream stream,
                  String encoding)
Constructor with InputStream and supplied encoding


BExGrammar

public BExGrammar(Reader stream)
Constructor.


BExGrammar

public BExGrammar(BExGrammarTokenManager tm)
Constructor with generated Token Manager.

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

ConditionalTernaryExpression

public final void ConditionalTernaryExpression()
                                        throws ParseException
Throws:
ParseException

ConditionalImplExpression

public final void ConditionalImplExpression()
                                     throws ParseException
Throws:
ParseException

ConditionalOrExpression

public final void ConditionalOrExpression()
                                   throws ParseException
Throws:
ParseException

ConditionalAndExpression

public final void ConditionalAndExpression()
                                    throws ParseException
Throws:
ParseException

BitwiseOrExpression

public final void BitwiseOrExpression()
                               throws ParseException
Throws:
ParseException

BitwiseXorExpression

public final void BitwiseXorExpression()
                                throws ParseException
Throws:
ParseException

BitwiseAndExpression

public final void BitwiseAndExpression()
                                throws ParseException
Throws:
ParseException

EqualityExpression

public final void EqualityExpression()
                              throws ParseException
Throws:
ParseException

OfTheExpression

public final void OfTheExpression()
                           throws ParseException
Throws:
ParseException

RelationalExpression

public final void RelationalExpression()
                                throws ParseException
Throws:
ParseException

ShiftExpression

public final void ShiftExpression()
                           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

OfTheExpressionSuffix

public final void OfTheExpressionSuffix()
                                 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

IdentifierSequence

public final void IdentifierSequence()
                              throws ParseException
Throws:
ParseException

Word

public final void Word(String type)
                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

CommaSeparatedList

public final void CommaSeparatedList()
                              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

IndexOperator

public final void IndexOperator()
                         throws ParseException
Throws:
ParseException

AbsExpression

public final void AbsExpression()
                         throws ParseException
Throws:
ParseException

Literal

public final void Literal()
                   throws ParseException
Throws:
ParseException

LiteralBI

public final void LiteralBI()
                     throws ParseException
Throws:
ParseException

LiteralFloat

public final void LiteralFloat()
                        throws ParseException
Throws:
ParseException

NegLiteralFloat

public final void NegLiteralFloat()
                           throws ParseException
Throws:
ParseException

NegLiteralBI

public final void NegLiteralBI()
                        throws ParseException
Throws:
ParseException

RangeBrackets

public final void RangeBrackets()
                         throws ParseException
Throws:
ParseException

RangeBinary

public final void RangeBinary()
                       throws ParseException
Throws:
ParseException

RangeNumber

public final void RangeNumber()
                       throws ParseException
Throws:
ParseException

RangePrefix

public final void RangePrefix()
                       throws ParseException
Throws:
ParseException

RangeSuffix

public final void RangeSuffix()
                       throws ParseException
Throws:
ParseException

RangeLiteral

public final void RangeLiteral()
                        throws ParseException
Throws:
ParseException

RangeBracketsFloat

public final void RangeBracketsFloat()
                              throws ParseException
Throws:
ParseException

RangeBinaryFloat

public final void RangeBinaryFloat()
                            throws ParseException
Throws:
ParseException

RangeNumberFloat

public final void RangeNumberFloat()
                            throws ParseException
Throws:
ParseException

RangePrefixFloat

public final void RangePrefixFloat()
                            throws ParseException
Throws:
ParseException

RangeSuffixFloat

public final void RangeSuffixFloat()
                            throws ParseException
Throws:
ParseException

RangeLiteralFloat

public final void RangeLiteralFloat()
                             throws ParseException
Throws:
ParseException

DateLiteral

public final void DateLiteral()
                       throws ParseException
Throws:
ParseException

TimeLiteral

public final void TimeLiteral()
                       throws ParseException
Throws:
ParseException

DateTimeLiteral

public final void DateTimeLiteral()
                           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

SemiColon

public final void SemiColon()
                     throws ParseException
Throws:
ParseException

Statement

public final void Statement()
                     throws ParseException
Throws:
ParseException

ExtendedWhereStatement

public final void ExtendedWhereStatement()
                                  throws ParseException
Throws:
ParseException

WhereVarExpalnation

public final void WhereVarExpalnation()
                               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)
Reinitialise.


ReInit

public void ReInit(InputStream stream,
                   String encoding)
Reinitialise.


ReInit

public void ReInit(Reader stream)
Reinitialise.

Specified by:
ReInit in class JavaCC30Grammar

ReInit

public void ReInit(BExGrammarTokenManager 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.



Copyright © 2011. All Rights Reserved.