EDU.purdue.jtb.parser
Class JTBParser
java.lang.Object
EDU.purdue.jtb.parser.JTBParser
- All Implemented Interfaces:
- JTBParserConstants
public class JTBParser
- extends java.lang.Object
- implements JTBParserConstants
Fields inherited from interface EDU.purdue.jtb.parser.JTBParserConstants |
_DEFAULT, ABSTRACT, ANDASSIGN, ASSIGN, BANG, BIT_AND, BIT_OR, BOOLEAN, BREAK, BYTE, CASE, CATCH, CHAR, CHARACTER_LITERAL, CLASS, COLON, COMMA, CONST, CONTINUE, DECIMAL_LITERAL, DECR, DEFAULT, DIGIT, DO, DOT, DOUBLE, ELSE, EOF, EOF_TK, EQ, EXPONENT, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GOTO, GT, HEX_LITERAL, HOOK, IDENTIFIER, IF, IGNORE_CASE_TK, IMPLEMENTS, IMPORT, INCR, INSTANCEOF, INT, INTEGER_LITERAL, INTERFACE, JAVACODE_TK, LBRACE, LBRACKET, LE, LETTER, LONG, LOOKAHEAD_TK, LPAREN, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, MORE_TK, MULTI_LINE_COMMENT, NATIVE, NE, NEW, NULL, OCTAL_LITERAL, OPTIONS_TK, ORASSIGN, PACKAGE, PARSER_BEGIN_TK, PARSER_END_TK, PLUS, PLUSASSIGN, POUND, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SEMICOLON, SHORT, SINGLE_LINE_COMMENT, SKIP_TK, SLASH, SLASHASSIGN, SPECIAL_TOKEN_TK, STAR, STARASSIGN, STATIC, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, THIS, THROW, THROWS, TILDE, TOKEN_MGR_DECLS_TK, TOKEN_TK, tokenImage, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHILE, XOR, XORASSIGN |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public static JTBParserTokenManager token_source
token
public static Token token
jj_nt
public static Token jj_nt
lookingAhead
public static boolean lookingAhead
JTBParser
public JTBParser(java.io.InputStream stream)
JTBParser
public JTBParser(java.io.Reader stream)
JTBParser
public JTBParser(JTBParserTokenManager tm)
CompilationUnit
public static final CompilationUnit CompilationUnit()
throws ParseException
- Throws:
ParseException
PackageDeclaration
public static final PackageDeclaration PackageDeclaration()
throws ParseException
- Throws:
ParseException
ImportDeclaration
public static final ImportDeclaration ImportDeclaration()
throws ParseException
- Throws:
ParseException
TypeDeclaration
public static final TypeDeclaration TypeDeclaration()
throws ParseException
- Throws:
ParseException
ClassDeclaration
public static final ClassDeclaration ClassDeclaration()
throws ParseException
- Throws:
ParseException
UnmodifiedClassDeclaration
public static final UnmodifiedClassDeclaration UnmodifiedClassDeclaration()
throws ParseException
- Throws:
ParseException
ClassBody
public static final ClassBody ClassBody()
throws ParseException
- Throws:
ParseException
NestedClassDeclaration
public static final NestedClassDeclaration NestedClassDeclaration()
throws ParseException
- Throws:
ParseException
ClassBodyDeclaration
public static final ClassBodyDeclaration ClassBodyDeclaration()
throws ParseException
- Throws:
ParseException
MethodDeclarationLookahead
public static final MethodDeclarationLookahead MethodDeclarationLookahead()
throws ParseException
- Throws:
ParseException
InterfaceDeclaration
public static final InterfaceDeclaration InterfaceDeclaration()
throws ParseException
- Throws:
ParseException
NestedInterfaceDeclaration
public static final NestedInterfaceDeclaration NestedInterfaceDeclaration()
throws ParseException
- Throws:
ParseException
UnmodifiedInterfaceDeclaration
public static final UnmodifiedInterfaceDeclaration UnmodifiedInterfaceDeclaration()
throws ParseException
- Throws:
ParseException
InterfaceMemberDeclaration
public static final InterfaceMemberDeclaration InterfaceMemberDeclaration()
throws ParseException
- Throws:
ParseException
FieldDeclaration
public static final FieldDeclaration FieldDeclaration()
throws ParseException
- Throws:
ParseException
VariableDeclarator
public static final VariableDeclarator VariableDeclarator()
throws ParseException
- Throws:
ParseException
VariableDeclaratorId
public static final VariableDeclaratorId VariableDeclaratorId()
throws ParseException
- Throws:
ParseException
VariableInitializer
public static final VariableInitializer VariableInitializer()
throws ParseException
- Throws:
ParseException
ArrayInitializer
public static final ArrayInitializer ArrayInitializer()
throws ParseException
- Throws:
ParseException
MethodDeclaration
public static final MethodDeclaration MethodDeclaration()
throws ParseException
- Throws:
ParseException
MethodDeclarator
public static final MethodDeclarator MethodDeclarator()
throws ParseException
- Throws:
ParseException
FormalParameters
public static final FormalParameters FormalParameters()
throws ParseException
- Throws:
ParseException
FormalParameter
public static final FormalParameter FormalParameter()
throws ParseException
- Throws:
ParseException
ConstructorDeclaration
public static final ConstructorDeclaration ConstructorDeclaration()
throws ParseException
- Throws:
ParseException
ExplicitConstructorInvocation
public static final ExplicitConstructorInvocation ExplicitConstructorInvocation()
throws ParseException
- Throws:
ParseException
Initializer
public static final Initializer Initializer()
throws ParseException
- Throws:
ParseException
Type
public static final Type Type()
throws ParseException
- Throws:
ParseException
PrimitiveType
public static final PrimitiveType PrimitiveType()
throws ParseException
- Throws:
ParseException
ResultType
public static final ResultType ResultType()
throws ParseException
- Throws:
ParseException
Name
public static final Name Name()
throws ParseException
- Throws:
ParseException
NameList
public static final NameList NameList()
throws ParseException
- Throws:
ParseException
Expression
public static final Expression Expression()
throws ParseException
- Throws:
ParseException
Assignment
public static final Assignment Assignment()
throws ParseException
- Throws:
ParseException
AssignmentOperator
public static final AssignmentOperator AssignmentOperator()
throws ParseException
- Throws:
ParseException
ConditionalExpression
public static final ConditionalExpression ConditionalExpression()
throws ParseException
- Throws:
ParseException
ConditionalOrExpression
public static final ConditionalOrExpression ConditionalOrExpression()
throws ParseException
- Throws:
ParseException
ConditionalAndExpression
public static final ConditionalAndExpression ConditionalAndExpression()
throws ParseException
- Throws:
ParseException
InclusiveOrExpression
public static final InclusiveOrExpression InclusiveOrExpression()
throws ParseException
- Throws:
ParseException
ExclusiveOrExpression
public static final ExclusiveOrExpression ExclusiveOrExpression()
throws ParseException
- Throws:
ParseException
AndExpression
public static final AndExpression AndExpression()
throws ParseException
- Throws:
ParseException
EqualityExpression
public static final EqualityExpression EqualityExpression()
throws ParseException
- Throws:
ParseException
InstanceOfExpression
public static final InstanceOfExpression InstanceOfExpression()
throws ParseException
- Throws:
ParseException
RelationalExpression
public static final RelationalExpression RelationalExpression()
throws ParseException
- Throws:
ParseException
ShiftExpression
public static final ShiftExpression ShiftExpression()
throws ParseException
- Throws:
ParseException
AdditiveExpression
public static final AdditiveExpression AdditiveExpression()
throws ParseException
- Throws:
ParseException
MultiplicativeExpression
public static final MultiplicativeExpression MultiplicativeExpression()
throws ParseException
- Throws:
ParseException
UnaryExpression
public static final UnaryExpression UnaryExpression()
throws ParseException
- Throws:
ParseException
PreIncrementExpression
public static final PreIncrementExpression PreIncrementExpression()
throws ParseException
- Throws:
ParseException
PreDecrementExpression
public static final PreDecrementExpression PreDecrementExpression()
throws ParseException
- Throws:
ParseException
UnaryExpressionNotPlusMinus
public static final UnaryExpressionNotPlusMinus UnaryExpressionNotPlusMinus()
throws ParseException
- Throws:
ParseException
CastLookahead
public static final CastLookahead CastLookahead()
throws ParseException
- Throws:
ParseException
PostfixExpression
public static final PostfixExpression PostfixExpression()
throws ParseException
- Throws:
ParseException
CastExpression
public static final CastExpression CastExpression()
throws ParseException
- Throws:
ParseException
PrimaryExpression
public static final PrimaryExpression PrimaryExpression()
throws ParseException
- Throws:
ParseException
PrimaryPrefix
public static final PrimaryPrefix PrimaryPrefix()
throws ParseException
- Throws:
ParseException
PrimarySuffix
public static final PrimarySuffix PrimarySuffix()
throws ParseException
- Throws:
ParseException
Literal
public static final Literal Literal()
throws ParseException
- Throws:
ParseException
BooleanLiteral
public static final BooleanLiteral BooleanLiteral()
throws ParseException
- Throws:
ParseException
NullLiteral
public static final NullLiteral NullLiteral()
throws ParseException
- Throws:
ParseException
Arguments
public static final Arguments Arguments()
throws ParseException
- Throws:
ParseException
ArgumentList
public static final ArgumentList ArgumentList()
throws ParseException
- Throws:
ParseException
AllocationExpression
public static final AllocationExpression AllocationExpression()
throws ParseException
- Throws:
ParseException
ArrayDimensions
public static final ArrayDimensions ArrayDimensions()
throws ParseException
- Throws:
ParseException
Statement
public static final Statement Statement()
throws ParseException
- Throws:
ParseException
LabeledStatement
public static final LabeledStatement LabeledStatement()
throws ParseException
- Throws:
ParseException
Block
public static final Block Block()
throws ParseException
- Throws:
ParseException
BlockStatement
public static final BlockStatement BlockStatement()
throws ParseException
- Throws:
ParseException
LocalVariableDeclaration
public static final LocalVariableDeclaration LocalVariableDeclaration()
throws ParseException
- Throws:
ParseException
EmptyStatement
public static final EmptyStatement EmptyStatement()
throws ParseException
- Throws:
ParseException
StatementExpression
public static final StatementExpression StatementExpression()
throws ParseException
- Throws:
ParseException
SwitchStatement
public static final SwitchStatement SwitchStatement()
throws ParseException
- Throws:
ParseException
SwitchLabel
public static final SwitchLabel SwitchLabel()
throws ParseException
- Throws:
ParseException
IfStatement
public static final IfStatement IfStatement()
throws ParseException
- Throws:
ParseException
WhileStatement
public static final WhileStatement WhileStatement()
throws ParseException
- Throws:
ParseException
DoStatement
public static final DoStatement DoStatement()
throws ParseException
- Throws:
ParseException
ForStatement
public static final ForStatement ForStatement()
throws ParseException
- Throws:
ParseException
ForInit
public static final ForInit ForInit()
throws ParseException
- Throws:
ParseException
StatementExpressionList
public static final StatementExpressionList StatementExpressionList()
throws ParseException
- Throws:
ParseException
ForUpdate
public static final ForUpdate ForUpdate()
throws ParseException
- Throws:
ParseException
BreakStatement
public static final BreakStatement BreakStatement()
throws ParseException
- Throws:
ParseException
ContinueStatement
public static final ContinueStatement ContinueStatement()
throws ParseException
- Throws:
ParseException
ReturnStatement
public static final ReturnStatement ReturnStatement()
throws ParseException
- Throws:
ParseException
ThrowStatement
public static final ThrowStatement ThrowStatement()
throws ParseException
- Throws:
ParseException
SynchronizedStatement
public static final SynchronizedStatement SynchronizedStatement()
throws ParseException
- Throws:
ParseException
TryStatement
public static final TryStatement TryStatement()
throws ParseException
- Throws:
ParseException
JavaCCInput
public static final JavaCCInput JavaCCInput()
throws ParseException
- Throws:
ParseException
JavaCCOptions
public static final JavaCCOptions JavaCCOptions()
throws ParseException
- Throws:
ParseException
OptionBinding
public static final OptionBinding OptionBinding()
throws ParseException
- Throws:
ParseException
Production
public static final Production Production()
throws ParseException
- Throws:
ParseException
JavaCodeProduction
public static final JavaCodeProduction JavaCodeProduction()
throws ParseException
- Throws:
ParseException
BNFProduction
public static final BNFProduction BNFProduction()
throws ParseException
- Throws:
ParseException
RegularExprProduction
public static final RegularExprProduction RegularExprProduction()
throws ParseException
- Throws:
ParseException
TokenManagerDecls
public static final TokenManagerDecls TokenManagerDecls()
throws ParseException
- Throws:
ParseException
LexicalStateList
public static final LexicalStateList LexicalStateList()
throws ParseException
- Throws:
ParseException
RegExprKind
public static final RegExprKind RegExprKind()
throws ParseException
- Throws:
ParseException
RegExprSpec
public static final RegExprSpec RegExprSpec()
throws ParseException
- Throws:
ParseException
ExpansionChoices
public static final ExpansionChoices ExpansionChoices()
throws ParseException
- Throws:
ParseException
Expansion
public static final Expansion Expansion()
throws ParseException
- Throws:
ParseException
ExpansionUnit
public static final ExpansionUnit ExpansionUnit()
throws ParseException
- Throws:
ParseException
ExpansionUnitTerm
public static final ExpansionUnitTerm ExpansionUnitTerm()
throws ParseException
- Throws:
ParseException
LocalLookahead
public static final LocalLookahead LocalLookahead()
throws ParseException
- Throws:
ParseException
RegularExpression
public static final RegularExpression RegularExpression()
throws ParseException
- Throws:
ParseException
ComplexRegularExpressionChoices
public static final ComplexRegularExpressionChoices ComplexRegularExpressionChoices()
throws ParseException
- Throws:
ParseException
ComplexRegularExpression
public static final ComplexRegularExpression ComplexRegularExpression()
throws ParseException
- Throws:
ParseException
ComplexRegularExpressionUnit
public static final ComplexRegularExpressionUnit ComplexRegularExpressionUnit()
throws ParseException
- Throws:
ParseException
CharacterList
public static final CharacterList CharacterList()
throws ParseException
- Throws:
ParseException
CharacterDescriptor
public static final CharacterDescriptor CharacterDescriptor()
throws ParseException
- Throws:
ParseException
ReInit
public static void ReInit(java.io.InputStream stream)
ReInit
public static void ReInit(java.io.Reader stream)
ReInit
public void ReInit(JTBParserTokenManager tm)
getNextToken
public static final Token getNextToken()
getToken
public static final Token getToken(int index)
generateParseException
public static ParseException generateParseException()
enable_tracing
public static final void enable_tracing()
disable_tracing
public static final void disable_tracing()