rom.interpreter.parser
Class JavaRecognizer

java.lang.Object
  |
  +--antlr.Parser
        |
        +--antlr.LLkParser
              |
              +--rom.interpreter.parser.JavaRecognizer
All Implemented Interfaces:
JavaTokenTypes

public class JavaRecognizer
extends LLkParser
implements JavaTokenTypes

Java 1.3 Recognizer Contributing authors: James Bloom jamesdbloom@msn.com John Mitchell johnm@non.net Terence Parr parrt@magelang.com John Lilley jlilley@empathy.com Scott Stanchfield thetick@magelang.com Markus Mohnen mohnen@informatik.rwth-aachen.de Peter Williams pete.williams@sun.com Allan Jacobs Allan.Jacobs@eng.sun.com Steve Messick messick@redhills.com Version 1.00 December 9, 1997 -- initial release Version 1.01 December 10, 1997 fixed bug in octal def (0..7 not 0..8) Version 1.10 August 1998 (parrt) added tree construction fixed definition of WS,comments for mac,pc,unix newlines added unary plus Version 1.11 (Nov 20, 1998) Added "shutup" option to turn off last ambig warning. Fixed inner class def to allow named class defs as statements synchronized requires compound not simple statement add [] after builtInType DOT class in primaryExpression "const" is reserved but not valid..removed from modifiers Version 1.12 (Feb 2, 1999) Changed LITERAL_xxx to xxx in tree grammar. Updated java.g to use tokens {...} now for 2.6.0 (new feature). Version 1.13 (Apr 23, 1999) Didn't have (stat)? for else clause in tree parser. Didn't gen ASTs for interface extends. Updated tree parser too. Updated to 2.6.0. Version 1.14 (Jun 20, 1999) Allowed final/abstract on local classes. Removed local interfaces from methods Put instanceof precedence where it belongs...in relationalExpr It also had expr not type as arg; fixed it. Missing ! on SEMI in classBlock fixed: (expr) + "string" was parsed incorrectly (+ as unary plus). fixed: didn't like Object[].class in parser or tree parser Version 1.15 (Jun 26, 1999) Screwed up rule with instanceof in it. :( Fixed. Tree parser didn't like (expr).something; fixed. Allowed multiple inheritance in tree grammar. oops. Version 1.16 (August 22, 1999) Extending an interface built a wacky tree: had extra EXTENDS. Tree grammar didn't allow multiple superinterfaces. Tree grammar didn't allow empty var initializer: {} Version 1.17 (October 12, 1999) ESC lexer rule allowed 399 max not 377 max. java.tree.g didn't handle the expression of synchronized statements. Version 1.18 (August 12, 2001) Terence updated to Java 2 Version 1.3 by observing/combining work of Allan Jacobs and Steve Messick. Handles 1.3 src. Summary: o primary didn't include boolean.class kind of thing o constructor calls parsed explicitly now: see explicitConstructorInvocation o add strictfp modifier o missing objBlock after new expression in tree grammar o merged local class definition alternatives, moved after declaration o fixed problem with ClassName.super.field o reordered some alternatives to make things more efficient o long and double constants were not differentiated from int/float o whitespace rule was inefficient: matched only one char o add an examples directory with some nasty 1.3 cases o made Main.java use buffered IO and a Reader for Unicode support o supports UNICODE? Using Unicode charVocabulay makes code file big, but only in the bitsets at the end. I need to make ANTLR generate unicode bitsets more efficiently. 2002-01-25 jpnp (john@pybus.org) o fix lexing of floating point constants o 3.0 was incorrectly parsed as float rather than double o preliminary stab at sorting out SUPER_CTOR_CALL o f.g.super() was parsing as METHOD_CALL. rearranged primaryExpression and postfixExpression so they don't match ...super(). [I haven't yet fully tested that I didn't break anything else in the process!] 2002-01-28 jpnp o problem with SUPER_CTOR_CALL fixed o Tidied up postfixExpression, and identPrimary. Primary expressions with more than one dotted part now work as qualifiers for super(). 2002-01-29 jpnp o properly fixed float lexing bug. o Typo, wanted to test on 'F' but was using 'D'. 2003-06-22 James Bloom o updated for java 1.4, o removed tree production, o added output to StringBuffer to enable code to be copied and altered by adding new code in to certain parts of a class o adapted for Runtime Java Class Editor - javapre which generates precompiled source and XML for any class that implements editor.interpretation.InterpreterWrapper


Field Summary
static java.lang.String[] _tokenNames
           
static BitSet _tokenSet_0
           
static BitSet _tokenSet_1
           
static BitSet _tokenSet_10
           
static BitSet _tokenSet_11
           
static BitSet _tokenSet_12
           
static BitSet _tokenSet_13
           
static BitSet _tokenSet_14
           
static BitSet _tokenSet_15
           
static BitSet _tokenSet_16
           
static BitSet _tokenSet_17
           
static BitSet _tokenSet_18
           
static BitSet _tokenSet_19
           
static BitSet _tokenSet_2
           
static BitSet _tokenSet_20
           
static BitSet _tokenSet_21
           
static BitSet _tokenSet_22
           
static BitSet _tokenSet_23
           
static BitSet _tokenSet_24
           
static BitSet _tokenSet_25
           
static BitSet _tokenSet_26
           
static BitSet _tokenSet_27
           
static BitSet _tokenSet_28
           
static BitSet _tokenSet_29
           
static BitSet _tokenSet_3
           
static BitSet _tokenSet_30
           
static BitSet _tokenSet_31
           
static BitSet _tokenSet_32
           
static BitSet _tokenSet_33
           
static BitSet _tokenSet_34
           
static BitSet _tokenSet_35
           
static BitSet _tokenSet_36
           
static BitSet _tokenSet_37
           
static BitSet _tokenSet_38
           
static BitSet _tokenSet_39
           
static BitSet _tokenSet_4
           
static BitSet _tokenSet_40
           
static BitSet _tokenSet_41
           
static BitSet _tokenSet_42
           
static BitSet _tokenSet_43
           
static BitSet _tokenSet_44
           
static BitSet _tokenSet_45
           
static BitSet _tokenSet_46
           
static BitSet _tokenSet_47
           
static BitSet _tokenSet_48
           
static BitSet _tokenSet_49
           
static BitSet _tokenSet_5
           
static BitSet _tokenSet_50
           
static BitSet _tokenSet_51
           
static BitSet _tokenSet_52
           
static BitSet _tokenSet_53
           
static BitSet _tokenSet_54
           
static BitSet _tokenSet_55
           
static BitSet _tokenSet_56
           
static BitSet _tokenSet_57
           
static BitSet _tokenSet_58
           
static BitSet _tokenSet_59
           
static BitSet _tokenSet_6
           
static BitSet _tokenSet_60
           
static BitSet _tokenSet_61
           
static BitSet _tokenSet_62
           
static BitSet _tokenSet_63
           
static BitSet _tokenSet_64
           
static BitSet _tokenSet_65
           
static BitSet _tokenSet_66
           
static BitSet _tokenSet_67
           
static BitSet _tokenSet_68
           
static BitSet _tokenSet_69
           
static BitSet _tokenSet_7
           
static BitSet _tokenSet_8
           
static BitSet _tokenSet_9
           
(package private)  boolean addCallingContext
           
static boolean checkIdentifier
           
(package private)  java.util.Set fieldsAndMethods
           
(package private)  java.util.Map innerClasses
           
(package private)  boolean innerClassName
           
(package private)  java.lang.StringBuffer outputBuffer
           
 
Fields inherited from class antlr.LLkParser
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, traceDepth
 
Fields inherited from interface rom.interpreter.parser.JavaTokenTypes
ABSTRACT, ARRAY_DECLARATOR, ARRAY_INIT, ASSERT, ASSIGN, BAND, BAND_ASSIGN, BLOCK, BNOT, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, CASE_GROUP, CHAR_LITERAL, CLASS_DEF, COLON, COMMA, CTOR_CALL, CTOR_DEF, DEC, DIV, DIV_ASSIGN, DOT, ELIST, EMPTY_STAT, EOF, EQUAL, ESC, EXPONENT, EXPR, EXTENDS_CLAUSE, FINAL, FLOAT_SUFFIX, FOR_CONDITION, FOR_INIT, FOR_ITERATOR, GE, GT, HEX_DIGIT, IDENT, IMPLEMENTS_CLAUSE, IMPORT, INC, INDEX_OP, INSTANCE_INIT, INTERFACE_DEF, LABELED_STAT, LAND, LBRACK, LCURLY, LE, LITERAL_boolean, LITERAL_break, LITERAL_byte, LITERAL_case, LITERAL_catch, LITERAL_char, LITERAL_class, LITERAL_continue, LITERAL_default, LITERAL_do, LITERAL_double, LITERAL_else, LITERAL_extends, LITERAL_false, LITERAL_finally, LITERAL_float, LITERAL_for, LITERAL_if, LITERAL_implements, LITERAL_import, LITERAL_instanceof, LITERAL_int, LITERAL_interface, LITERAL_long, LITERAL_native, LITERAL_new, LITERAL_null, LITERAL_package, LITERAL_private, LITERAL_protected, LITERAL_public, LITERAL_return, LITERAL_short, LITERAL_static, LITERAL_super, LITERAL_switch, LITERAL_synchronized, LITERAL_this, LITERAL_threadsafe, LITERAL_throw, LITERAL_throws, LITERAL_transient, LITERAL_true, LITERAL_try, LITERAL_void, LITERAL_volatile, LITERAL_while, LNOT, LOR, LPAREN, LT, METHOD_CALL, METHOD_DEF, MINUS, MINUS_ASSIGN, ML_COMMENT, MOD, MOD_ASSIGN, MODIFIERS, NOT_EQUAL, NULL_TREE_LOOKAHEAD, NUM_DOUBLE, NUM_FLOAT, NUM_INT, NUM_LONG, OBJBLOCK, PACKAGE_DEF, PARAMETER_DEF, PARAMETERS, PLUS, PLUS_ASSIGN, POST_DEC, POST_INC, QUESTION, RBRACK, RCURLY, RPAREN, SEMI, SL, SL_ASSIGN, SL_COMMENT, SLIST, SR, SR_ASSIGN, STAR, STAR_ASSIGN, STATIC_INIT, STRICTFP, STRING_LITERAL, SUPER_CTOR_CALL, TYPE, TYPECAST, UNARY_MINUS, UNARY_PLUS, VARIABLE_DEF, VOCAB, WS
 
Constructor Summary
  JavaRecognizer(ParserSharedInputState state)
           
  JavaRecognizer(TokenBuffer tokenBuf)
           
protected JavaRecognizer(TokenBuffer tokenBuf, int k)
           
  JavaRecognizer(TokenStream lexer)
           
protected JavaRecognizer(TokenStream lexer, int k)
           
 
Method Summary
 void aCase()
           
 void additiveExpression()
           
 void andExpression()
           
 void argList()
           
 void arrayInitializer()
           
 void assignmentExpression()
           
 void builtInType()
           
 void builtInTypeSpec()
           
 void casesGroup()
           
 void caseSList()
           
 void classBlock()
           
 void classDefinition()
           
 void classTypeSpec()
           
 void compilationUnit(java.util.Set fieldsAndMethods, java.util.Map innerClasses, java.lang.StringBuffer outputBuffer)
           
 void compoundStatement()
           
 void conditionalExpression()
           
 void constant()
           
 void constructorBody()
           
 void ctorHead()
           
 void declaration()
           
 void declaratorBrackets()
           
 void equalityExpression()
           
 void exclusiveOrExpression()
           
 void explicitConstructorInvocation()
           
 void expression()
           
 void expressionList()
           
 void field()
           
 void forCond()
           
 void forInit()
           
 void forIter()
           
 void handler()
           
 void identifier(boolean mightBeInnerClassName)
           
 void identifierStar()
           
 void identifierToken()
           
 void identPrimary()
           
 void implementsClause()
           
 void importDefinition()
           
 void inclusiveOrExpression()
           
 void initializer()
           
 void interfaceDefinition()
           
 void interfaceExtends()
           
 void logicalAndExpression()
           
 void logicalOrExpression()
           
private static long[] mk_tokenSet_0()
           
private static long[] mk_tokenSet_1()
           
private static long[] mk_tokenSet_10()
           
private static long[] mk_tokenSet_11()
           
private static long[] mk_tokenSet_12()
           
private static long[] mk_tokenSet_13()
           
private static long[] mk_tokenSet_14()
           
private static long[] mk_tokenSet_15()
           
private static long[] mk_tokenSet_16()
           
private static long[] mk_tokenSet_17()
           
private static long[] mk_tokenSet_18()
           
private static long[] mk_tokenSet_19()
           
private static long[] mk_tokenSet_2()
           
private static long[] mk_tokenSet_20()
           
private static long[] mk_tokenSet_21()
           
private static long[] mk_tokenSet_22()
           
private static long[] mk_tokenSet_23()
           
private static long[] mk_tokenSet_24()
           
private static long[] mk_tokenSet_25()
           
private static long[] mk_tokenSet_26()
           
private static long[] mk_tokenSet_27()
           
private static long[] mk_tokenSet_28()
           
private static long[] mk_tokenSet_29()
           
private static long[] mk_tokenSet_3()
           
private static long[] mk_tokenSet_30()
           
private static long[] mk_tokenSet_31()
           
private static long[] mk_tokenSet_32()
           
private static long[] mk_tokenSet_33()
           
private static long[] mk_tokenSet_34()
           
private static long[] mk_tokenSet_35()
           
private static long[] mk_tokenSet_36()
           
private static long[] mk_tokenSet_37()
           
private static long[] mk_tokenSet_38()
           
private static long[] mk_tokenSet_39()
           
private static long[] mk_tokenSet_4()
           
private static long[] mk_tokenSet_40()
           
private static long[] mk_tokenSet_41()
           
private static long[] mk_tokenSet_42()
           
private static long[] mk_tokenSet_43()
           
private static long[] mk_tokenSet_44()
           
private static long[] mk_tokenSet_45()
           
private static long[] mk_tokenSet_46()
           
private static long[] mk_tokenSet_47()
           
private static long[] mk_tokenSet_48()
           
private static long[] mk_tokenSet_49()
           
private static long[] mk_tokenSet_5()
           
private static long[] mk_tokenSet_50()
           
private static long[] mk_tokenSet_51()
           
private static long[] mk_tokenSet_52()
           
private static long[] mk_tokenSet_53()
           
private static long[] mk_tokenSet_54()
           
private static long[] mk_tokenSet_55()
           
private static long[] mk_tokenSet_56()
           
private static long[] mk_tokenSet_57()
           
private static long[] mk_tokenSet_58()
           
private static long[] mk_tokenSet_59()
           
private static long[] mk_tokenSet_6()
           
private static long[] mk_tokenSet_60()
           
private static long[] mk_tokenSet_61()
           
private static long[] mk_tokenSet_62()
           
private static long[] mk_tokenSet_63()
           
private static long[] mk_tokenSet_64()
           
private static long[] mk_tokenSet_65()
           
private static long[] mk_tokenSet_66()
           
private static long[] mk_tokenSet_67()
           
private static long[] mk_tokenSet_68()
           
private static long[] mk_tokenSet_69()
           
private static long[] mk_tokenSet_7()
           
private static long[] mk_tokenSet_8()
           
private static long[] mk_tokenSet_9()
           
 void modifier()
           
 void modifiers()
           
 void multiplicativeExpression()
           
 void newArrayDeclarator()
           
 void newExpression()
          object instantiation.
 void packageDefinition()
           
 void parameterDeclaration()
           
 void parameterDeclarationList()
           
 void parameterModifier()
           
 void postfixExpression()
           
 void primaryExpression()
           
 void relationalExpression()
           
 void shiftExpression()
           
 void spacedIdentifierToken(boolean inVariableDeclaration, boolean mightBeInnerClassName)
           
 void statement()
           
 void superClassClause()
           
 void throwsClause()
           
 void tryBlock()
           
 void type()
           
 void typeDefinition()
           
 void typeSpec()
           
 void unaryExpression()
           
 void unaryExpressionNotPlusMinus()
           
 void variableDeclarator()
           
 void variableDefinitions()
           
 void varInitializer()
           
 
Methods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOut
 
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, isDebugMode, mark, match, match, matchNot, panic, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputBuffer

java.lang.StringBuffer outputBuffer

addCallingContext

boolean addCallingContext

checkIdentifier

public static boolean checkIdentifier

fieldsAndMethods

java.util.Set fieldsAndMethods

innerClasses

java.util.Map innerClasses

innerClassName

boolean innerClassName

_tokenNames

public static final java.lang.String[] _tokenNames

_tokenSet_0

public static final BitSet _tokenSet_0

_tokenSet_1

public static final BitSet _tokenSet_1

_tokenSet_2

public static final BitSet _tokenSet_2

_tokenSet_3

public static final BitSet _tokenSet_3

_tokenSet_4

public static final BitSet _tokenSet_4

_tokenSet_5

public static final BitSet _tokenSet_5

_tokenSet_6

public static final BitSet _tokenSet_6

_tokenSet_7

public static final BitSet _tokenSet_7

_tokenSet_8

public static final BitSet _tokenSet_8

_tokenSet_9

public static final BitSet _tokenSet_9

_tokenSet_10

public static final BitSet _tokenSet_10

_tokenSet_11

public static final BitSet _tokenSet_11

_tokenSet_12

public static final BitSet _tokenSet_12

_tokenSet_13

public static final BitSet _tokenSet_13

_tokenSet_14

public static final BitSet _tokenSet_14

_tokenSet_15

public static final BitSet _tokenSet_15

_tokenSet_16

public static final BitSet _tokenSet_16

_tokenSet_17

public static final BitSet _tokenSet_17

_tokenSet_18

public static final BitSet _tokenSet_18

_tokenSet_19

public static final BitSet _tokenSet_19

_tokenSet_20

public static final BitSet _tokenSet_20

_tokenSet_21

public static final BitSet _tokenSet_21

_tokenSet_22

public static final BitSet _tokenSet_22

_tokenSet_23

public static final BitSet _tokenSet_23

_tokenSet_24

public static final BitSet _tokenSet_24

_tokenSet_25

public static final BitSet _tokenSet_25

_tokenSet_26

public static final BitSet _tokenSet_26

_tokenSet_27

public static final BitSet _tokenSet_27

_tokenSet_28

public static final BitSet _tokenSet_28

_tokenSet_29

public static final BitSet _tokenSet_29

_tokenSet_30

public static final BitSet _tokenSet_30

_tokenSet_31

public static final BitSet _tokenSet_31

_tokenSet_32

public static final BitSet _tokenSet_32

_tokenSet_33

public static final BitSet _tokenSet_33

_tokenSet_34

public static final BitSet _tokenSet_34

_tokenSet_35

public static final BitSet _tokenSet_35

_tokenSet_36

public static final BitSet _tokenSet_36

_tokenSet_37

public static final BitSet _tokenSet_37

_tokenSet_38

public static final BitSet _tokenSet_38

_tokenSet_39

public static final BitSet _tokenSet_39

_tokenSet_40

public static final BitSet _tokenSet_40

_tokenSet_41

public static final BitSet _tokenSet_41

_tokenSet_42

public static final BitSet _tokenSet_42

_tokenSet_43

public static final BitSet _tokenSet_43

_tokenSet_44

public static final BitSet _tokenSet_44

_tokenSet_45

public static final BitSet _tokenSet_45

_tokenSet_46

public static final BitSet _tokenSet_46

_tokenSet_47

public static final BitSet _tokenSet_47

_tokenSet_48

public static final BitSet _tokenSet_48

_tokenSet_49

public static final BitSet _tokenSet_49

_tokenSet_50

public static final BitSet _tokenSet_50

_tokenSet_51

public static final BitSet _tokenSet_51

_tokenSet_52

public static final BitSet _tokenSet_52

_tokenSet_53

public static final BitSet _tokenSet_53

_tokenSet_54

public static final BitSet _tokenSet_54

_tokenSet_55

public static final BitSet _tokenSet_55

_tokenSet_56

public static final BitSet _tokenSet_56

_tokenSet_57

public static final BitSet _tokenSet_57

_tokenSet_58

public static final BitSet _tokenSet_58

_tokenSet_59

public static final BitSet _tokenSet_59

_tokenSet_60

public static final BitSet _tokenSet_60

_tokenSet_61

public static final BitSet _tokenSet_61

_tokenSet_62

public static final BitSet _tokenSet_62

_tokenSet_63

public static final BitSet _tokenSet_63

_tokenSet_64

public static final BitSet _tokenSet_64

_tokenSet_65

public static final BitSet _tokenSet_65

_tokenSet_66

public static final BitSet _tokenSet_66

_tokenSet_67

public static final BitSet _tokenSet_67

_tokenSet_68

public static final BitSet _tokenSet_68

_tokenSet_69

public static final BitSet _tokenSet_69
Constructor Detail

JavaRecognizer

protected JavaRecognizer(TokenBuffer tokenBuf,
                         int k)

JavaRecognizer

public JavaRecognizer(TokenBuffer tokenBuf)

JavaRecognizer

protected JavaRecognizer(TokenStream lexer,
                         int k)

JavaRecognizer

public JavaRecognizer(TokenStream lexer)

JavaRecognizer

public JavaRecognizer(ParserSharedInputState state)
Method Detail

compilationUnit

public final void compilationUnit(java.util.Set fieldsAndMethods,
                                  java.util.Map innerClasses,
                                  java.lang.StringBuffer outputBuffer)
                           throws RecognitionException,
                                  TokenStreamException
RecognitionException
TokenStreamException

packageDefinition

public final void packageDefinition()
                             throws RecognitionException,
                                    TokenStreamException
RecognitionException
TokenStreamException

importDefinition

public final void importDefinition()
                            throws RecognitionException,
                                   TokenStreamException
RecognitionException
TokenStreamException

statement

public final void statement()
                     throws RecognitionException,
                            TokenStreamException
RecognitionException
TokenStreamException

identifier

public final void identifier(boolean mightBeInnerClassName)
                      throws RecognitionException,
                             TokenStreamException
RecognitionException
TokenStreamException

identifierStar

public final void identifierStar()
                          throws RecognitionException,
                                 TokenStreamException
RecognitionException
TokenStreamException

typeDefinition

public final void typeDefinition()
                          throws RecognitionException,
                                 TokenStreamException
RecognitionException
TokenStreamException

modifiers

public final void modifiers()
                     throws RecognitionException,
                            TokenStreamException
RecognitionException
TokenStreamException

classDefinition

public final void classDefinition()
                           throws RecognitionException,
                                  TokenStreamException
RecognitionException
TokenStreamException

interfaceDefinition

public final void interfaceDefinition()
                               throws RecognitionException,
                                      TokenStreamException
RecognitionException
TokenStreamException

declaration

public final void declaration()
                       throws RecognitionException,
                              TokenStreamException
RecognitionException
TokenStreamException

typeSpec

public final void typeSpec()
                    throws RecognitionException,
                           TokenStreamException
RecognitionException
TokenStreamException

variableDefinitions

public final void variableDefinitions()
                               throws RecognitionException,
                                      TokenStreamException
RecognitionException
TokenStreamException

classTypeSpec

public final void classTypeSpec()
                         throws RecognitionException,
                                TokenStreamException
RecognitionException
TokenStreamException

builtInTypeSpec

public final void builtInTypeSpec()
                           throws RecognitionException,
                                  TokenStreamException
RecognitionException
TokenStreamException

builtInType

public final void builtInType()
                       throws RecognitionException,
                              TokenStreamException
RecognitionException
TokenStreamException

type

public final void type()
                throws RecognitionException,
                       TokenStreamException
RecognitionException
TokenStreamException

spacedIdentifierToken

public final void spacedIdentifierToken(boolean inVariableDeclaration,
                                        boolean mightBeInnerClassName)
                                 throws RecognitionException,
                                        TokenStreamException
RecognitionException
TokenStreamException

identifierToken

public final void identifierToken()
                           throws RecognitionException,
                                  TokenStreamException
RecognitionException
TokenStreamException

modifier

public final void modifier()
                    throws RecognitionException,
                           TokenStreamException
RecognitionException
TokenStreamException

superClassClause

public final void superClassClause()
                            throws RecognitionException,
                                   TokenStreamException
RecognitionException
TokenStreamException

implementsClause

public final void implementsClause()
                            throws RecognitionException,
                                   TokenStreamException
RecognitionException
TokenStreamException

classBlock

public final void classBlock()
                      throws RecognitionException,
                             TokenStreamException
RecognitionException
TokenStreamException

interfaceExtends

public final void interfaceExtends()
                            throws RecognitionException,
                                   TokenStreamException
RecognitionException
TokenStreamException

field

public final void field()
                 throws RecognitionException,
                        TokenStreamException
RecognitionException
TokenStreamException

ctorHead

public final void ctorHead()
                    throws RecognitionException,
                           TokenStreamException
RecognitionException
TokenStreamException

constructorBody

public final void constructorBody()
                           throws RecognitionException,
                                  TokenStreamException
RecognitionException
TokenStreamException

parameterDeclarationList

public final void parameterDeclarationList()
                                    throws RecognitionException,
                                           TokenStreamException
RecognitionException
TokenStreamException

declaratorBrackets

public final void declaratorBrackets()
                              throws RecognitionException,
                                     TokenStreamException
RecognitionException
TokenStreamException

throwsClause

public final void throwsClause()
                        throws RecognitionException,
                               TokenStreamException
RecognitionException
TokenStreamException

compoundStatement

public final void compoundStatement()
                             throws RecognitionException,
                                    TokenStreamException
RecognitionException
TokenStreamException

explicitConstructorInvocation

public final void explicitConstructorInvocation()
                                         throws RecognitionException,
                                                TokenStreamException
RecognitionException
TokenStreamException

argList

public final void argList()
                   throws RecognitionException,
                          TokenStreamException
RecognitionException
TokenStreamException

postfixExpression

public final void postfixExpression()
                             throws RecognitionException,
                                    TokenStreamException
RecognitionException
TokenStreamException

variableDeclarator

public final void variableDeclarator()
                              throws RecognitionException,
                                     TokenStreamException
RecognitionException
TokenStreamException

varInitializer

public final void varInitializer()
                          throws RecognitionException,
                                 TokenStreamException
RecognitionException
TokenStreamException

initializer

public final void initializer()
                       throws RecognitionException,
                              TokenStreamException
RecognitionException
TokenStreamException

arrayInitializer

public final void arrayInitializer()
                            throws RecognitionException,
                                   TokenStreamException
RecognitionException
TokenStreamException

expression

public final void expression()
                      throws RecognitionException,
                             TokenStreamException
RecognitionException
TokenStreamException

parameterDeclaration

public final void parameterDeclaration()
                                throws RecognitionException,
                                       TokenStreamException
RecognitionException
TokenStreamException

parameterModifier

public final void parameterModifier()
                             throws RecognitionException,
                                    TokenStreamException
RecognitionException
TokenStreamException

forInit

public final void forInit()
                   throws RecognitionException,
                          TokenStreamException
RecognitionException
TokenStreamException

forCond

public final void forCond()
                   throws RecognitionException,
                          TokenStreamException
RecognitionException
TokenStreamException

forIter

public final void forIter()
                   throws RecognitionException,
                          TokenStreamException
RecognitionException
TokenStreamException

casesGroup

public final void casesGroup()
                      throws RecognitionException,
                             TokenStreamException
RecognitionException
TokenStreamException

tryBlock

public final void tryBlock()
                    throws RecognitionException,
                           TokenStreamException
RecognitionException
TokenStreamException

aCase

public final void aCase()
                 throws RecognitionException,
                        TokenStreamException
RecognitionException
TokenStreamException

caseSList

public final void caseSList()
                     throws RecognitionException,
                            TokenStreamException
RecognitionException
TokenStreamException

expressionList

public final void expressionList()
                          throws RecognitionException,
                                 TokenStreamException
RecognitionException
TokenStreamException

handler

public final void handler()
                   throws RecognitionException,
                          TokenStreamException
RecognitionException
TokenStreamException

assignmentExpression

public final void assignmentExpression()
                                throws RecognitionException,
                                       TokenStreamException
RecognitionException
TokenStreamException

conditionalExpression

public final void conditionalExpression()
                                 throws RecognitionException,
                                        TokenStreamException
RecognitionException
TokenStreamException

logicalOrExpression

public final void logicalOrExpression()
                               throws RecognitionException,
                                      TokenStreamException
RecognitionException
TokenStreamException

logicalAndExpression

public final void logicalAndExpression()
                                throws RecognitionException,
                                       TokenStreamException
RecognitionException
TokenStreamException

inclusiveOrExpression

public final void inclusiveOrExpression()
                                 throws RecognitionException,
                                        TokenStreamException
RecognitionException
TokenStreamException

exclusiveOrExpression

public final void exclusiveOrExpression()
                                 throws RecognitionException,
                                        TokenStreamException
RecognitionException
TokenStreamException

andExpression

public final void andExpression()
                         throws RecognitionException,
                                TokenStreamException
RecognitionException
TokenStreamException

equalityExpression

public final void equalityExpression()
                              throws RecognitionException,
                                     TokenStreamException
RecognitionException
TokenStreamException

relationalExpression

public final void relationalExpression()
                                throws RecognitionException,
                                       TokenStreamException
RecognitionException
TokenStreamException

shiftExpression

public final void shiftExpression()
                           throws RecognitionException,
                                  TokenStreamException
RecognitionException
TokenStreamException

additiveExpression

public final void additiveExpression()
                              throws RecognitionException,
                                     TokenStreamException
RecognitionException
TokenStreamException

multiplicativeExpression

public final void multiplicativeExpression()
                                    throws RecognitionException,
                                           TokenStreamException
RecognitionException
TokenStreamException

unaryExpression

public final void unaryExpression()
                           throws RecognitionException,
                                  TokenStreamException
RecognitionException
TokenStreamException

unaryExpressionNotPlusMinus

public final void unaryExpressionNotPlusMinus()
                                       throws RecognitionException,
                                              TokenStreamException
RecognitionException
TokenStreamException

primaryExpression

public final void primaryExpression()
                             throws RecognitionException,
                                    TokenStreamException
RecognitionException
TokenStreamException

newExpression

public final void newExpression()
                         throws RecognitionException,
                                TokenStreamException
object instantiation. Trees are built as illustrated by the following input/tree pairs: new T() new | T -- ELIST | arg1 -- arg2 -- .. -- argn new int[] new | int -- ARRAY_DECLARATOR new int[] {1,2} new | int -- ARRAY_DECLARATOR -- ARRAY_INIT | EXPR -- EXPR | | 1 2 new int[3] new | int -- ARRAY_DECLARATOR | EXPR | 3 new int[1][2] new | int -- ARRAY_DECLARATOR | ARRAY_DECLARATOR -- EXPR | | EXPR 1 | 2

RecognitionException
TokenStreamException

identPrimary

public final void identPrimary()
                        throws RecognitionException,
                               TokenStreamException
RecognitionException
TokenStreamException

constant

public final void constant()
                    throws RecognitionException,
                           TokenStreamException
RecognitionException
TokenStreamException

newArrayDeclarator

public final void newArrayDeclarator()
                              throws RecognitionException,
                                     TokenStreamException
RecognitionException
TokenStreamException

mk_tokenSet_0

private static final long[] mk_tokenSet_0()

mk_tokenSet_1

private static final long[] mk_tokenSet_1()

mk_tokenSet_2

private static final long[] mk_tokenSet_2()

mk_tokenSet_3

private static final long[] mk_tokenSet_3()

mk_tokenSet_4

private static final long[] mk_tokenSet_4()

mk_tokenSet_5

private static final long[] mk_tokenSet_5()

mk_tokenSet_6

private static final long[] mk_tokenSet_6()

mk_tokenSet_7

private static final long[] mk_tokenSet_7()

mk_tokenSet_8

private static final long[] mk_tokenSet_8()

mk_tokenSet_9

private static final long[] mk_tokenSet_9()

mk_tokenSet_10

private static final long[] mk_tokenSet_10()

mk_tokenSet_11

private static final long[] mk_tokenSet_11()

mk_tokenSet_12

private static final long[] mk_tokenSet_12()

mk_tokenSet_13

private static final long[] mk_tokenSet_13()

mk_tokenSet_14

private static final long[] mk_tokenSet_14()

mk_tokenSet_15

private static final long[] mk_tokenSet_15()

mk_tokenSet_16

private static final long[] mk_tokenSet_16()

mk_tokenSet_17

private static final long[] mk_tokenSet_17()

mk_tokenSet_18

private static final long[] mk_tokenSet_18()

mk_tokenSet_19

private static final long[] mk_tokenSet_19()

mk_tokenSet_20

private static final long[] mk_tokenSet_20()

mk_tokenSet_21

private static final long[] mk_tokenSet_21()

mk_tokenSet_22

private static final long[] mk_tokenSet_22()

mk_tokenSet_23

private static final long[] mk_tokenSet_23()

mk_tokenSet_24

private static final long[] mk_tokenSet_24()

mk_tokenSet_25

private static final long[] mk_tokenSet_25()

mk_tokenSet_26

private static final long[] mk_tokenSet_26()

mk_tokenSet_27

private static final long[] mk_tokenSet_27()

mk_tokenSet_28

private static final long[] mk_tokenSet_28()

mk_tokenSet_29

private static final long[] mk_tokenSet_29()

mk_tokenSet_30

private static final long[] mk_tokenSet_30()

mk_tokenSet_31

private static final long[] mk_tokenSet_31()

mk_tokenSet_32

private static final long[] mk_tokenSet_32()

mk_tokenSet_33

private static final long[] mk_tokenSet_33()

mk_tokenSet_34

private static final long[] mk_tokenSet_34()

mk_tokenSet_35

private static final long[] mk_tokenSet_35()

mk_tokenSet_36

private static final long[] mk_tokenSet_36()

mk_tokenSet_37

private static final long[] mk_tokenSet_37()

mk_tokenSet_38

private static final long[] mk_tokenSet_38()

mk_tokenSet_39

private static final long[] mk_tokenSet_39()

mk_tokenSet_40

private static final long[] mk_tokenSet_40()

mk_tokenSet_41

private static final long[] mk_tokenSet_41()

mk_tokenSet_42

private static final long[] mk_tokenSet_42()

mk_tokenSet_43

private static final long[] mk_tokenSet_43()

mk_tokenSet_44

private static final long[] mk_tokenSet_44()

mk_tokenSet_45

private static final long[] mk_tokenSet_45()

mk_tokenSet_46

private static final long[] mk_tokenSet_46()

mk_tokenSet_47

private static final long[] mk_tokenSet_47()

mk_tokenSet_48

private static final long[] mk_tokenSet_48()

mk_tokenSet_49

private static final long[] mk_tokenSet_49()

mk_tokenSet_50

private static final long[] mk_tokenSet_50()

mk_tokenSet_51

private static final long[] mk_tokenSet_51()

mk_tokenSet_52

private static final long[] mk_tokenSet_52()

mk_tokenSet_53

private static final long[] mk_tokenSet_53()

mk_tokenSet_54

private static final long[] mk_tokenSet_54()

mk_tokenSet_55

private static final long[] mk_tokenSet_55()

mk_tokenSet_56

private static final long[] mk_tokenSet_56()

mk_tokenSet_57

private static final long[] mk_tokenSet_57()

mk_tokenSet_58

private static final long[] mk_tokenSet_58()

mk_tokenSet_59

private static final long[] mk_tokenSet_59()

mk_tokenSet_60

private static final long[] mk_tokenSet_60()

mk_tokenSet_61

private static final long[] mk_tokenSet_61()

mk_tokenSet_62

private static final long[] mk_tokenSet_62()

mk_tokenSet_63

private static final long[] mk_tokenSet_63()

mk_tokenSet_64

private static final long[] mk_tokenSet_64()

mk_tokenSet_65

private static final long[] mk_tokenSet_65()

mk_tokenSet_66

private static final long[] mk_tokenSet_66()

mk_tokenSet_67

private static final long[] mk_tokenSet_67()

mk_tokenSet_68

private static final long[] mk_tokenSet_68()

mk_tokenSet_69

private static final long[] mk_tokenSet_69()