bsh
Class Parser

java.lang.Object
  |
  +--bsh.Parser
All Implemented Interfaces:
ParserConstants, ParserTreeConstants

public class Parser
extends java.lang.Object
implements ParserTreeConstants, ParserConstants

This is the BeanShell parser. It is used internally by the Interpreter class (which is probably what you are looking for). The parser knows only how to parse the structure of the language, it does not understand names, commands, etc.

You can use the Parser from the command line to do basic structural validation of BeanShell files without actually executing them. e.g.

                java bsh.Parser [ -p ] file [ file ] [ ... ]
        

The -p option causes the abstract syntax to be printed.

From code you'd use the Parser like this:

                Parser parser = new Parser(in);
                while( !(eof=parser.Line()) ) {
                        SimpleNode node = parser.popNode();
                        // use the node, etc. (See bsh.BSH* classes)
                }
        


Nested Class Summary
(package private) static class Parser.JJCalls
           
 
Field Summary
private  Parser.JJCalls[] jj_2_rtns
           
private  int jj_endpos
           
private  java.util.Vector jj_expentries
           
private  int[] jj_expentry
           
private  int jj_gc
           
private  int jj_gen
           
(package private)  ASCII_UCodeESC_CharStream jj_input_stream
           
private  int jj_kind
           
private  int jj_la
           
private  int[] jj_la1
           
private  int[] jj_la1_0
           
private  int[] jj_la1_1
           
private  int[] jj_la1_2
           
private  int[] jj_la1_3
           
private  Token jj_lastpos
           
private  int[] jj_lasttokens
           
 Token jj_nt
           
private  int jj_ntk
           
private  boolean jj_rescan
           
private  Token jj_scanpos
           
private  boolean jj_semLA
           
protected  JJTParserState jjtree
           
 boolean lookingAhead
           
(package private)  boolean retainComments
           
 Token token
           
 ParserTokenManager token_source
           
 
Fields inherited from interface bsh.ParserTreeConstants
JJTALLOCATIONEXPRESSION, JJTAMBIGUOUSNAME, JJTARGUMENTS, JJTARRAYDIMENSIONS, JJTARRAYINITIALIZER, JJTASSIGNMENT, JJTBINARYEXPRESSION, JJTBLOCK, JJTCASTEXPRESSION, JJTFORMALCOMMENT, JJTFORMALPARAMETER, JJTFORMALPARAMETERS, JJTFORSTATEMENT, JJTIFSTATEMENT, JJTIMPORTDECLARATION, JJTLHSPRIMARYEXPRESSION, JJTLHSPRIMARYSUFFIX, JJTLITERAL, JJTMETHODDECLARATION, JJTMETHODINVOCATION, jjtNodeName, JJTPRIMARYEXPRESSION, JJTPRIMARYSUFFIX, JJTPRIMITIVETYPE, JJTRETURNSTATEMENT, JJTRETURNTYPE, JJTSTATEMENTEXPRESSIONLIST, JJTSWITCHLABEL, JJTSWITCHSTATEMENT, JJTTERNARYEXPRESSION, JJTTHROWSTATEMENT, JJTTRYSTATEMENT, JJTTYPE, JJTTYPEDVARIABLEDECLARATION, JJTUNARYEXPRESSION, JJTVARIABLEDECLARATOR, JJTVOID, JJTWHILESTATEMENT
 
Fields inherited from interface bsh.ParserConstants
_DEFAULT, ANDASSIGN, ANDASSIGNX, ASSIGN, BANG, BIT_AND, BIT_ANDX, BIT_OR, BIT_ORX, BOOL_AND, BOOL_ANDX, BOOL_OR, BOOL_ORX, BOOLEAN, BREAK, BYTE, CASE, CATCH, CHAR, CHARACTER_LITERAL, CLASS, COLON, COMMA, CONST, CONTINUE, DECIMAL_LITERAL, DECR, DEFAULT, DIGIT, DO, DOT, DOUBLE, ELSE, EOF, EQ, EXPONENT, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GEX, GOTO, GT, GTX, HASH_BANG_COMMENT, HEX_LITERAL, HOOK, IDENTIFIER, IF, IMPORT, INCR, INSTANCEOF, INT, INTEGER_LITERAL, INTERFACE, LBRACE, LBRACKET, LE, LETTER, LEX, LONG, LPAREN, LSHIFT, LSHIFTASSIGN, LSHIFTASSIGNX, LSHIFTX, LT, LTX, MINUS, MINUSASSIGN, MOD, MODASSIGN, MULTI_LINE_COMMENT, NE, NEW, NONPRINTABLE, NULL, OCTAL_LITERAL, ORASSIGN, ORASSIGNX, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, RETURN, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RSIGNEDSHIFTASSIGNX, RSIGNEDSHIFTX, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFTASSIGNX, RUNSIGNEDSHIFTX, SEMICOLON, SHORT, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRING_LITERAL, SWITCH, THROW, TILDE, tokenImage, TRUE, TRY, VOID, WHILE, XOR, XORASSIGN
 
Constructor Summary
Parser(java.io.InputStream stream)
           
Parser(ParserTokenManager tm)
           
Parser(java.io.Reader stream)
           
 
Method Summary
 void AdditiveExpression()
           
 void AllocationExpression()
           
 void AmbiguousName()
           
 void AndExpression()
           
 void ArgumentList()
           
 void Arguments()
           
 void ArrayDimensions()
           
 void ArrayInitializer()
           
 void Assignment()
           
 int AssignmentOperator()
           
 void Block()
           
 void BlockStatement()
           
 boolean BooleanLiteral()
           
 void BreakStatement()
           
 void CastExpression()
           
 void CastLookahead()
           
 void ConditionalAndExpression()
           
 void ConditionalExpression()
           
 void ConditionalOrExpression()
           
 void ContinueStatement()
           
 void disable_tracing()
           
 void DoStatement()
           
 void EmptyStatement()
           
 void enable_tracing()
           
 void EqualityExpression()
           
 void ExclusiveOrExpression()
           
 void Expression()
           
 void ForInit()
           
 void FormalComment()
           
 void FormalParameter()
           
 void FormalParameters()
           
 void ForStatement()
           
 void ForUpdate()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 void IfStatement()
           
 void ImportDeclaration()
           
 void InclusiveOrExpression()
           
 void InstanceOfExpression()
           
private  boolean jj_2_1(int xla)
           
private  boolean jj_2_10(int xla)
           
private  boolean jj_2_11(int xla)
           
private  boolean jj_2_12(int xla)
           
private  boolean jj_2_13(int xla)
           
private  boolean jj_2_14(int xla)
           
private  boolean jj_2_15(int xla)
           
private  boolean jj_2_16(int xla)
           
private  boolean jj_2_17(int xla)
           
private  boolean jj_2_18(int xla)
           
private  boolean jj_2_19(int xla)
           
private  boolean jj_2_2(int xla)
           
private  boolean jj_2_20(int xla)
           
private  boolean jj_2_21(int xla)
           
private  boolean jj_2_22(int xla)
           
private  boolean jj_2_23(int xla)
           
private  boolean jj_2_24(int xla)
           
private  boolean jj_2_25(int xla)
           
private  boolean jj_2_26(int xla)
           
private  boolean jj_2_27(int xla)
           
private  boolean jj_2_3(int xla)
           
private  boolean jj_2_4(int xla)
           
private  boolean jj_2_5(int xla)
           
private  boolean jj_2_6(int xla)
           
private  boolean jj_2_7(int xla)
           
private  boolean jj_2_8(int xla)
           
private  boolean jj_2_9(int xla)
           
private  boolean jj_3_1()
           
private  boolean jj_3_10()
           
private  boolean jj_3_11()
           
private  boolean jj_3_12()
           
private  boolean jj_3_13()
           
private  boolean jj_3_14()
           
private  boolean jj_3_15()
           
private  boolean jj_3_16()
           
private  boolean jj_3_17()
           
private  boolean jj_3_18()
           
private  boolean jj_3_19()
           
private  boolean jj_3_2()
           
private  boolean jj_3_20()
           
private  boolean jj_3_21()
           
private  boolean jj_3_22()
           
private  boolean jj_3_23()
           
private  boolean jj_3_24()
           
private  boolean jj_3_25()
           
private  boolean jj_3_26()
           
private  boolean jj_3_27()
           
private  boolean jj_3_3()
           
private  boolean jj_3_4()
           
private  boolean jj_3_5()
           
private  boolean jj_3_6()
           
private  boolean jj_3_7()
           
private  boolean jj_3_8()
           
private  boolean jj_3_9()
           
private  boolean jj_3R_100()
           
private  boolean jj_3R_101()
           
private  boolean jj_3R_102()
           
private  boolean jj_3R_103()
           
private  boolean jj_3R_104()
           
private  boolean jj_3R_105()
           
private  boolean jj_3R_106()
           
private  boolean jj_3R_107()
           
private  boolean jj_3R_108()
           
private  boolean jj_3R_109()
           
private  boolean jj_3R_110()
           
private  boolean jj_3R_111()
           
private  boolean jj_3R_112()
           
private  boolean jj_3R_113()
           
private  boolean jj_3R_114()
           
private  boolean jj_3R_115()
           
private  boolean jj_3R_116()
           
private  boolean jj_3R_117()
           
private  boolean jj_3R_118()
           
private  boolean jj_3R_119()
           
private  boolean jj_3R_120()
           
private  boolean jj_3R_121()
           
private  boolean jj_3R_122()
           
private  boolean jj_3R_123()
           
private  boolean jj_3R_124()
           
private  boolean jj_3R_125()
           
private  boolean jj_3R_126()
           
private  boolean jj_3R_127()
           
private  boolean jj_3R_128()
           
private  boolean jj_3R_129()
           
private  boolean jj_3R_130()
           
private  boolean jj_3R_131()
           
private  boolean jj_3R_132()
           
private  boolean jj_3R_133()
           
private  boolean jj_3R_134()
           
private  boolean jj_3R_135()
           
private  boolean jj_3R_136()
           
private  boolean jj_3R_137()
           
private  boolean jj_3R_138()
           
private  boolean jj_3R_139()
           
private  boolean jj_3R_140()
           
private  boolean jj_3R_141()
           
private  boolean jj_3R_142()
           
private  boolean jj_3R_143()
           
private  boolean jj_3R_144()
           
private  boolean jj_3R_145()
           
private  boolean jj_3R_146()
           
private  boolean jj_3R_147()
           
private  boolean jj_3R_148()
           
private  boolean jj_3R_149()
           
private  boolean jj_3R_150()
           
private  boolean jj_3R_151()
           
private  boolean jj_3R_152()
           
private  boolean jj_3R_153()
           
private  boolean jj_3R_154()
           
private  boolean jj_3R_155()
           
private  boolean jj_3R_156()
           
private  boolean jj_3R_157()
           
private  boolean jj_3R_158()
           
private  boolean jj_3R_159()
           
private  boolean jj_3R_160()
           
private  boolean jj_3R_161()
           
private  boolean jj_3R_162()
           
private  boolean jj_3R_163()
           
private  boolean jj_3R_164()
           
private  boolean jj_3R_165()
           
private  boolean jj_3R_166()
           
private  boolean jj_3R_167()
           
private  boolean jj_3R_168()
           
private  boolean jj_3R_169()
           
private  boolean jj_3R_170()
           
private  boolean jj_3R_171()
           
private  boolean jj_3R_172()
           
private  boolean jj_3R_173()
           
private  boolean jj_3R_174()
           
private  boolean jj_3R_175()
           
private  boolean jj_3R_176()
           
private  boolean jj_3R_177()
           
private  boolean jj_3R_178()
           
private  boolean jj_3R_179()
           
private  boolean jj_3R_180()
           
private  boolean jj_3R_181()
           
private  boolean jj_3R_182()
           
private  boolean jj_3R_183()
           
private  boolean jj_3R_184()
           
private  boolean jj_3R_185()
           
private  boolean jj_3R_186()
           
private  boolean jj_3R_187()
           
private  boolean jj_3R_188()
           
private  boolean jj_3R_189()
           
private  boolean jj_3R_190()
           
private  boolean jj_3R_191()
           
private  boolean jj_3R_192()
           
private  boolean jj_3R_193()
           
private  boolean jj_3R_194()
           
private  boolean jj_3R_195()
           
private  boolean jj_3R_196()
           
private  boolean jj_3R_197()
           
private  boolean jj_3R_198()
           
private  boolean jj_3R_199()
           
private  boolean jj_3R_200()
           
private  boolean jj_3R_201()
           
private  boolean jj_3R_202()
           
private  boolean jj_3R_203()
           
private  boolean jj_3R_204()
           
private  boolean jj_3R_205()
           
private  boolean jj_3R_206()
           
private  boolean jj_3R_207()
           
private  boolean jj_3R_208()
           
private  boolean jj_3R_209()
           
private  boolean jj_3R_210()
           
private  boolean jj_3R_211()
           
private  boolean jj_3R_212()
           
private  boolean jj_3R_213()
           
private  boolean jj_3R_214()
           
private  boolean jj_3R_215()
           
private  boolean jj_3R_216()
           
private  boolean jj_3R_217()
           
private  boolean jj_3R_218()
           
private  boolean jj_3R_219()
           
private  boolean jj_3R_220()
           
private  boolean jj_3R_221()
           
private  boolean jj_3R_222()
           
private  boolean jj_3R_223()
           
private  boolean jj_3R_224()
           
private  boolean jj_3R_225()
           
private  boolean jj_3R_226()
           
private  boolean jj_3R_227()
           
private  boolean jj_3R_228()
           
private  boolean jj_3R_229()
           
private  boolean jj_3R_230()
           
private  boolean jj_3R_231()
           
private  boolean jj_3R_232()
           
private  boolean jj_3R_233()
           
private  boolean jj_3R_234()
           
private  boolean jj_3R_235()
           
private  boolean jj_3R_236()
           
private  boolean jj_3R_237()
           
private  boolean jj_3R_238()
           
private  boolean jj_3R_239()
           
private  boolean jj_3R_240()
           
private  boolean jj_3R_241()
           
private  boolean jj_3R_242()
           
private  boolean jj_3R_243()
           
private  boolean jj_3R_244()
           
private  boolean jj_3R_245()
           
private  boolean jj_3R_246()
           
private  boolean jj_3R_247()
           
private  boolean jj_3R_248()
           
private  boolean jj_3R_249()
           
private  boolean jj_3R_250()
           
private  boolean jj_3R_251()
           
private  boolean jj_3R_252()
           
private  boolean jj_3R_253()
           
private  boolean jj_3R_254()
           
private  boolean jj_3R_255()
           
private  boolean jj_3R_256()
           
private  boolean jj_3R_257()
           
private  boolean jj_3R_258()
           
private  boolean jj_3R_259()
           
private  boolean jj_3R_26()
           
private  boolean jj_3R_260()
           
private  boolean jj_3R_261()
           
private  boolean jj_3R_262()
           
private  boolean jj_3R_263()
           
private  boolean jj_3R_264()
           
private  boolean jj_3R_265()
           
private  boolean jj_3R_266()
           
private  boolean jj_3R_267()
           
private  boolean jj_3R_268()
           
private  boolean jj_3R_269()
           
private  boolean jj_3R_27()
           
private  boolean jj_3R_270()
           
private  boolean jj_3R_271()
           
private  boolean jj_3R_272()
           
private  boolean jj_3R_273()
           
private  boolean jj_3R_274()
           
private  boolean jj_3R_275()
           
private  boolean jj_3R_276()
           
private  boolean jj_3R_277()
           
private  boolean jj_3R_278()
           
private  boolean jj_3R_279()
           
private  boolean jj_3R_28()
           
private  boolean jj_3R_280()
           
private  boolean jj_3R_281()
           
private  boolean jj_3R_282()
           
private  boolean jj_3R_283()
           
private  boolean jj_3R_284()
           
private  boolean jj_3R_285()
           
private  boolean jj_3R_286()
           
private  boolean jj_3R_287()
           
private  boolean jj_3R_29()
           
private  boolean jj_3R_30()
           
private  boolean jj_3R_31()
           
private  boolean jj_3R_32()
           
private  boolean jj_3R_33()
           
private  boolean jj_3R_34()
           
private  boolean jj_3R_35()
           
private  boolean jj_3R_36()
           
private  boolean jj_3R_37()
           
private  boolean jj_3R_38()
           
private  boolean jj_3R_39()
           
private  boolean jj_3R_40()
           
private  boolean jj_3R_41()
           
private  boolean jj_3R_42()
           
private  boolean jj_3R_43()
           
private  boolean jj_3R_44()
           
private  boolean jj_3R_45()
           
private  boolean jj_3R_46()
           
private  boolean jj_3R_47()
           
private  boolean jj_3R_48()
           
private  boolean jj_3R_49()
           
private  boolean jj_3R_50()
           
private  boolean jj_3R_51()
           
private  boolean jj_3R_52()
           
private  boolean jj_3R_53()
           
private  boolean jj_3R_54()
           
private  boolean jj_3R_55()
           
private  boolean jj_3R_56()
           
private  boolean jj_3R_57()
           
private  boolean jj_3R_58()
           
private  boolean jj_3R_59()
           
private  boolean jj_3R_60()
           
private  boolean jj_3R_61()
           
private  boolean jj_3R_62()
           
private  boolean jj_3R_63()
           
private  boolean jj_3R_64()
           
private  boolean jj_3R_65()
           
private  boolean jj_3R_66()
           
private  boolean jj_3R_67()
           
private  boolean jj_3R_68()
           
private  boolean jj_3R_69()
           
private  boolean jj_3R_70()
           
private  boolean jj_3R_71()
           
private  boolean jj_3R_72()
           
private  boolean jj_3R_73()
           
private  boolean jj_3R_74()
           
private  boolean jj_3R_75()
           
private  boolean jj_3R_76()
           
private  boolean jj_3R_77()
           
private  boolean jj_3R_78()
           
private  boolean jj_3R_79()
           
private  boolean jj_3R_80()
           
private  boolean jj_3R_81()
           
private  boolean jj_3R_82()
           
private  boolean jj_3R_83()
           
private  boolean jj_3R_84()
           
private  boolean jj_3R_85()
           
private  boolean jj_3R_86()
           
private  boolean jj_3R_87()
           
private  boolean jj_3R_88()
           
private  boolean jj_3R_89()
           
private  boolean jj_3R_90()
           
private  boolean jj_3R_91()
           
private  boolean jj_3R_92()
           
private  boolean jj_3R_93()
           
private  boolean jj_3R_94()
           
private  boolean jj_3R_95()
           
private  boolean jj_3R_96()
           
private  boolean jj_3R_97()
           
private  boolean jj_3R_98()
           
private  boolean jj_3R_99()
           
private  void jj_add_error_token(int kind, int pos)
           
private  Token jj_consume_token(int kind)
           
private  int jj_ntk()
           
private  void jj_rescan_token()
           
private  void jj_save(int index, int xla)
           
private  boolean jj_scan_token(int kind)
           
(package private)  void jjtreeCloseNodeScope(Node n)
           
(package private)  void jjtreeOpenNodeScope(Node n)
           
 void LabeledStatement()
           
 void LHSPrimaryExpression()
           
 void LHSPrimaryPrefix()
          The method invocation is here to force this to an object type in order to simplify the suffix processing.
 void LHSPrimarySuffix()
           
 boolean Line()
           
 void Literal()
           
static void main(java.lang.String[] args)
           
 void MethodDeclaration()
          THE JAVA LANGUAGE GRAMMAR STARTS HERE *
 void MethodDeclarationLookahead()
           
 void MethodDeclarationTypeLookahead()
           
 void MethodInvocation()
           
 void MultiplicativeExpression()
           
 void NullLiteral()
           
 SimpleNode popNode()
           
 void PostfixExpression()
           
 void PreDecrementExpression()
           
 void PreIncrementExpression()
           
 void PrimaryExpression()
           
 void PrimaryPrefix()
           
 void PrimarySuffix()
           
 void PrimitiveType()
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(ParserTokenManager tm)
           
 void ReInit(java.io.Reader stream)
           
(package private)  void reInitInput(java.io.Reader in)
          Re-initialize the input stream and token source.
(package private)  void reInitTokenInput(java.io.Reader in)
          Explicitly re-initialize just the token reader.
 void RelationalExpression()
           
 void ReturnStatement()
           
 void ReturnType()
           
 void setRetainComments(boolean b)
           
 void ShiftExpression()
           
 void Statement()
           
 void StatementExpression()
           
 void StatementExpressionList()
           
 void SwitchLabel()
           
 void SwitchStatement()
           
 void ThrowStatement()
           
 void TryStatement()
           
 void Type()
           
 void TypedVariableDeclaration()
          Declared a typed variable.
 void UnaryExpression()
           
 void UnaryExpressionNotPlusMinus()
           
 void VariableDeclarator()
           
 void VariableInitializer()
           
 void VoidLiteral()
           
 void WhileStatement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected JJTParserState jjtree

retainComments

boolean retainComments

token_source

public ParserTokenManager token_source

jj_input_stream

ASCII_UCodeESC_CharStream jj_input_stream

token

public Token token

jj_nt

public Token jj_nt

jj_ntk

private int jj_ntk

jj_scanpos

private Token jj_scanpos

jj_lastpos

private Token jj_lastpos

jj_la

private int jj_la

lookingAhead

public boolean lookingAhead

jj_semLA

private boolean jj_semLA

jj_gen

private int jj_gen

jj_la1

private final int[] jj_la1

jj_la1_0

private final int[] jj_la1_0

jj_la1_1

private final int[] jj_la1_1

jj_la1_2

private final int[] jj_la1_2

jj_la1_3

private final int[] jj_la1_3

jj_2_rtns

private final Parser.JJCalls[] jj_2_rtns

jj_rescan

private boolean jj_rescan

jj_gc

private int jj_gc

jj_expentries

private java.util.Vector jj_expentries

jj_expentry

private int[] jj_expentry

jj_kind

private int jj_kind

jj_lasttokens

private int[] jj_lasttokens

jj_endpos

private int jj_endpos
Constructor Detail

Parser

public Parser(java.io.InputStream stream)

Parser

public Parser(java.io.Reader stream)

Parser

public Parser(ParserTokenManager tm)
Method Detail

setRetainComments

public void setRetainComments(boolean b)

jjtreeOpenNodeScope

void jjtreeOpenNodeScope(Node n)

jjtreeCloseNodeScope

void jjtreeCloseNodeScope(Node n)

reInitInput

void reInitInput(java.io.Reader in)
Re-initialize the input stream and token source.


popNode

public SimpleNode popNode()

reInitTokenInput

void reInitTokenInput(java.io.Reader in)
Explicitly re-initialize just the token reader. This seems to be necessary to avoid certain looping errors when reading bogus input. See Interpreter.


main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        ParseException
java.io.IOException
ParseException

Line

public final boolean Line()
                   throws ParseException
ParseException

MethodDeclaration

public final void MethodDeclaration()
                             throws ParseException
THE JAVA LANGUAGE GRAMMAR STARTS HERE *

ParseException

MethodDeclarationLookahead

public final void MethodDeclarationLookahead()
                                      throws ParseException
ParseException

MethodDeclarationTypeLookahead

public final void MethodDeclarationTypeLookahead()
                                          throws ParseException
ParseException

ImportDeclaration

public final void ImportDeclaration()
                             throws ParseException
ParseException

VariableDeclarator

public final void VariableDeclarator()
                              throws ParseException
ParseException

VariableInitializer

public final void VariableInitializer()
                               throws ParseException
ParseException

ArrayInitializer

public final void ArrayInitializer()
                            throws ParseException
ParseException

FormalParameters

public final void FormalParameters()
                            throws ParseException
ParseException

FormalParameter

public final void FormalParameter()
                           throws ParseException
ParseException

Type

public final void Type()
                throws ParseException
ParseException

ReturnType

public final void ReturnType()
                      throws ParseException
ParseException

PrimitiveType

public final void PrimitiveType()
                         throws ParseException
ParseException

AmbiguousName

public final void AmbiguousName()
                         throws ParseException
ParseException

Expression

public final void Expression()
                      throws ParseException
ParseException

Assignment

public final void Assignment()
                      throws ParseException
ParseException

AssignmentOperator

public final int AssignmentOperator()
                             throws ParseException
ParseException

ConditionalExpression

public final void ConditionalExpression()
                                 throws ParseException
ParseException

ConditionalOrExpression

public final void ConditionalOrExpression()
                                   throws ParseException
ParseException

ConditionalAndExpression

public final void ConditionalAndExpression()
                                    throws ParseException
ParseException

InclusiveOrExpression

public final void InclusiveOrExpression()
                                 throws ParseException
ParseException

ExclusiveOrExpression

public final void ExclusiveOrExpression()
                                 throws ParseException
ParseException

AndExpression

public final void AndExpression()
                         throws ParseException
ParseException

EqualityExpression

public final void EqualityExpression()
                              throws ParseException
ParseException

InstanceOfExpression

public final void InstanceOfExpression()
                                throws ParseException
ParseException

RelationalExpression

public final void RelationalExpression()
                                throws ParseException
ParseException

ShiftExpression

public final void ShiftExpression()
                           throws ParseException
ParseException

AdditiveExpression

public final void AdditiveExpression()
                              throws ParseException
ParseException

MultiplicativeExpression

public final void MultiplicativeExpression()
                                    throws ParseException
ParseException

UnaryExpression

public final void UnaryExpression()
                           throws ParseException
ParseException

PreIncrementExpression

public final void PreIncrementExpression()
                                  throws ParseException
ParseException

PreDecrementExpression

public final void PreDecrementExpression()
                                  throws ParseException
ParseException

UnaryExpressionNotPlusMinus

public final void UnaryExpressionNotPlusMinus()
                                       throws ParseException
ParseException

CastLookahead

public final void CastLookahead()
                         throws ParseException
ParseException

PostfixExpression

public final void PostfixExpression()
                             throws ParseException
ParseException

CastExpression

public final void CastExpression()
                          throws ParseException
ParseException

PrimaryExpression

public final void PrimaryExpression()
                             throws ParseException
ParseException

MethodInvocation

public final void MethodInvocation()
                            throws ParseException
ParseException

PrimaryPrefix

public final void PrimaryPrefix()
                         throws ParseException
ParseException

PrimarySuffix

public final void PrimarySuffix()
                         throws ParseException
ParseException

LHSPrimaryPrefix

public final void LHSPrimaryPrefix()
                            throws ParseException
The method invocation is here to force this to an object type in order to simplify the suffix processing.

ParseException

LHSPrimaryExpression

public final void LHSPrimaryExpression()
                                throws ParseException
ParseException

LHSPrimarySuffix

public final void LHSPrimarySuffix()
                            throws ParseException
ParseException

Literal

public final void Literal()
                   throws ParseException
ParseException

BooleanLiteral

public final boolean BooleanLiteral()
                             throws ParseException
ParseException

NullLiteral

public final void NullLiteral()
                       throws ParseException
ParseException

VoidLiteral

public final void VoidLiteral()
                       throws ParseException
ParseException

Arguments

public final void Arguments()
                     throws ParseException
ParseException

ArgumentList

public final void ArgumentList()
                        throws ParseException
ParseException

AllocationExpression

public final void AllocationExpression()
                                throws ParseException
ParseException

ArrayDimensions

public final void ArrayDimensions()
                           throws ParseException
ParseException

Statement

public final void Statement()
                     throws ParseException
ParseException

LabeledStatement

public final void LabeledStatement()
                            throws ParseException
ParseException

Block

public final void Block()
                 throws ParseException
ParseException

BlockStatement

public final void BlockStatement()
                          throws ParseException
ParseException

FormalComment

public final void FormalComment()
                         throws ParseException
ParseException

EmptyStatement

public final void EmptyStatement()
                          throws ParseException
ParseException

StatementExpression

public final void StatementExpression()
                               throws ParseException
ParseException

SwitchStatement

public final void SwitchStatement()
                           throws ParseException
ParseException

SwitchLabel

public final void SwitchLabel()
                       throws ParseException
ParseException

IfStatement

public final void IfStatement()
                       throws ParseException
ParseException

WhileStatement

public final void WhileStatement()
                          throws ParseException
ParseException

DoStatement

public final void DoStatement()
                       throws ParseException
ParseException

ForStatement

public final void ForStatement()
                        throws ParseException
ParseException

ForInit

public final void ForInit()
                   throws ParseException
ParseException

TypedVariableDeclaration

public final void TypedVariableDeclaration()
                                    throws ParseException
Declared a typed variable. Untyped variables are not declared per-se but are handled by the part of the grammar that deals with assignments.

ParseException

StatementExpressionList

public final void StatementExpressionList()
                                   throws ParseException
ParseException

ForUpdate

public final void ForUpdate()
                     throws ParseException
ParseException

BreakStatement

public final void BreakStatement()
                          throws ParseException
ParseException

ContinueStatement

public final void ContinueStatement()
                             throws ParseException
ParseException

ReturnStatement

public final void ReturnStatement()
                           throws ParseException
ParseException

ThrowStatement

public final void ThrowStatement()
                          throws ParseException
ParseException

TryStatement

public final void TryStatement()
                        throws ParseException
ParseException

jj_2_1

private final boolean jj_2_1(int xla)

jj_2_2

private final boolean jj_2_2(int xla)

jj_2_3

private final boolean jj_2_3(int xla)

jj_2_4

private final boolean jj_2_4(int xla)

jj_2_5

private final boolean jj_2_5(int xla)

jj_2_6

private final boolean jj_2_6(int xla)

jj_2_7

private final boolean jj_2_7(int xla)

jj_2_8

private final boolean jj_2_8(int xla)

jj_2_9

private final boolean jj_2_9(int xla)

jj_2_10

private final boolean jj_2_10(int xla)

jj_2_11

private final boolean jj_2_11(int xla)

jj_2_12

private final boolean jj_2_12(int xla)

jj_2_13

private final boolean jj_2_13(int xla)

jj_2_14

private final boolean jj_2_14(int xla)

jj_2_15

private final boolean jj_2_15(int xla)

jj_2_16

private final boolean jj_2_16(int xla)

jj_2_17

private final boolean jj_2_17(int xla)

jj_2_18

private final boolean jj_2_18(int xla)

jj_2_19

private final boolean jj_2_19(int xla)

jj_2_20

private final boolean jj_2_20(int xla)

jj_2_21

private final boolean jj_2_21(int xla)

jj_2_22

private final boolean jj_2_22(int xla)

jj_2_23

private final boolean jj_2_23(int xla)

jj_2_24

private final boolean jj_2_24(int xla)

jj_2_25

private final boolean jj_2_25(int xla)

jj_2_26

private final boolean jj_2_26(int xla)

jj_2_27

private final boolean jj_2_27(int xla)

jj_3R_33

private final boolean jj_3R_33()

jj_3_11

private final boolean jj_3_11()

jj_3R_284

private final boolean jj_3R_284()

jj_3R_264

private final boolean jj_3R_264()

jj_3R_279

private final boolean jj_3R_279()

jj_3R_278

private final boolean jj_3R_278()

jj_3R_283

private final boolean jj_3R_283()

jj_3R_271

private final boolean jj_3R_271()

jj_3R_277

private final boolean jj_3R_277()

jj_3R_263

private final boolean jj_3R_263()

jj_3R_239

private final boolean jj_3R_239()

jj_3R_206

private final boolean jj_3R_206()

jj_3R_262

private final boolean jj_3R_262()

jj_3R_205

private final boolean jj_3R_205()

jj_3R_245

private final boolean jj_3R_245()

jj_3R_238

private final boolean jj_3R_238()

jj_3R_270

private final boolean jj_3R_270()

jj_3R_231

private final boolean jj_3R_231()

jj_3R_261

private final boolean jj_3R_261()

jj_3R_260

private final boolean jj_3R_260()

jj_3R_259

private final boolean jj_3R_259()

jj_3R_227

private final boolean jj_3R_227()

jj_3R_269

private final boolean jj_3R_269()

jj_3R_244

private final boolean jj_3R_244()

jj_3R_258

private final boolean jj_3R_258()

jj_3R_247

private final boolean jj_3R_247()

jj_3R_230

private final boolean jj_3R_230()

jj_3R_234

private final boolean jj_3R_234()

jj_3R_241

private final boolean jj_3R_241()

jj_3R_226

private final boolean jj_3R_226()

jj_3R_237

private final boolean jj_3R_237()

jj_3R_246

private final boolean jj_3R_246()

jj_3R_235

private final boolean jj_3R_235()

jj_3R_219

private final boolean jj_3R_219()

jj_3R_222

private final boolean jj_3R_222()

jj_3R_229

private final boolean jj_3R_229()

jj_3R_240

private final boolean jj_3R_240()

jj_3R_225

private final boolean jj_3R_225()

jj_3R_236

private final boolean jj_3R_236()

jj_3R_223

private final boolean jj_3R_223()

jj_3R_218

private final boolean jj_3R_218()

jj_3R_211

private final boolean jj_3R_211()

jj_3R_220

private final boolean jj_3R_220()

jj_3R_228

private final boolean jj_3R_228()

jj_3R_224

private final boolean jj_3R_224()

jj_3R_221

private final boolean jj_3R_221()

jj_3R_216

private final boolean jj_3R_216()

jj_3R_217

private final boolean jj_3R_217()

jj_3R_210

private final boolean jj_3R_210()

jj_3R_213

private final boolean jj_3R_213()

jj_3R_195

private final boolean jj_3R_195()

jj_3R_203

private final boolean jj_3R_203()

jj_3R_61

private final boolean jj_3R_61()

jj_3R_212

private final boolean jj_3R_212()

jj_3R_204

private final boolean jj_3R_204()

jj_3R_60

private final boolean jj_3R_60()

jj_3R_194

private final boolean jj_3R_194()

jj_3R_197

private final boolean jj_3R_197()

jj_3R_59

private final boolean jj_3R_59()

jj_3R_175

private final boolean jj_3R_175()

jj_3R_65

private final boolean jj_3R_65()

jj_3R_178

private final boolean jj_3R_178()

jj_3R_196

private final boolean jj_3R_196()

jj_3R_107

private final boolean jj_3R_107()

jj_3R_176

private final boolean jj_3R_176()

jj_3R_58

private final boolean jj_3R_58()

jj_3R_64

private final boolean jj_3R_64()

jj_3R_147

private final boolean jj_3R_147()

jj_3R_150

private final boolean jj_3R_150()

jj_3R_177

private final boolean jj_3R_177()

jj_3R_57

private final boolean jj_3R_57()

jj_3R_148

private final boolean jj_3R_148()

jj_3R_125

private final boolean jj_3R_125()

jj_3R_56

private final boolean jj_3R_56()

jj_3R_149

private final boolean jj_3R_149()

jj_3R_126

private final boolean jj_3R_126()

jj_3R_106

private final boolean jj_3R_106()

jj_3R_55

private final boolean jj_3R_55()

jj_3R_67

private final boolean jj_3R_67()

jj_3R_63

private final boolean jj_3R_63()

jj_3R_85

private final boolean jj_3R_85()

jj_3R_54

private final boolean jj_3R_54()

jj_3R_66

private final boolean jj_3R_66()

jj_3R_62

private final boolean jj_3R_62()

jj_3R_53

private final boolean jj_3R_53()

jj_3R_32

private final boolean jj_3R_32()

jj_3_9

private final boolean jj_3_9()

jj_3R_84

private final boolean jj_3R_84()

jj_3R_45

private final boolean jj_3R_45()

jj_3R_26

private final boolean jj_3R_26()

jj_3R_44

private final boolean jj_3R_44()

jj_3_8

private final boolean jj_3_8()

jj_3R_28

private final boolean jj_3R_28()

jj_3R_77

private final boolean jj_3R_77()

jj_3R_209

private final boolean jj_3R_209()

jj_3R_76

private final boolean jj_3R_76()

jj_3R_75

private final boolean jj_3R_75()

jj_3R_74

private final boolean jj_3R_74()

jj_3R_73

private final boolean jj_3R_73()

jj_3R_50

private final boolean jj_3R_50()

jj_3R_72

private final boolean jj_3R_72()

jj_3R_71

private final boolean jj_3R_71()

jj_3R_70

private final boolean jj_3R_70()

jj_3R_34

private final boolean jj_3R_34()

jj_3R_87

private final boolean jj_3R_87()

jj_3R_86

private final boolean jj_3R_86()

jj_3R_46

private final boolean jj_3R_46()

jj_3_7

private final boolean jj_3_7()

jj_3R_49

private final boolean jj_3R_49()

jj_3R_30

private final boolean jj_3R_30()

jj_3R_142

private final boolean jj_3R_142()

jj_3R_171

private final boolean jj_3R_171()

jj_3_6

private final boolean jj_3_6()

jj_3R_141

private final boolean jj_3R_141()

jj_3R_257

private final boolean jj_3R_257()

jj_3R_256

private final boolean jj_3R_256()

jj_3_5

private final boolean jj_3_5()

jj_3R_192

private final boolean jj_3R_192()

jj_3R_118

private final boolean jj_3R_118()

jj_3R_255

private final boolean jj_3R_255()

jj_3R_100

private final boolean jj_3R_100()

jj_3R_208

private final boolean jj_3R_208()

jj_3R_254

private final boolean jj_3R_254()

jj_3R_191

private final boolean jj_3R_191()

jj_3R_233

private final boolean jj_3R_233()

jj_3R_88

private final boolean jj_3R_88()

jj_3R_190

private final boolean jj_3R_190()

jj_3R_282

private final boolean jj_3R_282()

jj_3R_253

private final boolean jj_3R_253()

jj_3R_48

private final boolean jj_3R_48()

jj_3R_189

private final boolean jj_3R_189()

jj_3R_29

private final boolean jj_3R_29()

jj_3R_47

private final boolean jj_3R_47()

jj_3R_242

private final boolean jj_3R_242()

jj_3R_243

private final boolean jj_3R_243()

jj_3R_188

private final boolean jj_3R_188()

jj_3R_268

private final boolean jj_3R_268()

jj_3R_276

private final boolean jj_3R_276()

jj_3R_232

private final boolean jj_3R_232()

jj_3R_156

private final boolean jj_3R_156()

jj_3R_170

private final boolean jj_3R_170()

jj_3R_137

private final boolean jj_3R_137()

jj_3R_43

private final boolean jj_3R_43()

jj_3_27

private final boolean jj_3_27()

jj_3R_139

private final boolean jj_3R_139()

jj_3_4

private final boolean jj_3_4()

jj_3R_249

private final boolean jj_3R_249()

jj_3_3

private final boolean jj_3_3()

jj_3R_27

private final boolean jj_3R_27()

jj_3R_275

private final boolean jj_3R_275()

jj_3R_250

private final boolean jj_3R_250()

jj_3R_252

private final boolean jj_3R_252()

jj_3R_267

private final boolean jj_3R_267()

jj_3R_274

private final boolean jj_3R_274()

jj_3R_251

private final boolean jj_3R_251()

jj_3R_81

private final boolean jj_3R_81()

jj_3R_80

private final boolean jj_3R_80()

jj_3R_40

private final boolean jj_3R_40()

jj_3_2

private final boolean jj_3_2()

jj_3R_187

private final boolean jj_3R_187()

jj_3R_155

private final boolean jj_3R_155()

jj_3R_154

private final boolean jj_3R_154()

jj_3R_186

private final boolean jj_3R_186()

jj_3R_136

private final boolean jj_3R_136()

jj_3_1

private final boolean jj_3_1()

jj_3R_185

private final boolean jj_3R_185()

jj_3R_184

private final boolean jj_3R_184()

jj_3R_266

private final boolean jj_3R_266()

jj_3R_273

private final boolean jj_3R_273()

jj_3R_265

private final boolean jj_3R_265()

jj_3R_272

private final boolean jj_3R_272()

jj_3R_248

private final boolean jj_3R_248()

jj_3_26

private final boolean jj_3_26()

jj_3R_183

private final boolean jj_3R_183()

jj_3R_201

private final boolean jj_3R_201()

jj_3R_200

private final boolean jj_3R_200()

jj_3R_199

private final boolean jj_3R_199()

jj_3R_182

private final boolean jj_3R_182()

jj_3R_198

private final boolean jj_3R_198()

jj_3R_181

private final boolean jj_3R_181()

jj_3R_140

private final boolean jj_3R_140()

jj_3R_41

private final boolean jj_3R_41()

jj_3R_117

private final boolean jj_3R_117()

jj_3_25

private final boolean jj_3_25()

jj_3R_116

private final boolean jj_3R_116()

jj_3_24

private final boolean jj_3_24()

jj_3R_115

private final boolean jj_3R_115()

jj_3R_114

private final boolean jj_3R_114()

jj_3R_113

private final boolean jj_3R_113()

jj_3R_99

private final boolean jj_3R_99()

jj_3R_79

private final boolean jj_3R_79()

jj_3R_38

private final boolean jj_3R_38()

jj_3R_39

private final boolean jj_3R_39()

jj_3R_169

private final boolean jj_3R_169()

jj_3R_168

private final boolean jj_3R_168()

jj_3R_167

private final boolean jj_3R_167()

jj_3R_166

private final boolean jj_3R_166()

jj_3R_165

private final boolean jj_3R_165()

jj_3R_164

private final boolean jj_3R_164()

jj_3R_163

private final boolean jj_3R_163()

jj_3R_162

private final boolean jj_3R_162()

jj_3R_161

private final boolean jj_3R_161()

jj_3R_160

private final boolean jj_3R_160()

jj_3_19

private final boolean jj_3_19()

jj_3R_159

private final boolean jj_3R_159()

jj_3R_158

private final boolean jj_3R_158()

jj_3R_157

private final boolean jj_3R_157()

jj_3R_138

private final boolean jj_3R_138()

jj_3_23

private final boolean jj_3_23()

jj_3R_174

private final boolean jj_3R_174()

jj_3R_202

private final boolean jj_3R_202()

jj_3R_173

private final boolean jj_3R_173()

jj_3R_193

private final boolean jj_3R_193()

jj_3_21

private final boolean jj_3_21()

jj_3_22

private final boolean jj_3_22()

jj_3R_172

private final boolean jj_3R_172()

jj_3R_143

private final boolean jj_3R_143()

jj_3R_119

private final boolean jj_3R_119()

jj_3_20

private final boolean jj_3_20()

jj_3R_135

private final boolean jj_3R_135()

jj_3R_112

private final boolean jj_3R_112()

jj_3R_98

private final boolean jj_3R_98()

jj_3R_78

private final boolean jj_3R_78()

jj_3R_153

private final boolean jj_3R_153()

jj_3R_152

private final boolean jj_3R_152()

jj_3R_180

private final boolean jj_3R_180()

jj_3R_151

private final boolean jj_3R_151()

jj_3R_179

private final boolean jj_3R_179()

jj_3R_134

private final boolean jj_3R_134()

jj_3R_133

private final boolean jj_3R_133()

jj_3R_132

private final boolean jj_3R_132()

jj_3R_131

private final boolean jj_3R_131()

jj_3R_130

private final boolean jj_3R_130()

jj_3R_129

private final boolean jj_3R_129()

jj_3R_128

private final boolean jj_3R_128()

jj_3R_111

private final boolean jj_3R_111()

jj_3R_127

private final boolean jj_3R_127()

jj_3R_110

private final boolean jj_3R_110()

jj_3R_52

private final boolean jj_3R_52()

jj_3R_109

private final boolean jj_3R_109()

jj_3R_108

private final boolean jj_3R_108()

jj_3R_91

private final boolean jj_3R_91()

jj_3_18

private final boolean jj_3_18()

jj_3R_31

private final boolean jj_3R_31()

jj_3R_90

private final boolean jj_3R_90()

jj_3R_89

private final boolean jj_3R_89()

jj_3R_51

private final boolean jj_3R_51()

jj_3R_146

private final boolean jj_3R_146()

jj_3R_97

private final boolean jj_3R_97()

jj_3R_124

private final boolean jj_3R_124()

jj_3R_96

private final boolean jj_3R_96()

jj_3R_123

private final boolean jj_3R_123()

jj_3R_122

private final boolean jj_3R_122()

jj_3R_105

private final boolean jj_3R_105()

jj_3_17

private final boolean jj_3_17()

jj_3_15

private final boolean jj_3_15()

jj_3R_145

private final boolean jj_3R_145()

jj_3_16

private final boolean jj_3_16()

jj_3R_144

private final boolean jj_3R_144()

jj_3R_121

private final boolean jj_3R_121()

jj_3R_120

private final boolean jj_3R_120()

jj_3R_36

private final boolean jj_3R_36()

jj_3R_95

private final boolean jj_3R_95()

jj_3R_83

private final boolean jj_3R_83()

jj_3R_104

private final boolean jj_3R_104()

jj_3R_35

private final boolean jj_3R_35()

jj_3R_103

private final boolean jj_3R_103()

jj_3R_102

private final boolean jj_3R_102()

jj_3R_94

private final boolean jj_3R_94()

jj_3R_101

private final boolean jj_3R_101()

jj_3R_82

private final boolean jj_3R_82()

jj_3R_93

private final boolean jj_3R_93()

jj_3R_37

private final boolean jj_3R_37()

jj_3_14

private final boolean jj_3_14()

jj_3R_281

private final boolean jj_3R_281()

jj_3R_92

private final boolean jj_3R_92()

jj_3R_42

private final boolean jj_3R_42()

jj_3R_287

private final boolean jj_3R_287()

jj_3R_286

private final boolean jj_3R_286()

jj_3R_280

private final boolean jj_3R_280()

jj_3_13

private final boolean jj_3_13()

jj_3R_285

private final boolean jj_3R_285()

jj_3R_215

private final boolean jj_3R_215()

jj_3_12

private final boolean jj_3_12()

jj_3R_207

private final boolean jj_3R_207()

jj_3R_214

private final boolean jj_3R_214()

jj_3R_69

private final boolean jj_3R_69()

jj_3_10

private final boolean jj_3_10()

jj_3R_68

private final boolean jj_3R_68()

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(ParserTokenManager tm)

jj_consume_token

private final Token jj_consume_token(int kind)
                              throws ParseException
ParseException

jj_scan_token

private final boolean jj_scan_token(int kind)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

jj_ntk

private final int jj_ntk()

jj_add_error_token

private void jj_add_error_token(int kind,
                                int pos)

generateParseException

public final ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()

jj_rescan_token

private final void jj_rescan_token()

jj_save

private final void jj_save(int index,
                           int xla)