public class JavaRecognizer extends LLkParser implements JavaTokenTypes
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
ABSTRACT, ANNOTATION, ANNOTATION_ARRAY_INIT, ANNOTATION_DEF, ANNOTATION_FIELD_DEF, ANNOTATION_MEMBER_VALUE_PAIR, ANNOTATIONS, ARRAY_DECLARATOR, ARRAY_INIT, ASSIGN, AT, BAND, BAND_ASSIGN, BLOCK, BNOT, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, CASE_GROUP, CHAR_LITERAL, CLASS_DEF, COLON, COMMA, CTOR_CALL, DEC, DIV, DIV_ASSIGN, DOT, ELIST, EMPTY_STAT, ENUM_CONSTANT_DEF, ENUM_DEF, EOF, EQUAL, ESC, EXPONENT, EXPR, EXTENDS_CLAUSE, FINAL, FLOAT_SUFFIX, FOR_CONDITION, FOR_EACH_CLAUSE, 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_assert, 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_enum, 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_IMPORT, STATIC_INIT, STRICTFP, STRING_LITERAL, SUPER_CTOR_CALL, TRIPLE_DOT, TYPE, TYPE_ARGUMENT, TYPE_ARGUMENTS, TYPE_LOWER_BOUNDS, TYPE_PARAMETER, TYPE_PARAMETERS, TYPE_UPPER_BOUNDS, TYPECAST, UNARY_MINUS, UNARY_PLUS, VARIABLE_DEF, VARIABLE_PARAMETER_DEF, VOCAB, WILDCARD_TYPE, WS
Modifier | Constructor and Description |
---|---|
|
JavaRecognizer(ParserSharedInputState state) |
|
JavaRecognizer(TokenBuffer tokenBuf) |
protected |
JavaRecognizer(TokenBuffer tokenBuf,
int k) |
|
JavaRecognizer(TokenStream lexer) |
protected |
JavaRecognizer(TokenStream lexer,
int k) |
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
public static final String[] _tokenNames
public static final BitSet _tokenSet_0
public static final BitSet _tokenSet_1
public static final BitSet _tokenSet_2
public static final BitSet _tokenSet_3
public static final BitSet _tokenSet_4
public static final BitSet _tokenSet_5
public static final BitSet _tokenSet_6
public static final BitSet _tokenSet_7
public static final BitSet _tokenSet_8
public static final BitSet _tokenSet_9
public static final BitSet _tokenSet_10
public static final BitSet _tokenSet_11
public static final BitSet _tokenSet_12
public static final BitSet _tokenSet_13
public static final BitSet _tokenSet_14
public static final BitSet _tokenSet_15
public static final BitSet _tokenSet_16
public static final BitSet _tokenSet_17
public static final BitSet _tokenSet_18
public static final BitSet _tokenSet_19
public static final BitSet _tokenSet_20
public static final BitSet _tokenSet_21
public static final BitSet _tokenSet_22
public static final BitSet _tokenSet_23
public static final BitSet _tokenSet_24
public static final BitSet _tokenSet_25
public static final BitSet _tokenSet_26
public static final BitSet _tokenSet_27
public static final BitSet _tokenSet_28
public static final BitSet _tokenSet_29
public static final BitSet _tokenSet_30
public static final BitSet _tokenSet_31
public static final BitSet _tokenSet_32
public static final BitSet _tokenSet_33
public static final BitSet _tokenSet_34
public static final BitSet _tokenSet_35
public static final BitSet _tokenSet_36
public static final BitSet _tokenSet_37
public static final BitSet _tokenSet_38
public static final BitSet _tokenSet_39
public static final BitSet _tokenSet_40
public static final BitSet _tokenSet_41
public static final BitSet _tokenSet_42
public static final BitSet _tokenSet_43
public static final BitSet _tokenSet_44
public static final BitSet _tokenSet_45
public static final BitSet _tokenSet_46
public static final BitSet _tokenSet_47
public static final BitSet _tokenSet_48
public static final BitSet _tokenSet_49
protected JavaRecognizer(TokenBuffer tokenBuf, int k)
public JavaRecognizer(TokenBuffer tokenBuf)
protected JavaRecognizer(TokenStream lexer, int k)
public JavaRecognizer(TokenStream lexer)
public JavaRecognizer(ParserSharedInputState state)
public static JavaRecognizer make(JavaLexer lexer)
public static JavaRecognizer make(InputStream in)
public static JavaRecognizer make(Reader in)
public static JavaRecognizer make(InputBuffer in)
public static JavaRecognizer make(LexerSharedInputState in)
public JavaLexer getLexer()
public void setFilename(String f)
setFilename
in class Parser
public void setSourceBuffer(SourceBuffer sourceBuffer)
public AST create(int type, String txt, Token first, Token last)
public final void compilationUnit() throws RecognitionException, TokenStreamException
public final void annotations() throws RecognitionException, TokenStreamException
public final void packageDefinition() throws RecognitionException, TokenStreamException
public final void importDefinition() throws RecognitionException, TokenStreamException
public final void typeDefinition() throws RecognitionException, TokenStreamException
public final void identifier() throws RecognitionException, TokenStreamException
public final void identifierStar() throws RecognitionException, TokenStreamException
public final void modifiers() throws RecognitionException, TokenStreamException
protected final void typeDefinitionInternal(AST mods) throws RecognitionException, TokenStreamException
public final void classDefinition(AST modifiers) throws RecognitionException, TokenStreamException
public final void interfaceDefinition(AST modifiers) throws RecognitionException, TokenStreamException
public final void enumDefinition(AST modifiers) throws RecognitionException, TokenStreamException
public final void annotationDefinition(AST modifiers) throws RecognitionException, TokenStreamException
public final void declaration() throws RecognitionException, TokenStreamException
public final void typeSpec(boolean addImagNode) throws RecognitionException, TokenStreamException
public final void variableDefinitions(AST mods, AST t) throws RecognitionException, TokenStreamException
public final void classTypeSpec(boolean addImagNode) throws RecognitionException, TokenStreamException
public final void builtInTypeSpec(boolean addImagNode) throws RecognitionException, TokenStreamException
public final void classOrInterfaceType(boolean addImagNode) throws RecognitionException, TokenStreamException
public final void typeArguments() throws RecognitionException, TokenStreamException
public final void typeArgumentsDiamond() throws RecognitionException, TokenStreamException
public final void typeArgumentSpec() throws RecognitionException, TokenStreamException
public final void builtInTypeArraySpec(boolean addImagNode) throws RecognitionException, TokenStreamException
public final void typeArgument() throws RecognitionException, TokenStreamException
public final void wildcardType() throws RecognitionException, TokenStreamException
public final void typeArgumentBounds() throws RecognitionException, TokenStreamException
protected final void typeArgumentsOrParametersEnd() throws RecognitionException, TokenStreamException
public final void builtInType() throws RecognitionException, TokenStreamException
public final void type() throws RecognitionException, TokenStreamException
public final void modifier() throws RecognitionException, TokenStreamException
public final void annotation() throws RecognitionException, TokenStreamException
public final void annotationArguments() throws RecognitionException, TokenStreamException
public final void annotationMemberValueInitializer() throws RecognitionException, TokenStreamException
public final void anntotationMemberValuePairs() throws RecognitionException, TokenStreamException
public final void annotationMemberValuePair() throws RecognitionException, TokenStreamException
public final void conditionalExpression() throws RecognitionException, TokenStreamException
public final void annotationMemberArrayInitializer() throws RecognitionException, TokenStreamException
public final void annotationMemberArrayValueInitializer() throws RecognitionException, TokenStreamException
public final void superClassClause() throws RecognitionException, TokenStreamException
public final void typeParameters() throws RecognitionException, TokenStreamException
public final void implementsClause() throws RecognitionException, TokenStreamException
public final void classBlock() throws RecognitionException, TokenStreamException
public final void interfaceExtends() throws RecognitionException, TokenStreamException
public final void interfaceBlock() throws RecognitionException, TokenStreamException
public final void enumBlock() throws RecognitionException, TokenStreamException
public final void annotationBlock() throws RecognitionException, TokenStreamException
public final void typeParameter() throws RecognitionException, TokenStreamException
public final void typeParameterBounds() throws RecognitionException, TokenStreamException
public final void classField() throws RecognitionException, TokenStreamException
public final void interfaceField() throws RecognitionException, TokenStreamException
public final void annotationField() throws RecognitionException, TokenStreamException
public final void enumConstant() throws RecognitionException, TokenStreamException
public final void declaratorBrackets(AST typ) throws RecognitionException, TokenStreamException
public final void argList() throws RecognitionException, TokenStreamException
public final void enumConstantBlock() throws RecognitionException, TokenStreamException
public final void enumConstantField() throws RecognitionException, TokenStreamException
public final void parameterDeclarationList() throws RecognitionException, TokenStreamException
public final void throwsClause() throws RecognitionException, TokenStreamException
public final void compoundStatement() throws RecognitionException, TokenStreamException
public final void ctorHead() throws RecognitionException, TokenStreamException
public final void constructorBody() throws RecognitionException, TokenStreamException
public final void explicitConstructorInvocation() throws RecognitionException, TokenStreamException
public final void statement() throws RecognitionException, TokenStreamException
public final void variableDeclarator(AST mods, AST t) throws RecognitionException, TokenStreamException
public final void varInitializer() throws RecognitionException, TokenStreamException
public final void initializer() throws RecognitionException, TokenStreamException
public final void arrayInitializer() throws RecognitionException, TokenStreamException
public final void expression() throws RecognitionException, TokenStreamException
public final void parameterDeclaration() throws RecognitionException, TokenStreamException
public final void variableLengthParameterDeclaration() throws RecognitionException, TokenStreamException
public final void parameterModifier() throws RecognitionException, TokenStreamException
public final void forStatement() throws RecognitionException, TokenStreamException
public final void casesGroup() throws RecognitionException, TokenStreamException
public final void tryBlock() throws RecognitionException, TokenStreamException
public final void forInit() throws RecognitionException, TokenStreamException
public final void traditionalForClause() throws RecognitionException, TokenStreamException
public final void forEachClause() throws RecognitionException, TokenStreamException
public final void forCond() throws RecognitionException, TokenStreamException
public final void forIter() throws RecognitionException, TokenStreamException
public final void aCase() throws RecognitionException, TokenStreamException
public final void caseSList() throws RecognitionException, TokenStreamException
public final void expressionList() throws RecognitionException, TokenStreamException
public final void handler() throws RecognitionException, TokenStreamException
public final void finallyClause() throws RecognitionException, TokenStreamException
public final void assignmentExpression() throws RecognitionException, TokenStreamException
public final void logicalOrExpression() throws RecognitionException, TokenStreamException
public final void logicalAndExpression() throws RecognitionException, TokenStreamException
public final void inclusiveOrExpression() throws RecognitionException, TokenStreamException
public final void exclusiveOrExpression() throws RecognitionException, TokenStreamException
public final void andExpression() throws RecognitionException, TokenStreamException
public final void equalityExpression() throws RecognitionException, TokenStreamException
public final void relationalExpression() throws RecognitionException, TokenStreamException
public final void shiftExpression() throws RecognitionException, TokenStreamException
public final void additiveExpression() throws RecognitionException, TokenStreamException
public final void multiplicativeExpression() throws RecognitionException, TokenStreamException
public final void unaryExpression() throws RecognitionException, TokenStreamException
public final void unaryExpressionNotPlusMinus() throws RecognitionException, TokenStreamException
public final void postfixExpression() throws RecognitionException, TokenStreamException
public final void primaryExpression() throws RecognitionException, TokenStreamException
public final void newExpression() throws RecognitionException, TokenStreamException
public final void identPrimary() throws RecognitionException, TokenStreamException
public final void constant() throws RecognitionException, TokenStreamException
public final void newArrayDeclarator() throws RecognitionException, TokenStreamException
protected void buildTokenTypeASTClassMap()