Package org.javacc.jjtree
Class JJTreeParser
java.lang.Object
org.javacc.jjtree.JJTreeParser
- All Implemented Interfaces:
JJTreeParserConstants
,JJTreeParserTreeConstants
public class JJTreeParser
extends Object
implements JJTreeParserTreeConstants, JJTreeParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Next token.protected JJTJJTreeParserState
Current token.Generated Token Manager.Fields inherited from interface org.javacc.jjtree.JJTreeParserConstants
_DEFAULT, _EOF, _IGNORE_CASE, _JAVACODE, _LOOKAHEAD, _MORE, _PARSER_BEGIN, _PARSER_END, _SKIP, _SPECIAL_TOKEN, _TOKEN, _TOKEN_MGR_DECLS, ABSTRACT, ANDASSIGN, 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, EOF, EQ, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GOTO, GT, HASH, 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, 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, RBRACE, RBRACKET, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RUNSIGNEDSHIFT, SC_AND, SC_OR, SEMICOLON, SHORT, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, THIS, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHILE, XOR, XORASSIGN
Fields inherited from interface org.javacc.jjtree.JJTreeParserTreeConstants
JJTBNF, JJTBNFACTION, JJTBNFASSIGNMENT, JJTBNFCHOICE, JJTBNFDECLARATION, JJTBNFLOOKAHEAD, JJTBNFNODESCOPE, JJTBNFNONTERMINAL, JJTBNFONEORMORE, JJTBNFPARENTHESIZED, JJTBNFSEQUENCE, JJTBNFTRYBLOCK, JJTBNFZEROORMORE, JJTBNFZEROORONE, JJTCHARDESCRIPTOR, JJTCOMPILATIONUNIT, JJTEXPANSIONNODESCOPE, JJTGRAMMAR, JJTJAVACODE, JJTJAVACODEBODY, JJTNODEDESCRIPTOR, JJTNODEDESCRIPTOREXPRESSION, jjtNodeName, JJTOPTIONBINDING, JJTOPTIONS, JJTPRIMARYEXPRESSION, JJTPRODUCTIONS, JJTRE, JJTRECHARLIST, JJTRECHOICE, JJTREEOF, JJTRENAMED, JJTREONEORMORE, JJTREPARENTHESIZED, JJTREREFERENCE, JJTRESEQUENCE, JJTRESPEC, JJTRESTRINGLITERAL, JJTREZEROORMORE, JJTREZEROORONE, JJTRREPETITIONRANGE, JJTTOKENDECLS, JJTVOID
-
Constructor Summary
ConstructorsConstructorDescriptionJJTreeParser
(InputStream stream) Constructor with InputStream.JJTreeParser
(InputStream stream, String encoding) Constructor with InputStream and supplied encodingJJTreeParser
(Reader stream) Constructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
Block()
final void
final void
final Token
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
Disable tracing.final void
final void
final void
Enable tracing.final void
EnumBody()
final void
final void
final void
final void
final void
final JJTreeNode
final JJTreeNode
final void
final void
final void
final void
final void
ForInit()
final void
final void
final void
final void
Generate ParseException.final Token
Get the next Token.final Token
getToken
(int index) Get the specific Token.final Token
final void
final void
final void
final void
final void
final void
final Token
final void
THE JAVACC GRAMMAR SPECIFICATION STARTS HERE *final void
final void
final String
THE JAVA GRAMMAR SPECIFICATION STARTS HERE *final void
final void
Literal()
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final String
Name()
final void
NameList()
final ASTNodeDescriptor
THE JJTREE PRODUCTIONS START HERE *final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
void
ReInit
(InputStream stream) Reinitialise.void
ReInit
(InputStream stream, String encoding) Reinitialise.void
Reinitialise.void
Reinitialise.final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final Token
final void
final void
final void
final void
Template()
final void
final void
final void
final void
final boolean
Trace enabled.final void
final void
Type()
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
-
Field Details
-
jjtree
-
isJavaLanguage
protected boolean isJavaLanguage -
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
JJTreeParser
Constructor with InputStream. -
JJTreeParser
Constructor with InputStream and supplied encoding -
JJTreeParser
Constructor. -
JJTreeParser
Constructor with generated Token Manager.
-
-
Method Details
-
javacc_input
THE JAVACC GRAMMAR SPECIFICATION STARTS HERE *- Throws:
ParseException
-
javacc_options
- Throws:
ParseException
-
option_binding
- Throws:
ParseException
-
production
- Throws:
ParseException
-
javacode_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
-
node_descriptor
THE JJTREE PRODUCTIONS START HERE *- 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
-
TemplatePack
- Throws:
ParseException
-
TemplateBase
- 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
-
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.
-