org.drools.semantics.java.parser
Class JavaTreeParser

java.lang.Object
  extended by antlr.TreeParser
      extended by org.drools.semantics.java.parser.JavaTreeParser
All Implemented Interfaces:
JavaTreeParserTokenTypes

public class JavaTreeParser
extends antlr.TreeParser
implements JavaTreeParserTokenTypes

Java 1.3 AST Recognizer. This grammar is in the PUBLIC DOMAIN


Field Summary
static java.lang.String[] _tokenNames
           
static BitSet _tokenSet_0
           
static BitSet _tokenSet_1
           
 
Fields inherited from interface org.drools.semantics.java.parser.JavaTreeParserTokenTypes
ABSTRACT, ARRAY_DECLARATOR, ARRAY_INIT, 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_const, 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, RULE, RULE_SET, SEMI, SL, SL_ASSIGN, SL_COMMENT, SLIST, SR, SR_ASSIGN, STAR, STAR_ASSIGN, STATIC_INIT, STRICTFP, STRING_LITERAL, SUPER_CTOR_CALL, THEN, TYPE, TYPECAST, UNARY_MINUS, UNARY_PLUS, VARIABLE_DEF, VOCAB, WHEN, WS
 
Constructor Summary
JavaTreeParser()
           
 
Method Summary
 void arrayIndex(AST _t)
           
 void arrayInitializer(AST _t)
           
 void assignmentCondition(AST _t)
           
 void builtInType(AST _t)
           
 void caseGroup(AST _t)
           
 void compilationUnit(AST _t)
           
 void constant(AST _t)
           
 void ctorCall(AST _t)
           
 void ctorDef(AST _t)
           
 void ctorSList(AST _t)
           
 void elist(AST _t)
           
 void expr(AST _t)
           
 void exprCondition(AST _t)
           
 void expression(AST _t)
           
 void extendsClause(AST _t)
           
 java.util.List getVariableReferences()
           
 void handler(AST _t)
           
 void identifier(AST _t)
           
 void identifierStar(AST _t)
           
 void implementsClause(AST _t)
           
 void importDefinition(AST _t)
           
 void init()
           
 void initializer(AST _t)
           
 void interfaceBlock(AST _t)
           
 void methodDecl(AST _t)
           
 void methodDef(AST _t)
           
 void methodHead(AST _t)
           
 void modifier(AST _t)
           
 void modifiers(AST _t)
           
 void newArrayDeclarator(AST _t)
           
 void newExpression(AST _t)
           
 void objBlock(AST _t)
           
 void objectinitializer(AST _t)
           
 void packageDefinition(AST _t)
           
 void parameterDef(AST _t)
           
 void primaryExpression(AST _t)
           
 void rule(AST _t)
           
 void ruleFile(AST _t)
           
 void ruleSet(AST _t)
           
 void slist(AST _t)
           
 void stat(AST _t)
           
 void thenBlock(AST _t)
           
 void throwsClause(AST _t)
           
 void tryBlock(AST _t)
           
 void type(AST _t)
           
 void typeDefinition(AST _t)
           
 void typeSpec(AST _t)
           
 void typeSpecArray(AST _t)
           
 void variableDeclarator(AST _t)
           
 void variableDef(AST _t)
           
 void varInitializer(AST _t)
           
 void whenBlock(AST _t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tokenNames

public static final java.lang.String[] _tokenNames

_tokenSet_0

public static final BitSet _tokenSet_0

_tokenSet_1

public static final BitSet _tokenSet_1
Constructor Detail

JavaTreeParser

public JavaTreeParser()
Method Detail

init

public void init()

getVariableReferences

public java.util.List getVariableReferences()

compilationUnit

public final void compilationUnit(AST _t)
                           throws RecognitionException
Throws:
RecognitionException

packageDefinition

public final void packageDefinition(AST _t)
                             throws RecognitionException
Throws:
RecognitionException

importDefinition

public final void importDefinition(AST _t)
                            throws RecognitionException
Throws:
RecognitionException

typeDefinition

public final void typeDefinition(AST _t)
                          throws RecognitionException
Throws:
RecognitionException

ruleFile

public final void ruleFile(AST _t)
                    throws RecognitionException
Throws:
RecognitionException

ruleSet

public final void ruleSet(AST _t)
                   throws RecognitionException
Throws:
RecognitionException

rule

public final void rule(AST _t)
                throws RecognitionException
Throws:
RecognitionException

typeSpec

public final void typeSpec(AST _t)
                    throws RecognitionException
Throws:
RecognitionException

whenBlock

public final void whenBlock(AST _t)
                     throws RecognitionException
Throws:
RecognitionException

thenBlock

public final void thenBlock(AST _t)
                     throws RecognitionException
Throws:
RecognitionException

slist

public final void slist(AST _t)
                 throws RecognitionException
Throws:
RecognitionException

identifier

public final void identifier(AST _t)
                      throws RecognitionException
Throws:
RecognitionException

identifierStar

public final void identifierStar(AST _t)
                          throws RecognitionException
Throws:
RecognitionException

modifiers

public final void modifiers(AST _t)
                     throws RecognitionException
Throws:
RecognitionException

extendsClause

public final void extendsClause(AST _t)
                         throws RecognitionException
Throws:
RecognitionException

implementsClause

public final void implementsClause(AST _t)
                            throws RecognitionException
Throws:
RecognitionException

objBlock

public final void objBlock(AST _t)
                    throws RecognitionException
Throws:
RecognitionException

interfaceBlock

public final void interfaceBlock(AST _t)
                          throws RecognitionException
Throws:
RecognitionException

typeSpecArray

public final void typeSpecArray(AST _t)
                         throws RecognitionException
Throws:
RecognitionException

type

public final void type(AST _t)
                throws RecognitionException
Throws:
RecognitionException

builtInType

public final void builtInType(AST _t)
                       throws RecognitionException
Throws:
RecognitionException

modifier

public final void modifier(AST _t)
                    throws RecognitionException
Throws:
RecognitionException

methodDecl

public final void methodDecl(AST _t)
                      throws RecognitionException
Throws:
RecognitionException

variableDef

public final void variableDef(AST _t)
                       throws RecognitionException
Throws:
RecognitionException

ctorDef

public final void ctorDef(AST _t)
                   throws RecognitionException
Throws:
RecognitionException

methodDef

public final void methodDef(AST _t)
                     throws RecognitionException
Throws:
RecognitionException

methodHead

public final void methodHead(AST _t)
                      throws RecognitionException
Throws:
RecognitionException

ctorSList

public final void ctorSList(AST _t)
                     throws RecognitionException
Throws:
RecognitionException

variableDeclarator

public final void variableDeclarator(AST _t)
                              throws RecognitionException
Throws:
RecognitionException

varInitializer

public final void varInitializer(AST _t)
                          throws RecognitionException
Throws:
RecognitionException

parameterDef

public final void parameterDef(AST _t)
                        throws RecognitionException
Throws:
RecognitionException

objectinitializer

public final void objectinitializer(AST _t)
                             throws RecognitionException
Throws:
RecognitionException

initializer

public final void initializer(AST _t)
                       throws RecognitionException
Throws:
RecognitionException

expression

public final void expression(AST _t)
                      throws RecognitionException
Throws:
RecognitionException

arrayInitializer

public final void arrayInitializer(AST _t)
                            throws RecognitionException
Throws:
RecognitionException

throwsClause

public final void throwsClause(AST _t)
                        throws RecognitionException
Throws:
RecognitionException

ctorCall

public final void ctorCall(AST _t)
                    throws RecognitionException
Throws:
RecognitionException

stat

public final void stat(AST _t)
                throws RecognitionException
Throws:
RecognitionException

elist

public final void elist(AST _t)
                 throws RecognitionException
Throws:
RecognitionException

caseGroup

public final void caseGroup(AST _t)
                     throws RecognitionException
Throws:
RecognitionException

tryBlock

public final void tryBlock(AST _t)
                    throws RecognitionException
Throws:
RecognitionException

handler

public final void handler(AST _t)
                   throws RecognitionException
Throws:
RecognitionException

expr

public final void expr(AST _t)
                throws RecognitionException
Throws:
RecognitionException

assignmentCondition

public final void assignmentCondition(AST _t)
                               throws RecognitionException
Throws:
RecognitionException

exprCondition

public final void exprCondition(AST _t)
                         throws RecognitionException
Throws:
RecognitionException

primaryExpression

public final void primaryExpression(AST _t)
                             throws RecognitionException
Throws:
RecognitionException

arrayIndex

public final void arrayIndex(AST _t)
                      throws RecognitionException
Throws:
RecognitionException

newExpression

public final void newExpression(AST _t)
                         throws RecognitionException
Throws:
RecognitionException

constant

public final void constant(AST _t)
                    throws RecognitionException
Throws:
RecognitionException

newArrayDeclarator

public final void newArrayDeclarator(AST _t)
                              throws RecognitionException
Throws:
RecognitionException