Package org.javacc.parser
Class JavaCCParser
java.lang.Object
org.javacc.parser.JavaCCGlobals
org.javacc.parser.JavaCCParserInternals
org.javacc.parser.JavaCCParser
- All Implemented Interfaces:
JavaCCParserConstants
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classClass to hold modifiers. -
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from class org.javacc.parser.JavaCCGlobals
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, toolNamesFields inherited from interface org.javacc.parser.JavaCCParserConstants
_CPPCODE, _DEFAULT, _EOF, _IGNORE_CASE, _JAVACODE, _LOOKAHEAD, _MORE, _PARSER_BEGIN, _PARSER_END, _SKIP, _SPECIAL_TOKEN, _TOKEN, _TOKEN_MGR_DECLS, ABSTRACT, ACT_TOK, AFTER_EGEN, ANDASSIGN, ASSERT, ASSIGN, BANG, BINARY_LITERAL, 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 Summary
ConstructorsConstructorDescriptionJavaCCParser(InputStream stream) Constructor with InputStream.JavaCCParser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingJavaCCParser(Reader stream) Constructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidAnnotationTypeDeclaration(int modifiers) final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal booleanfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidClassOrInterfaceBody(boolean isInterface, List tokens) final voidClassOrInterfaceBodyDeclaration(boolean isInterface) final voidClassOrInterfaceDeclaration(int modifiers, List tokens) final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidDisable tracing.final voidfinal voidfinal voidEnable tracing.final voidEnumBody()final voidfinal voidEnumDeclaration(int modifiers) final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidExpression(List tokens) final voidExtendsList(boolean isInterface) final voidFieldDeclaration(int modifiers) final voidForInit()final voidfinal voidFormalParameters(List tokens) final voidfinal voidGenerate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final Stringfinal voidfinal voidImplementsList(boolean isInterface) final voidfinal voidfinal voidfinal voidfinal intprotected static booleanprotected static booleanfinal voidTHE JAVACC GRAMMAR SPECIFICATION STARTS HERE *final voidfinal voidfinal TokenTHE JAVA GRAMMAR SPECIFICATION STARTS HERE *final voidfinal voidLiteral()final Lookaheadfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidMethodDeclaration(int modifiers) final voidfinal intfinal voidfinal voidfinal voidNameList()final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidvoidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.final voidfinal voidfinal voidResultType(List tokens) final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal Stringfinal voidfinal voidfinal voidfinal voidTemplate()final voidfinal voidfinal voidfinal voidfinal booleanTrace enabled.final voidfinal voidType()final voidfinal voidTypeArguments(List tokens) final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidMethods inherited from class org.javacc.parser.JavaCCParserInternals
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, setinsertionpointMethods inherited from class org.javacc.parser.JavaCCGlobals
add_escapes, addUnicodeEscapes, bannerLine, createOutputDir, getIdString, getIdString, getToolNames, isGeneratedBy, printLeadingComments, printLeadingComments, printToken, printToken, printTokenList, printTokenOnly, printTokenOnly, printTokenSetup, printTrailingComments, printTrailingComments, staticOpt
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
JavaCCParser
Constructor with InputStream. -
JavaCCParser
Constructor with InputStream and supplied encoding -
JavaCCParser
Constructor. -
JavaCCParser
Constructor with generated Token Manager.
-
-
Method Details
-
isJavaLanguage
protected static boolean isJavaLanguage() -
isCppLanguage
protected static boolean isCppLanguage() -
javacc_input
THE JAVACC GRAMMAR SPECIFICATION STARTS HERE *- Throws:
ParseException
-
javacc_options
- Throws:
ParseException
-
option_binding
- Throws:
ParseException
-
StringList
- Throws:
ParseException
-
production
- Throws:
ParseException
-
javacode_production
- Throws:
ParseException
-
cppcode_production
- Throws:
ParseException
-
bnf_production
- Throws:
ParseException
-
AccessModifier
- Throws:
ParseException
-
regular_expr_production
- Throws:
ParseException
-
token_manager_decls
- Throws:
ParseException
-
regexpr_kind
- Throws:
ParseException
-
regexpr_spec
- Throws:
ParseException
-
expansion_choices
- Throws:
ParseException
-
expansion
- Throws:
ParseException
-
local_lookahead
- Throws:
ParseException
-
expansion_unit
- Throws:
ParseException
-
regular_expression
- Throws:
ParseException
-
complex_regular_expression_choices
- Throws:
ParseException
-
complex_regular_expression
- Throws:
ParseException
-
complex_regular_expression_unit
- Throws:
ParseException
-
character_list
- Throws:
ParseException
-
character_descriptor
- Throws:
ParseException
-
identifier
- Throws:
ParseException
-
JavaIdentifier
THE JAVA GRAMMAR SPECIFICATION STARTS HERE *- Throws:
ParseException
-
CompilationUnit
- Throws:
ParseException
-
PackageDeclaration
- Throws:
ParseException
-
ImportDeclaration
- Throws:
ParseException
-
Modifiers
- Throws:
ParseException
-
TypeDeclaration
- Throws:
ParseException
-
ClassOrInterfaceDeclaration
- Throws:
ParseException
-
ExtendsList
- Throws:
ParseException
-
ImplementsList
- Throws:
ParseException
-
EnumDeclaration
- Throws:
ParseException
-
EnumBody
- Throws:
ParseException
-
EnumConstant
- Throws:
ParseException
-
TypeParameters
- Throws:
ParseException
-
TypeParameter
- Throws:
ParseException
-
TypeBound
- Throws:
ParseException
-
ClassOrInterfaceBody
- Throws:
ParseException
-
ClassOrInterfaceBodyDeclaration
- Throws:
ParseException
-
FieldDeclaration
- Throws:
ParseException
-
VariableDeclarator
- Throws:
ParseException
-
VariableDeclaratorId
- Throws:
ParseException
-
VariableInitializer
- Throws:
ParseException
-
ArrayInitializer
- Throws:
ParseException
-
MethodDeclaration
- Throws:
ParseException
-
MethodDeclarator
- Throws:
ParseException
-
FormalParameters
- Throws:
ParseException
-
FormalParameter
- Throws:
ParseException
-
ConstructorDeclaration
- Throws:
ParseException
-
ExplicitConstructorInvocation
- Throws:
ParseException
-
Initializer
- Throws:
ParseException
-
Type
- Throws:
ParseException
-
ReferenceType
- Throws:
ParseException
-
Template
- Throws:
ParseException
-
TemplateBase
- Throws:
ParseException
-
TemplatePack
- Throws:
ParseException
-
ClassOrInterfaceType
- Throws:
ParseException
-
TypeArguments
- Throws:
ParseException
-
TypeArgument
- Throws:
ParseException
-
WildcardBounds
- Throws:
ParseException
-
PrimitiveType
- Throws:
ParseException
-
ResultType
- Throws:
ParseException
-
Name
- Throws:
ParseException
-
NameList
- Throws:
ParseException
-
Expression
- Throws:
ParseException
-
AssignmentOperator
- Throws:
ParseException
-
ConditionalExpression
- Throws:
ParseException
-
ConditionalOrExpression
- Throws:
ParseException
-
ConditionalAndExpression
- Throws:
ParseException
-
InclusiveOrExpression
- Throws:
ParseException
-
ExclusiveOrExpression
- Throws:
ParseException
-
AndExpression
- Throws:
ParseException
-
EqualityExpression
- Throws:
ParseException
-
InstanceOfExpression
- Throws:
ParseException
-
RelationalExpression
- Throws:
ParseException
-
ShiftExpression
- Throws:
ParseException
-
AdditiveExpression
- Throws:
ParseException
-
MultiplicativeExpression
- Throws:
ParseException
-
UnaryExpression
- Throws:
ParseException
-
PreIncrementExpression
- Throws:
ParseException
-
PreDecrementExpression
- Throws:
ParseException
-
UnaryExpressionNotPlusMinus
- Throws:
ParseException
-
CastLookahead
- Throws:
ParseException
-
PostfixExpression
- Throws:
ParseException
-
CastExpression
- Throws:
ParseException
-
PrimaryExpression
- Throws:
ParseException
-
MemberSelector
- Throws:
ParseException
-
PrimaryPrefix
- Throws:
ParseException
-
PrimarySuffix
- Throws:
ParseException
-
Literal
- Throws:
ParseException
-
IntegerLiteral
- Throws:
ParseException
-
BooleanLiteral
- Throws:
ParseException
-
StringLiteral
- Throws:
ParseException
-
NullLiteral
- Throws:
ParseException
-
Arguments
- Throws:
ParseException
-
ArgumentList
- Throws:
ParseException
-
AllocationExpression
- Throws:
ParseException
-
ArrayDimsAndInits
- Throws:
ParseException
-
Statement
- Throws:
ParseException
-
AssertStatement
- Throws:
ParseException
-
LabeledStatement
- Throws:
ParseException
-
Block
- Throws:
ParseException
-
BlockStatement
- Throws:
ParseException
-
LocalVariableDeclaration
- Throws:
ParseException
-
EmptyStatement
- Throws:
ParseException
-
StatementExpression
- Throws:
ParseException
-
SwitchStatement
- Throws:
ParseException
-
SwitchLabel
- Throws:
ParseException
-
IfStatement
- Throws:
ParseException
-
WhileStatement
- Throws:
ParseException
-
DoStatement
- Throws:
ParseException
-
ForStatement
- Throws:
ParseException
-
ForInit
- Throws:
ParseException
-
StatementExpressionList
- Throws:
ParseException
-
ForUpdate
- Throws:
ParseException
-
BreakStatement
- Throws:
ParseException
-
ContinueStatement
- Throws:
ParseException
-
ReturnStatement
- Throws:
ParseException
-
ThrowStatement
- Throws:
ParseException
-
SynchronizedStatement
- Throws:
ParseException
-
ResourceDeclaration
- Throws:
ParseException
-
CatchParameter
- Throws:
ParseException
-
TryStatement
- Throws:
ParseException
-
RUNSIGNEDSHIFT
- Throws:
ParseException
-
RSIGNEDSHIFT
- Throws:
ParseException
-
Annotation
- Throws:
ParseException
-
NormalAnnotation
- Throws:
ParseException
-
MarkerAnnotation
- Throws:
ParseException
-
SingleMemberAnnotation
- Throws:
ParseException
-
MemberValuePairs
- Throws:
ParseException
-
MemberValuePair
- Throws:
ParseException
-
MemberValue
- Throws:
ParseException
-
MemberValueArrayInitializer
- Throws:
ParseException
-
AnnotationTypeDeclaration
- Throws:
ParseException
-
AnnotationTypeBody
- Throws:
ParseException
-
AnnotationTypeMemberDeclaration
- Throws:
ParseException
-
DefaultValue
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
trace_enabled
public final boolean trace_enabled()Trace enabled. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-