org.drools.semantics.java.parser
Class JavaTreeParser
java.lang.Object
|
+--antlr.TreeParser
|
+--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
- Author:
- 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
Fields inherited from class antlr.TreeParser |
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth |
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 |
Methods inherited from class antlr.TreeParser |
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, reportError, reportError, reportWarning, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_tokenNames
public static final java.lang.String[] _tokenNames
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0
_tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_1
JavaTreeParser
public JavaTreeParser()
init
public void init()
getVariableReferences
public java.util.List getVariableReferences()
compilationUnit
public final void compilationUnit(antlr.collections.AST _t)
throws antlr.RecognitionException
packageDefinition
public final void packageDefinition(antlr.collections.AST _t)
throws antlr.RecognitionException
importDefinition
public final void importDefinition(antlr.collections.AST _t)
throws antlr.RecognitionException
typeDefinition
public final void typeDefinition(antlr.collections.AST _t)
throws antlr.RecognitionException
ruleFile
public final void ruleFile(antlr.collections.AST _t)
throws antlr.RecognitionException
ruleSet
public final void ruleSet(antlr.collections.AST _t)
throws antlr.RecognitionException
rule
public final void rule(antlr.collections.AST _t)
throws antlr.RecognitionException
typeSpec
public final void typeSpec(antlr.collections.AST _t)
throws antlr.RecognitionException
whenBlock
public final void whenBlock(antlr.collections.AST _t)
throws antlr.RecognitionException
thenBlock
public final void thenBlock(antlr.collections.AST _t)
throws antlr.RecognitionException
slist
public final void slist(antlr.collections.AST _t)
throws antlr.RecognitionException
identifier
public final void identifier(antlr.collections.AST _t)
throws antlr.RecognitionException
identifierStar
public final void identifierStar(antlr.collections.AST _t)
throws antlr.RecognitionException
modifiers
public final void modifiers(antlr.collections.AST _t)
throws antlr.RecognitionException
extendsClause
public final void extendsClause(antlr.collections.AST _t)
throws antlr.RecognitionException
implementsClause
public final void implementsClause(antlr.collections.AST _t)
throws antlr.RecognitionException
objBlock
public final void objBlock(antlr.collections.AST _t)
throws antlr.RecognitionException
interfaceBlock
public final void interfaceBlock(antlr.collections.AST _t)
throws antlr.RecognitionException
typeSpecArray
public final void typeSpecArray(antlr.collections.AST _t)
throws antlr.RecognitionException
type
public final void type(antlr.collections.AST _t)
throws antlr.RecognitionException
builtInType
public final void builtInType(antlr.collections.AST _t)
throws antlr.RecognitionException
modifier
public final void modifier(antlr.collections.AST _t)
throws antlr.RecognitionException
methodDecl
public final void methodDecl(antlr.collections.AST _t)
throws antlr.RecognitionException
variableDef
public final void variableDef(antlr.collections.AST _t)
throws antlr.RecognitionException
ctorDef
public final void ctorDef(antlr.collections.AST _t)
throws antlr.RecognitionException
methodDef
public final void methodDef(antlr.collections.AST _t)
throws antlr.RecognitionException
methodHead
public final void methodHead(antlr.collections.AST _t)
throws antlr.RecognitionException
ctorSList
public final void ctorSList(antlr.collections.AST _t)
throws antlr.RecognitionException
variableDeclarator
public final void variableDeclarator(antlr.collections.AST _t)
throws antlr.RecognitionException
varInitializer
public final void varInitializer(antlr.collections.AST _t)
throws antlr.RecognitionException
parameterDef
public final void parameterDef(antlr.collections.AST _t)
throws antlr.RecognitionException
objectinitializer
public final void objectinitializer(antlr.collections.AST _t)
throws antlr.RecognitionException
initializer
public final void initializer(antlr.collections.AST _t)
throws antlr.RecognitionException
expression
public final void expression(antlr.collections.AST _t)
throws antlr.RecognitionException
arrayInitializer
public final void arrayInitializer(antlr.collections.AST _t)
throws antlr.RecognitionException
throwsClause
public final void throwsClause(antlr.collections.AST _t)
throws antlr.RecognitionException
ctorCall
public final void ctorCall(antlr.collections.AST _t)
throws antlr.RecognitionException
stat
public final void stat(antlr.collections.AST _t)
throws antlr.RecognitionException
elist
public final void elist(antlr.collections.AST _t)
throws antlr.RecognitionException
caseGroup
public final void caseGroup(antlr.collections.AST _t)
throws antlr.RecognitionException
tryBlock
public final void tryBlock(antlr.collections.AST _t)
throws antlr.RecognitionException
handler
public final void handler(antlr.collections.AST _t)
throws antlr.RecognitionException
expr
public final void expr(antlr.collections.AST _t)
throws antlr.RecognitionException
assignmentCondition
public final void assignmentCondition(antlr.collections.AST _t)
throws antlr.RecognitionException
exprCondition
public final void exprCondition(antlr.collections.AST _t)
throws antlr.RecognitionException
primaryExpression
public final void primaryExpression(antlr.collections.AST _t)
throws antlr.RecognitionException
arrayIndex
public final void arrayIndex(antlr.collections.AST _t)
throws antlr.RecognitionException
newExpression
public final void newExpression(antlr.collections.AST _t)
throws antlr.RecognitionException
constant
public final void constant(antlr.collections.AST _t)
throws antlr.RecognitionException
newArrayDeclarator
public final void newArrayDeclarator(antlr.collections.AST _t)
throws antlr.RecognitionException
Copyright © 2001-2003 The Werken Company. All Rights Reserved.