Package org.openl.grammar.bexgrammar
Class BExGrammar
- java.lang.Object
-
- org.openl.grammar.JavaCC30Grammar
-
- org.openl.grammar.bexgrammar.BExGrammar
-
- All Implemented Interfaces:
BExGrammarConstants,IGrammar
public class BExGrammar extends JavaCC30Grammar implements BExGrammarConstants
-
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntNext token.TokentokenCurrent token.BExGrammarTokenManagertoken_sourceGenerated Token Manager.-
Fields inherited from class org.openl.grammar.JavaCC30Grammar
module, syntaxError
-
Fields inherited from interface org.openl.grammar.bexgrammar.BExGrammarConstants
_DEFAULT, _WHITESPACE, AMPERSAND, AND_MORE, ANY, ASSIGN, BOOL_AND, BOOL_OR, BREAK, BUSINESS_INTEGER_LITERAL, CASE, CHARACTER_LITERAL, COLON, COMMA, CONST, CONTINUE, DATE_FORMAT_LITERAL_4_2_2, DDOT, DECIMAL_LITERAL, DECR, DEFAULT, DIGIT, DO, DOES_NOT_EQUAL_TO, DOT_OPERATOR, ELSE, EOF, EQ, EQUALS_TO, EXP, EXPONENT, FALSE, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, FP_LITERAL1, FP_LITERAL2, GE, GOTO, GT, HEX_LITERAL, HOOK, IDENTIFIER, IF, IMPL, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, INCR, INSTANCEOF, INTEGER_LITERAL, IS_DIFFERENT_FROM, IS_IN, IS_LESS_OR_EQUAL, IS_LESS_THAN, IS_MORE_OR_EQUAL, IS_MORE_THAN, IS_NO_LESS_THAN, IS_NO_MORE_THAN, IS_SAME_AS, IS_THE_SAME_AS, LBRACE, LBRACKET, LE, LESS_THAN, LETTER, LPAREN, LT, MINUS, MINUSASSIGN, MORE_THAN, MULTI_LINE_COMMENT, NE, NE_ALT, NEW, NOT, NULL, OCTAL_LITERAL, OF_THE, OR_LESS, ORDER_BY, ORDER_DECREASING_BY, ORDER_INCREASING_BY, PERCENT_LITERAL, PLUS, PLUSASSIGN, RANGE_VARIABLE, RBRACE, RBRACKET, REF_IDENTIFIER, REM, RETURN, RPAREN, SELECT_ALL_HAVING, SELECT_ALL_WHERE, SELECT_FIRST_HAVING, SELECT_FIRST_WHERE, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, SPLIT_BY, STAR, STARASSIGN, STRICT_EQ, STRICT_GE, STRICT_GT, STRICT_LE, STRICT_LT, STRICT_NE, STRING_EQ, STRING_GE, STRING_GT, STRING_LE, STRING_LITERAL, STRING_LT, STRING_NE, STRING_NE_ALT, SUPER, TDOT, TDOT_UNICODE, THROW, TIME_FORMAT_LITERAL, tokenImage, TRANSFORM_TO, TRANSFORM_UNIQUE_TO, TRUE, VOID, WHERE, WHILE
-
-
Constructor Summary
Constructors Constructor Description BExGrammar()BExGrammar(InputStream stream)Constructor with InputStream.BExGrammar(InputStream stream, String encoding)Constructor with InputStream and supplied encodingBExGrammar(Reader stream)Constructor.BExGrammar(BExGrammarTokenManager tm)Constructor with generated Token Manager.
-
Method Summary
-
Methods inherited from class org.openl.grammar.JavaCC30Grammar
bop, emptyStatement, getError, getTopNode, identifier, literal, literal, nop, nop, notImplemented, parseAsMethod, parseAsMethodHeader, parseAsModule, parseAsParamDeclaration, parseAsType, pos, setModule, uop
-
-
-
-
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
-
pos
protected TextInterval pos(Token t)
-
pos
protected TextInterval pos(Token t1, Token t2)
-
pos
protected TextInterval pos(String lexError, Token t)
-
parseTopNode
public void parseTopNode(String type)
- Specified by:
parseTopNodein classJavaCC30Grammar
-
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
-
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
-
OfTheExpressionSuffix
public final void OfTheExpressionSuffix() 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
-
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
-
rangeidentifier
public final void rangeidentifier() throws ParseException- Throws:
ParseException
-
TypeDimension
public final void TypeDimension() throws ParseException- Throws:
ParseException
-
parseParamDeclaration
public final void parseParamDeclaration() throws ParseException- Throws:
ParseException
-
parseType
public final void parseType() throws ParseException- Throws:
ParseException
-
parseMethodHeader
public final void parseMethodHeader() 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
-
CombinedType
public final void CombinedType() 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
-
IndexTypeExpression
public final void IndexTypeExpression() throws ParseException- Throws:
ParseException
-
IndexOperator
public final void IndexOperator() throws ParseException- Throws:
ParseException
-
Literal
public final void Literal() 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
-
WhereVarExplanation
public final void WhereVarExplanation() 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
-
ParameterMetaData
public final void ParameterMetaData() 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:
ReInitin classJavaCC30Grammar
-
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.
-
trace_enabled
public final boolean trace_enabled()
Trace enabled.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-