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 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, toolNamesFields inherited from interface 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 AccessModifierfinal AdditiveExpressionfinal AllocationExpressionfinal AndExpressionfinal Annotationfinal AnnotationTypeBodyfinal ArgumentListfinal Argumentsfinal ArrayDimsAndInitsfinal ArrayInitializerfinal AssertStatementfinal AssignmentOperatorfinal Blockfinal BlockStatementfinal BNFProductionfinal BooleanLiteralfinal BreakStatementfinal CastExpressionfinal CastLookaheadfinal CharacterDescriptorfinal CharacterListfinal ClassOrInterfaceBodyClassOrInterfaceBody(boolean isInterface, List<Token> tokens) ClassOrInterfaceBodyDeclaration(boolean isInterface) final ClassOrInterfaceTypefinal CompilationUnitfinal ComplexRegularExpressionfinal ConditionalAndExpressionfinal ConditionalExpressionfinal ConditionalOrExpressionfinal ConstructorDeclarationfinal ContinueStatementfinal DefaultValuefinal voidDisable tracing.final DoStatementfinal EmptyStatementfinal EmptyTypeArgumentsfinal voidEnable tracing.final EnumBodyEnumBody()final EnumConstantfinal EnumDeclarationfinal EqualityExpressionfinal ExclusiveOrExpressionfinal Expansionfinal ExpansionChoicesfinal ExpansionUnitfinal ExpansionUnitTCFfinal ExpressionExpression(List<Token> tokens) final ExtendsListExtendsList(boolean isInterface) final FieldDeclarationfinal ForInitForInit()final FormalParameterfinal FormalParametersFormalParameters(List<Token> tokens) final ForStatementfinal ForUpdateGenerate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final IdentifierAsStringfinal IfStatementfinal ImplementsListImplementsList(boolean isInterface) final ImportDeclarationfinal InclusiveOrExpressionfinal Initializerfinal InstanceOfExpressionfinal IntegerLiteralfinal JavaCCInputJavaCCInput(Options aOptions) final JavaCCOptionsfinal JavaCodeProductionfinal JavaIdentifierfinal LabeledStatementfinal LiteralLiteral()final LocalLookaheadfinal LocalVariableDeclarationfinal MarkerAnnotationfinal MemberSelectorfinal MemberValuefinal MemberValuePairfinal MemberValuePairsfinal MethodDeclarationfinal MethodDeclaratorfinal Modifiersfinal MultiplicativeExpressionfinal Namefinal NameListNameList()final NormalAnnotationfinal NullLiteralfinal OptionBindingfinal PackageDeclarationfinal PostfixExpressionfinal PreDecrementExpressionfinal PreIncrementExpressionfinal PrimaryExpressionfinal PrimaryPrefixfinal PrimarySuffixfinal PrimitiveTypefinal Productionfinal ReferenceTypefinal RegExprKindfinal RegExprSpecfinal RegularExpressionfinal RegularExprProductionvoidReinitialise.voidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.final RelationalExpressionfinal ResultTypeResultType(List<Token> tokens) final ReturnStatementfinal RSignedShiftfinal RUnsignedShiftfinal ShiftExpressionfinal SingleMemberAnnotationfinal Statementfinal StatementExpressionfinal StatementExpressionListfinal StringLiteralfinal SwitchLabelfinal SwitchStatementfinal SynchronizedStatementfinal ThrowStatementfinal TokenManagerDeclsfinal booleanTrace enabled.final TryStatementfinal TypeType()final TypeArgumentfinal TypeArgumentsfinal TypeBoundfinal TypeDeclarationfinal TypeParameterfinal TypeParametersfinal UnaryExpressionfinal VariableDeclaratorfinal VariableDeclaratorIdfinal VariableInitializerfinal VariableModifiersfinal WhileStatementfinal WildcardBoundsMethods inherited from class 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 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.
-