public class JavaCCParser extends JavaCCParserInternals implements JavaCCParserConstants
Modifier and Type | Class and Description |
---|---|
static class |
JavaCCParser.ModifierSet
Class to hold modifiers.
|
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
JavaCCParserTokenManager |
token_source
Generated Token Manager.
|
bnfproductions, ccol, cline, cu_from_insertion_point_2, cu_name, cu_to_insertion_point_1, cu_to_insertion_point_2, fileName, jj2index, jjtreeGenerated, lexstate_I2S, lexstate_S2I, lookaheadNeeded, maskindex, maskVals, named_tokens_table, names_of_tokens, ordered_named_tokens, origFileName, otherLanguageDeclTokenBeg, otherLanguageDeclTokenEnd, production_table, rexprlist, rexps_of_tokens, simple_tokens_table, token_mgr_decls, tokenCount, toolName, toolNames
_CPPCODE, _DCL_PARSER_BEGIN, _DCL_PARSER_END, _DEF_PARSER_BEGIN, _DEF_PARSER_END, _DEFAULT, _EOF, _IGNORE_CASE, _INC_PARSER_BEGIN, _INC_PARSER_END, _JAVACODE, _LOOKAHEAD, _MORE, _PARSER_BEGIN, _PARSER_END, _SKIP, _SPECIAL_TOKEN, _TOKEN, _TOKEN_MGR_DECLS, ABSTRACT, ACT_TOK, AFTER_EGEN, ANDASSIGN, ASSERT, ASSIGN, BANG, BIT_AND, BIT_OR, BOOLEAN, BREAK, BYTE, CASE, CATCH, CHAR, CHARACTER_LITERAL, CLASS, COLON, COMMA, CONST, CONTINUE, DECIMAL_EXPONENT, DECIMAL_FLOATING_POINT_LITERAL, DECIMAL_LITERAL, DECR, DEFAULT, DO, DOT, DOUBLE, DOUBLECOLON, ELSE, ENUM, EOF, EQ, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GOTO, GT, HEX_LITERAL, HEXADECIMAL_EXPONENT, HEXADECIMAL_FLOATING_POINT_LITERAL, HOOK, IDENTIFIER, IF, IMPLEMENTS, IMPORT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INCR, INSTANCEOF, INT, INTEGER_LITERAL, INTERFACE, LANGLE, LBRACE, LBRACKET, LE, LETTER, LONG, LPAREN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NATIVE, NE, NEW, NULL, OCTAL_LITERAL, ORASSIGN, PACKAGE, PART_LETTER, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RANGLE, RBRACE, RBRACKET, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RUNSIGNEDSHIFT, SC_AND, SC_OR, SEMICOLON, SHORT, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRICTFP, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, TEMPLATE, THIS, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, TYPENAME, VOID, VOLATILE, WHILE, XOR, XORASSIGN
Constructor and Description |
---|
JavaCCParser(java.io.InputStream stream)
Constructor with InputStream.
|
JavaCCParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
JavaCCParser(JavaCCParserTokenManager tm)
Constructor with generated Token Manager.
|
JavaCCParser(java.io.Reader stream)
Constructor.
|
add_inline_regexpr, add_token_manager_decls, addcuname, addproduction, addregexpr, character_descriptor_assign, character_descriptor_assign, compare, hexchar, hexval, initialize, insertionpointerrors, makeTryBlock, production_addexpansion, reInit, remove_escapes_and_quotes, set_initial_cu_token, setinsertionpoint
add_escapes, addUnicodeEscapes, bannerLine, createOutputDir, getIdString, getIdString, getToolNames, isGeneratedBy, printLeadingComments, printLeadingComments, printToken, printToken, printTokenList, printTokenOnly, printTokenOnly, printTokenSetup, printTrailingComments, printTrailingComments, staticOpt
public JavaCCParserTokenManager token_source
public Token token
public Token jj_nt
public JavaCCParser(java.io.InputStream stream)
public JavaCCParser(java.io.InputStream stream, java.lang.String encoding)
public JavaCCParser(java.io.Reader stream)
public JavaCCParser(JavaCCParserTokenManager tm)
protected static boolean isJavaLanguage()
protected static boolean isCppLanguage()
public final void javacc_input() throws ParseException
ParseException
public final void javacc_options() throws ParseException
ParseException
public final void option_binding() throws ParseException
ParseException
public final java.util.List<java.lang.String> StringList() throws ParseException
ParseException
public final void production() throws ParseException
ParseException
public final void javacode_production() throws ParseException
ParseException
public final void cppcode_production() throws ParseException
ParseException
public final void bnf_production() throws ParseException
ParseException
public final void AccessModifier(NormalProduction p) throws ParseException
ParseException
public final void regular_expr_production() throws ParseException
ParseException
public final void token_manager_decls() throws ParseException
ParseException
public final void regexpr_kind(TokenProduction p) throws ParseException
ParseException
public final void regexpr_spec(TokenProduction p) throws ParseException
ParseException
public final void expansion_choices(Container c1) throws ParseException
ParseException
public final void expansion(Container c1) throws ParseException
ParseException
public final Lookahead local_lookahead() throws ParseException
ParseException
public final void expansion_unit(Container c) throws ParseException
ParseException
public final void regular_expression(Container c) throws ParseException
ParseException
public final void complex_regular_expression_choices(Container c1) throws ParseException
ParseException
public final void complex_regular_expression(Container c1) throws ParseException
ParseException
public final void complex_regular_expression_unit(Container c) throws ParseException
ParseException
public final void character_list(Container c1) throws ParseException
ParseException
public final void character_descriptor(Container c) throws ParseException
ParseException
public final java.lang.String identifier() throws ParseException
ParseException
public final Token JavaIdentifier() throws ParseException
ParseException
public final void CompilationUnit() throws ParseException
ParseException
public final void PackageDeclaration() throws ParseException
ParseException
public final void ImportDeclaration() throws ParseException
ParseException
public final int Modifiers() throws ParseException
ParseException
public final void TypeDeclaration() throws ParseException
ParseException
public final void ClassOrInterfaceDeclaration(int modifiers, java.util.List tokens) throws ParseException
ParseException
public final void ExtendsList(boolean isInterface) throws ParseException
ParseException
public final void ImplementsList(boolean isInterface) throws ParseException
ParseException
public final void EnumDeclaration(int modifiers) throws ParseException
ParseException
public final void EnumBody() throws ParseException
ParseException
public final void EnumConstant() throws ParseException
ParseException
public final void TypeParameters() throws ParseException
ParseException
public final void TypeParameter() throws ParseException
ParseException
public final void TypeBound() throws ParseException
ParseException
public final void ClassOrInterfaceBody(boolean isInterface, java.util.List tokens) throws ParseException
ParseException
public final void ClassOrInterfaceBodyDeclaration(boolean isInterface) throws ParseException
ParseException
public final void FieldDeclaration(int modifiers) throws ParseException
ParseException
public final void VariableDeclarator() throws ParseException
ParseException
public final void VariableDeclaratorId() throws ParseException
ParseException
public final void VariableInitializer() throws ParseException
ParseException
public final void ArrayInitializer() throws ParseException
ParseException
public final void MethodDeclaration(int modifiers) throws ParseException
ParseException
public final void MethodDeclarator() throws ParseException
ParseException
public final void FormalParameters(java.util.List tokens) throws ParseException
ParseException
public final void FormalParameter() throws ParseException
ParseException
public final void ConstructorDeclaration() throws ParseException
ParseException
public final void ExplicitConstructorInvocation() throws ParseException
ParseException
public final void Initializer() throws ParseException
ParseException
public final void Type() throws ParseException
ParseException
public final void ReferenceType() throws ParseException
ParseException
public final void Template() throws ParseException
ParseException
public final void TemplateBase() throws ParseException
ParseException
public final void TemplatePack() throws ParseException
ParseException
public final void ClassOrInterfaceType() throws ParseException
ParseException
public final void TypeArguments(java.util.List tokens) throws ParseException
ParseException
public final void TypeArgument() throws ParseException
ParseException
public final void WildcardBounds() throws ParseException
ParseException
public final void PrimitiveType() throws ParseException
ParseException
public final void ResultType(java.util.List tokens) throws ParseException
ParseException
public final void Name(java.util.List tokens) throws ParseException
ParseException
public final void NameList() throws ParseException
ParseException
public final void Expression(java.util.List tokens) throws ParseException
ParseException
public final void AssignmentOperator() throws ParseException
ParseException
public final void ConditionalExpression() throws ParseException
ParseException
public final void ConditionalOrExpression() throws ParseException
ParseException
public final void ConditionalAndExpression() throws ParseException
ParseException
public final void InclusiveOrExpression() throws ParseException
ParseException
public final void ExclusiveOrExpression() throws ParseException
ParseException
public final void AndExpression() throws ParseException
ParseException
public final void EqualityExpression() throws ParseException
ParseException
public final void InstanceOfExpression() throws ParseException
ParseException
public final void RelationalExpression() throws ParseException
ParseException
public final void ShiftExpression() throws ParseException
ParseException
public final void AdditiveExpression() throws ParseException
ParseException
public final void MultiplicativeExpression() throws ParseException
ParseException
public final void UnaryExpression() throws ParseException
ParseException
public final void PreIncrementExpression() throws ParseException
ParseException
public final void PreDecrementExpression() throws ParseException
ParseException
public final void UnaryExpressionNotPlusMinus() throws ParseException
ParseException
public final void CastLookahead() throws ParseException
ParseException
public final void PostfixExpression() throws ParseException
ParseException
public final void CastExpression() throws ParseException
ParseException
public final void PrimaryExpression() throws ParseException
ParseException
public final void MemberSelector() throws ParseException
ParseException
public final void PrimaryPrefix() throws ParseException
ParseException
public final void PrimarySuffix() throws ParseException
ParseException
public final void Literal() throws ParseException
ParseException
public final int IntegerLiteral() throws ParseException
ParseException
public final boolean BooleanLiteral() throws ParseException
ParseException
public final java.lang.String StringLiteral() throws ParseException
ParseException
public final void NullLiteral() throws ParseException
ParseException
public final void Arguments(java.util.List tokens) throws ParseException
ParseException
public final void ArgumentList() throws ParseException
ParseException
public final void AllocationExpression() throws ParseException
ParseException
public final void ArrayDimsAndInits() throws ParseException
ParseException
public final void Statement() throws ParseException
ParseException
public final void AssertStatement() throws ParseException
ParseException
public final void LabeledStatement() throws ParseException
ParseException
public final void Block(java.util.List tokens) throws ParseException
ParseException
public final void BlockStatement() throws ParseException
ParseException
public final void LocalVariableDeclaration() throws ParseException
ParseException
public final void EmptyStatement() throws ParseException
ParseException
public final void StatementExpression() throws ParseException
ParseException
public final void SwitchStatement() throws ParseException
ParseException
public final void SwitchLabel() throws ParseException
ParseException
public final void IfStatement() throws ParseException
ParseException
public final void WhileStatement() throws ParseException
ParseException
public final void DoStatement() throws ParseException
ParseException
public final void ForStatement() throws ParseException
ParseException
public final void ForInit() throws ParseException
ParseException
public final void StatementExpressionList() throws ParseException
ParseException
public final void ForUpdate() throws ParseException
ParseException
public final void BreakStatement() throws ParseException
ParseException
public final void ContinueStatement() throws ParseException
ParseException
public final void ReturnStatement() throws ParseException
ParseException
public final void ThrowStatement() throws ParseException
ParseException
public final void SynchronizedStatement() throws ParseException
ParseException
public final void TryStatement() throws ParseException
ParseException
public final void RUNSIGNEDSHIFT() throws ParseException
ParseException
public final void RSIGNEDSHIFT() throws ParseException
ParseException
public final void Annotation() throws ParseException
ParseException
public final void NormalAnnotation() throws ParseException
ParseException
public final void MarkerAnnotation() throws ParseException
ParseException
public final void SingleMemberAnnotation() throws ParseException
ParseException
public final void MemberValuePairs() throws ParseException
ParseException
public final void MemberValuePair() throws ParseException
ParseException
public final void MemberValue() throws ParseException
ParseException
public final void MemberValueArrayInitializer() throws ParseException
ParseException
public final void AnnotationTypeDeclaration(int modifiers) throws ParseException
ParseException
public final void AnnotationTypeBody() throws ParseException
ParseException
public final void AnnotationTypeMemberDeclaration() throws ParseException
ParseException
public final void DefaultValue() throws ParseException
ParseException
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(JavaCCParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()