Package EDU.purdue.jtb.parser
Class JTBParser
java.lang.Object
EDU.purdue.jtb.parser.JavaCCGlobals
EDU.purdue.jtb.parser.JavaCCParserInternals
EDU.purdue.jtb.parser.JTBParser
- All Implemented Interfaces:
JTBParserConstants
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from class EDU.purdue.jtb.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, production_table, rexprlist, rexps_of_tokens, simple_tokens_table, token_mgr_decls, tokenCount, toolName, toolNames
Fields inherited from interface EDU.purdue.jtb.parser.JTBParserConstants
_DEFAULT, _EOF, _IGNORE_CASE, _JAVACODE, _LOOKAHEAD, _MORE, _PARSER_BEGIN, _PARSER_END, _SKIP, _SPECIAL_TOKEN, _TOKEN, _TOKEN_MGR_DECLS, ABSTRACT, AFTER_EGEN, ANDASSIGN, ASSERT, ASSIGN, BANG, BIT_AND, BIT_OR, BOOLEAN, BREAK, BYTE, CASE, CATCH, CHAR, CHARACTER_LITERAL, CLASS, COLON, COMMA, CONST, CONTINUE, DEC_DIGIT, DECIMAL_EXPONENT, DECIMAL_FLOATING_POINT_LITERAL, DECIMAL_LITERAL, DECR, DEFAULT, DO, DOT, DOUBLE, ELSE, ENUM, EOF, EQ, ESCAPED_CHARACTER, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LETTER, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GOTO, GT, HEX_DIGIT, 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, LONG_LETTER, LPAREN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NATIVE, NE, NEW, NULL, OCTAL_DIGIT, OCTAL_FIRST_DIGIT, OCTAL_LITERAL, ORASSIGN, PACKAGE, PART_LETTER, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REM, REMASSIGN, RETURN, RPAREN, SC_AND, SC_OR, SEMICOLON, SHORT, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRICTFP, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, THIS, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHILE, XOR, XORASSIGN
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor with generated Token Manager.JTBParser
(InputStream stream) Constructor with InputStream.JTBParser
(InputStream stream, String encoding) Constructor with InputStream and supplied encodingConstructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal AccessModifier
final AdditiveExpression
final AllocationExpression
final AndExpression
final Annotation
final AnnotationTypeBody
final ArgumentList
final Arguments
final ArrayDimsAndInits
final ArrayInitializer
final AssertStatement
final AssignmentOperator
final Block
final BlockStatement
final BNFProduction
final BooleanLiteral
final BreakStatement
final CastExpression
final CastLookahead
final CharacterDescriptor
final CharacterList
final ClassOrInterfaceBody
ClassOrInterfaceBody
(boolean isInterface, List<Token> tokens) ClassOrInterfaceBodyDeclaration
(boolean isInterface) final ClassOrInterfaceType
final CompilationUnit
final ComplexRegularExpression
final ConditionalAndExpression
final ConditionalExpression
final ConditionalOrExpression
final ConstructorDeclaration
final ContinueStatement
final DefaultValue
final void
Disable tracing.final DoStatement
final EmptyStatement
final EmptyTypeArguments
final void
Enable tracing.final EnumBody
EnumBody()
final EnumConstant
final EnumDeclaration
final EqualityExpression
final ExclusiveOrExpression
final Expansion
final ExpansionChoices
final ExpansionUnit
final ExpansionUnitTCF
final Expression
Expression
(List<Token> tokens) final ExtendsList
ExtendsList
(boolean isInterface) final FieldDeclaration
final ForInit
ForInit()
final FormalParameter
final FormalParameters
FormalParameters
(List<Token> tokens) final ForStatement
final ForUpdate
Generate ParseException.final Token
Get the next Token.final Token
getToken
(int index) Get the specific Token.final IdentifierAsString
final IfStatement
final ImplementsList
ImplementsList
(boolean isInterface) final ImportDeclaration
final InclusiveOrExpression
final Initializer
final InstanceOfExpression
final IntegerLiteral
final JavaCCInput
JavaCCInput
(Options aOptions) final JavaCCOptions
final JavaCodeProduction
final JavaIdentifier
final LabeledStatement
final Literal
Literal()
final LocalLookahead
final LocalVariableDeclaration
final MarkerAnnotation
final MemberSelector
final MemberValue
final MemberValuePair
final MemberValuePairs
final MethodDeclaration
final MethodDeclarator
final Modifiers
final MultiplicativeExpression
final Name
final NameList
NameList()
final NormalAnnotation
final NullLiteral
final OptionBinding
final PackageDeclaration
final PostfixExpression
final PreDecrementExpression
final PreIncrementExpression
final PrimaryExpression
final PrimaryPrefix
final PrimarySuffix
final PrimitiveType
final Production
final ReferenceType
final RegExprKind
final RegExprSpec
final RegularExpression
final RegularExprProduction
void
Reinitialise.void
ReInit
(InputStream stream) Reinitialise.void
ReInit
(InputStream stream, String encoding) Reinitialise.void
Reinitialise.final RelationalExpression
final ResultType
ResultType
(List<Token> tokens) final ReturnStatement
final RSignedShift
final RUnsignedShift
final ShiftExpression
final SingleMemberAnnotation
final Statement
final StatementExpression
final StatementExpressionList
final StringLiteral
final SwitchLabel
final SwitchStatement
final SynchronizedStatement
final ThrowStatement
final TokenManagerDecls
final boolean
Trace enabled.final TryStatement
final Type
Type()
final TypeArgument
final TypeArguments
final TypeBound
final TypeDeclaration
final TypeParameter
final TypeParameters
final UnaryExpression
final VariableDeclarator
final VariableDeclaratorId
final VariableInitializer
final VariableModifiers
final WhileStatement
final WildcardBounds
Methods inherited from class EDU.purdue.jtb.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, setinsertionpoint
Methods inherited from class EDU.purdue.jtb.parser.JavaCCGlobals
add_escapes, addUnicodeEscapes, bannerLine, createOutputDir, getIdString, getIdString, getToolNames, isGeneratedBy, printLeadingComments, printLeadingComments, printToken, printToken, printTokenList, printTokenOnly, printTokenOnly, printTokenSetup, printTrailingComments, printTrailingComments
-
Field Details
-
opt
-
grammarPackage
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
JTBParser
Constructor with InputStream. -
JTBParser
Constructor with InputStream and supplied encoding -
JTBParser
Constructor. -
JTBParser
Constructor with generated Token Manager.
-
-
Method Details
-
JavaCCInput
- Throws:
ParseException
-
JavaCCOptions
- Throws:
ParseException
-
OptionBinding
- Throws:
ParseException
-
Production
- Throws:
ParseException
-
JavaCodeProduction
- Throws:
ParseException
-
BNFProduction
- Throws:
ParseException
-
AccessModifier
- Throws:
ParseException
-
RegularExprProduction
- Throws:
ParseException
-
TokenManagerDecls
- Throws:
ParseException
-
RegExprKind
- Throws:
ParseException
-
RegExprSpec
- Throws:
ParseException
-
ExpansionChoices
- Throws:
ParseException
-
Expansion
- Throws:
ParseException
-
LocalLookahead
- Throws:
ParseException
-
ExpansionUnit
- Throws:
ParseException
-
ExpansionUnitTCF
- Throws:
ParseException
-
RegularExpression
- Throws:
ParseException
-
ComplexRegularExpressionChoices
public final ComplexRegularExpressionChoices ComplexRegularExpressionChoices(Container c1) throws ParseException - Throws:
ParseException
-
ComplexRegularExpression
- Throws:
ParseException
-
ComplexRegularExpressionUnit
public final ComplexRegularExpressionUnit ComplexRegularExpressionUnit(Container c) throws ParseException - Throws:
ParseException
-
CharacterList
- Throws:
ParseException
-
CharacterDescriptor
- Throws:
ParseException
-
IdentifierAsString
- Throws:
ParseException
-
JavaIdentifier
- 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
public final ClassOrInterfaceBody ClassOrInterfaceBody(boolean isInterface, List<Token> tokens) throws ParseException - Throws:
ParseException
-
ClassOrInterfaceBodyDeclaration
public final ClassOrInterfaceBodyDeclaration ClassOrInterfaceBodyDeclaration(boolean isInterface) throws ParseException - 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
-
ClassOrInterfaceType
- Throws:
ParseException
-
TypeArguments
- Throws:
ParseException
-
EmptyTypeArguments
- 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
-
RSignedShift
- Throws:
ParseException
-
RUnsignedShift
- 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
-
VariableModifiers
- 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
-
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
public final AnnotationTypeMemberDeclaration AnnotationTypeMemberDeclaration() throws ParseException- 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.
-