pt.compiler.parser
Class JavaParser

java.lang.Object
  extended by pt.compiler.parser.JavaParser
All Implemented Interfaces:
JavaParserConstants

public final class JavaParser
extends java.lang.Object
implements JavaParserConstants

Grammar to parse Java version 1.5

Author:
Sreenivasa Viswanadha - Simplified and enhanced for 1.5, J�lio Vilmar Gesser (jgesser@gmail.com) - bug fixes and added AST generation

Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 JavaParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface pt.compiler.parser.JavaParserConstants
_DEFAULT, ABSTRACT, ANDASSIGN, ASSERT, ASSIGN, AT, 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, DEPENDSON, DO, DOT, DOUBLE, ELLIPSIS, ELSE, ENUM, EOF, EQ, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, GE, GOTO, GT, HEX_LITERAL, HEXADECIMAL_EXPONENT, HEXADECIMAL_FLOATING_POINT_LITERAL, HOOK, IDENTIFIER, IF, IMPLEMENTS, IMPORT, IN_JAVA_DOC_COMMENT, IN_MULTI_LINE_COMMENT, INCR, INSTANCEOF, INT, INTEGER_LITERAL, INTERFACE, JAVA_DOC_COMMENT, LBRACE, LBRACKET, LE, LETTER, LONG, LONG_LITERAL, LPAREN, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NATIVE, NE, NEW, NOTIFY, NOTIFYINTER, NULL, OCTAL_LITERAL, ORASSIGN, PACKAGE, PART_LETTER, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SEMICOLON, SHORT, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, SMART, STAR, STARASSIGN, STATIC, STRICTFP, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, TASK, TASK_INTERACTIVE, THIS, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, TRYCATCH, VOID, VOLATILE, WHILE, XOR, XORASSIGN
 
Constructor Summary
JavaParser(java.io.InputStream stream)
          Constructor with InputStream.
JavaParser(java.io.InputStream stream, java.lang.String encoding)
          Constructor with InputStream and supplied encoding
JavaParser(JavaParserTokenManager tm)
          Constructor with generated Token Manager.
JavaParser(java.io.Reader stream)
          Constructor.
 
Method Summary
 Expression AdditiveExpression()
           
 Expression AllocationExpression(Expression scope)
           
 Expression AndExpression()
           
 AnnotationExpr Annotation()
           
 BodyDeclaration AnnotationBodyDeclaration()
           
 java.util.List AnnotationTypeBody()
           
 AnnotationDeclaration AnnotationTypeDeclaration(pt.compiler.parser.JavaParser.Modifier modifier)
           
 AnnotationMemberDeclaration AnnotationTypeMemberDeclaration(pt.compiler.parser.JavaParser.Modifier modifier)
           
 java.util.List ArgumentList()
           
 java.util.List Arguments()
           
 java.lang.Object[] ArrayDimsAndInits()
           
 ArrayInitializerExpr ArrayInitializer()
           
 AssertStmt AssertStatement()
           
 AssignExpr.Operator AssignmentOperator()
           
 BlockStmt Block()
           
 Statement BlockStatement()
           
 Expression BooleanLiteral()
           
 BreakStmt BreakStatement()
           
 Expression CastExpression()
           
 void CastLookahead()
           
 java.util.List ClassOrInterfaceBody(boolean isInterface)
           
 BodyDeclaration ClassOrInterfaceBodyDeclaration(boolean isInterface)
           
 ClassOrInterfaceDeclaration ClassOrInterfaceDeclaration(pt.compiler.parser.JavaParser.Modifier modifier)
           
 ClassOrInterfaceType ClassOrInterfaceType()
           
 CompilationUnit CompilationUnit()
          THE JAVA LANGUAGE GRAMMAR STARTS HERE *
 Expression ConditionalAndExpression()
           
 Expression ConditionalExpression()
           
 Expression ConditionalOrExpression()
           
 ConstructorDeclaration ConstructorDeclaration(pt.compiler.parser.JavaParser.Modifier modifier)
           
 ContinueStmt ContinueStatement()
           
 Expression DefaultValue()
           
 void disable_tracing()
          Disable tracing.
 DoStmt DoStatement()
           
 EmptyStmt EmptyStatement()
           
 void enable_tracing()
          Enable tracing.
 EnumConstantDeclaration EnumConstantDeclaration()
           
 EnumDeclaration EnumDeclaration(pt.compiler.parser.JavaParser.Modifier modifier)
           
 Expression EqualityExpression()
           
 Expression ExclusiveOrExpression()
           
 ExplicitConstructorInvocationStmt ExplicitConstructorInvocation()
           
 Expression Expression()
           
 java.util.List ExpressionList()
           
 java.util.List ExtendsList(boolean isInterface)
           
 FieldDeclaration FieldDeclaration(pt.compiler.parser.JavaParser.Modifier modifier)
           
 java.util.List ForInit()
           
 Parameter FormalParameter()
           
 java.util.List FormalParameters()
           
 Statement ForStatement()
           
 java.util.List ForUpdate()
           
 ParseException generateParseException()
          Generate ParseException.
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 HandlerArg HandlerArgument()
           
 java.util.List HandlerArgumentList()
           
 IfStmt IfStatement()
           
 java.util.List ImplementsList(boolean isInterface)
           
 ImportDeclaration ImportDeclaration()
           
 Expression InclusiveOrExpression()
           
 InitializerDeclaration InitializerDeclaration()
           
 Expression InstanceOfExpression()
           
 LabeledStmt LabeledStatement()
           
 Expression Literal()
           
 MarkerAnnotationExpr MarkerAnnotation()
           
 Expression MemberValue()
           
 Expression MemberValueArrayInitializer()
           
 MemberValuePair MemberValuePair()
           
 java.util.List MemberValuePairs()
           
 MethodDeclaration MethodDeclaration(pt.compiler.parser.JavaParser.Modifier modifier)
           
 pt.compiler.parser.JavaParser.Modifier Modifiers()
           
 Expression MultiplicativeExpression()
           
 NameExpr Name()
           
 java.util.List NameList()
           
 NormalAnnotationExpr NormalAnnotation()
           
 NotifyArg NotifyArgument()
           
 java.util.List NotifyArgumentList(boolean intermediate)
           
 Expression NullLiteral()
           
 PackageDeclaration PackageDeclaration()
           
static CompilationUnit parse(java.io.File file)
           
static CompilationUnit parse(java.io.File file, java.lang.String encoding)
           
static CompilationUnit parse(java.io.InputStream in)
           
static CompilationUnit parse(java.io.InputStream in, java.lang.String encoding)
           
 Expression PostfixExpression()
           
 Expression PreDecrementExpression()
           
 Expression PreIncrementExpression()
           
 Expression PrimaryExpression()
           
 Expression PrimaryExpressionWithoutSuperSuffix()
           
 Expression PrimaryPrefix()
           
 Expression PrimarySuffix(Expression scope)
           
 Expression PrimarySuffixWithoutSuper(Expression scope)
           
 PrimitiveType PrimitiveType()
           
 ReferenceType ReferenceType()
           
 void ReInit(java.io.InputStream stream)
          Reinitialise.
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
          Reinitialise.
 void ReInit(JavaParserTokenManager tm)
          Reinitialise.
 void ReInit(java.io.Reader stream)
          Reinitialise.
 Expression RelationalExpression()
           
 Type ResultType()
           
 ReturnStmt ReturnStatement()
           
 void RSIGNEDSHIFT()
           
 void RUNSIGNEDSHIFT()
           
 Expression ShiftExpression()
           
 SingleMemberAnnotationExpr SingleMemberAnnotation()
           
 Statement Statement()
           
 ExpressionStmt StatementExpression()
           
 java.util.List Statements()
           
 SwitchEntryStmt SwitchEntry()
           
 SwitchStmt SwitchStatement()
           
 SynchronizedStmt SynchronizedStatement()
           
 TaskClauseExpr TaskClauseExpression()
           
 TaskDeclaration TaskDeclaration()
           
 ThrowStmt ThrowStatement()
           
 TryStmt TryStatement()
           
 Type Type()
           
 Type TypeArgument()
           
 java.util.List TypeArguments()
           
 java.util.List TypeBound()
           
 TypeDeclaration TypeDeclaration()
           
 TypeParameter TypeParameter()
           
 java.util.List TypeParameters()
           
 Expression UnaryExpression()
           
 Expression UnaryExpressionNotPlusMinus()
           
 VariableDeclarationExpr VariableDeclarationExpression()
           
 VariableDeclarator VariableDeclarator()
           
 VariableDeclaratorId VariableDeclaratorId()
           
 Expression VariableInitializer()
           
 WhileStmt WhileStatement()
           
 WildcardType Wildcard()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public JavaParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

JavaParser

public JavaParser(java.io.InputStream stream)
Constructor with InputStream.


JavaParser

public JavaParser(java.io.InputStream stream,
                  java.lang.String encoding)
Constructor with InputStream and supplied encoding


JavaParser

public JavaParser(java.io.Reader stream)
Constructor.


JavaParser

public JavaParser(JavaParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

parse

public static CompilationUnit parse(java.io.InputStream in,
                                    java.lang.String encoding)
                             throws ParseException
Throws:
ParseException

parse

public static CompilationUnit parse(java.io.InputStream in)
                             throws ParseException
Throws:
ParseException

parse

public static CompilationUnit parse(java.io.File file,
                                    java.lang.String encoding)
                             throws ParseException
Throws:
ParseException

parse

public static CompilationUnit parse(java.io.File file)
                             throws ParseException
Throws:
ParseException

CompilationUnit

public final CompilationUnit CompilationUnit()
                                      throws ParseException
THE JAVA LANGUAGE GRAMMAR STARTS HERE *

Throws:
ParseException

PackageDeclaration

public final PackageDeclaration PackageDeclaration()
                                            throws ParseException
Throws:
ParseException

ImportDeclaration

public final ImportDeclaration ImportDeclaration()
                                          throws ParseException
Throws:
ParseException

Modifiers

public final pt.compiler.parser.JavaParser.Modifier Modifiers()
                                                       throws ParseException
Throws:
ParseException

TypeDeclaration

public final TypeDeclaration TypeDeclaration()
                                      throws ParseException
Throws:
ParseException

ClassOrInterfaceDeclaration

public final ClassOrInterfaceDeclaration ClassOrInterfaceDeclaration(pt.compiler.parser.JavaParser.Modifier modifier)
                                                              throws ParseException
Throws:
ParseException

ExtendsList

public final java.util.List ExtendsList(boolean isInterface)
                                 throws ParseException
Throws:
ParseException

ImplementsList

public final java.util.List ImplementsList(boolean isInterface)
                                    throws ParseException
Throws:
ParseException

EnumDeclaration

public final EnumDeclaration EnumDeclaration(pt.compiler.parser.JavaParser.Modifier modifier)
                                      throws ParseException
Throws:
ParseException

EnumConstantDeclaration

public final EnumConstantDeclaration EnumConstantDeclaration()
                                                      throws ParseException
Throws:
ParseException

TypeParameters

public final java.util.List TypeParameters()
                                    throws ParseException
Throws:
ParseException

TypeParameter

public final TypeParameter TypeParameter()
                                  throws ParseException
Throws:
ParseException

TypeBound

public final java.util.List TypeBound()
                               throws ParseException
Throws:
ParseException

ClassOrInterfaceBody

public final java.util.List ClassOrInterfaceBody(boolean isInterface)
                                          throws ParseException
Throws:
ParseException

ClassOrInterfaceBodyDeclaration

public final BodyDeclaration ClassOrInterfaceBodyDeclaration(boolean isInterface)
                                                      throws ParseException
Throws:
ParseException

FieldDeclaration

public final FieldDeclaration FieldDeclaration(pt.compiler.parser.JavaParser.Modifier modifier)
                                        throws ParseException
Throws:
ParseException

VariableDeclarator

public final VariableDeclarator VariableDeclarator()
                                            throws ParseException
Throws:
ParseException

VariableDeclaratorId

public final VariableDeclaratorId VariableDeclaratorId()
                                                throws ParseException
Throws:
ParseException

VariableInitializer

public final Expression VariableInitializer()
                                     throws ParseException
Throws:
ParseException

ArrayInitializer

public final ArrayInitializerExpr ArrayInitializer()
                                            throws ParseException
Throws:
ParseException

MethodDeclaration

public final MethodDeclaration MethodDeclaration(pt.compiler.parser.JavaParser.Modifier modifier)
                                          throws ParseException
Throws:
ParseException

TaskDeclaration

public final TaskDeclaration TaskDeclaration()
                                      throws ParseException
Throws:
ParseException

FormalParameters

public final java.util.List FormalParameters()
                                      throws ParseException
Throws:
ParseException

FormalParameter

public final Parameter FormalParameter()
                                throws ParseException
Throws:
ParseException

ConstructorDeclaration

public final ConstructorDeclaration ConstructorDeclaration(pt.compiler.parser.JavaParser.Modifier modifier)
                                                    throws ParseException
Throws:
ParseException

ExplicitConstructorInvocation

public final ExplicitConstructorInvocationStmt ExplicitConstructorInvocation()
                                                                      throws ParseException
Throws:
ParseException

Statements

public final java.util.List Statements()
                                throws ParseException
Throws:
ParseException

InitializerDeclaration

public final InitializerDeclaration InitializerDeclaration()
                                                    throws ParseException
Throws:
ParseException

Type

public final Type Type()
                throws ParseException
Throws:
ParseException

ReferenceType

public final ReferenceType ReferenceType()
                                  throws ParseException
Throws:
ParseException

ClassOrInterfaceType

public final ClassOrInterfaceType ClassOrInterfaceType()
                                                throws ParseException
Throws:
ParseException

TypeArguments

public final java.util.List TypeArguments()
                                   throws ParseException
Throws:
ParseException

TypeArgument

public final Type TypeArgument()
                        throws ParseException
Throws:
ParseException

Wildcard

public final WildcardType Wildcard()
                            throws ParseException
Throws:
ParseException

PrimitiveType

public final PrimitiveType PrimitiveType()
                                  throws ParseException
Throws:
ParseException

ResultType

public final Type ResultType()
                      throws ParseException
Throws:
ParseException

Name

public final NameExpr Name()
                    throws ParseException
Throws:
ParseException

NameList

public final java.util.List NameList()
                              throws ParseException
Throws:
ParseException

Expression

public final Expression Expression()
                            throws ParseException
Throws:
ParseException

TaskClauseExpression

public final TaskClauseExpr TaskClauseExpression()
                                          throws ParseException
Throws:
ParseException

AssignmentOperator

public final AssignExpr.Operator AssignmentOperator()
                                             throws ParseException
Throws:
ParseException

ConditionalExpression

public final Expression ConditionalExpression()
                                       throws ParseException
Throws:
ParseException

ConditionalOrExpression

public final Expression ConditionalOrExpression()
                                         throws ParseException
Throws:
ParseException

ConditionalAndExpression

public final Expression ConditionalAndExpression()
                                          throws ParseException
Throws:
ParseException

InclusiveOrExpression

public final Expression InclusiveOrExpression()
                                       throws ParseException
Throws:
ParseException

ExclusiveOrExpression

public final Expression ExclusiveOrExpression()
                                       throws ParseException
Throws:
ParseException

AndExpression

public final Expression AndExpression()
                               throws ParseException
Throws:
ParseException

EqualityExpression

public final Expression EqualityExpression()
                                    throws ParseException
Throws:
ParseException

InstanceOfExpression

public final Expression InstanceOfExpression()
                                      throws ParseException
Throws:
ParseException

RelationalExpression

public final Expression RelationalExpression()
                                      throws ParseException
Throws:
ParseException

ShiftExpression

public final Expression ShiftExpression()
                                 throws ParseException
Throws:
ParseException

AdditiveExpression

public final Expression AdditiveExpression()
                                    throws ParseException
Throws:
ParseException

MultiplicativeExpression

public final Expression MultiplicativeExpression()
                                          throws ParseException
Throws:
ParseException

UnaryExpression

public final Expression UnaryExpression()
                                 throws ParseException
Throws:
ParseException

PreIncrementExpression

public final Expression PreIncrementExpression()
                                        throws ParseException
Throws:
ParseException

PreDecrementExpression

public final Expression PreDecrementExpression()
                                        throws ParseException
Throws:
ParseException

UnaryExpressionNotPlusMinus

public final Expression UnaryExpressionNotPlusMinus()
                                             throws ParseException
Throws:
ParseException

CastLookahead

public final void CastLookahead()
                         throws ParseException
Throws:
ParseException

PostfixExpression

public final Expression PostfixExpression()
                                   throws ParseException
Throws:
ParseException

CastExpression

public final Expression CastExpression()
                                throws ParseException
Throws:
ParseException

PrimaryExpression

public final Expression PrimaryExpression()
                                   throws ParseException
Throws:
ParseException

PrimaryExpressionWithoutSuperSuffix

public final Expression PrimaryExpressionWithoutSuperSuffix()
                                                     throws ParseException
Throws:
ParseException

PrimaryPrefix

public final Expression PrimaryPrefix()
                               throws ParseException
Throws:
ParseException

PrimarySuffix

public final Expression PrimarySuffix(Expression scope)
                               throws ParseException
Throws:
ParseException

PrimarySuffixWithoutSuper

public final Expression PrimarySuffixWithoutSuper(Expression scope)
                                           throws ParseException
Throws:
ParseException

Literal

public final Expression Literal()
                         throws ParseException
Throws:
ParseException

BooleanLiteral

public final Expression BooleanLiteral()
                                throws ParseException
Throws:
ParseException

NullLiteral

public final Expression NullLiteral()
                             throws ParseException
Throws:
ParseException

Arguments

public final java.util.List Arguments()
                               throws ParseException
Throws:
ParseException

HandlerArgumentList

public final java.util.List HandlerArgumentList()
                                         throws ParseException
Throws:
ParseException

HandlerArgument

public final HandlerArg HandlerArgument()
                                 throws ParseException
Throws:
ParseException

NotifyArgumentList

public final java.util.List NotifyArgumentList(boolean intermediate)
                                        throws ParseException
Throws:
ParseException

NotifyArgument

public final NotifyArg NotifyArgument()
                               throws ParseException
Throws:
ParseException

ArgumentList

public final java.util.List ArgumentList()
                                  throws ParseException
Throws:
ParseException

AllocationExpression

public final Expression AllocationExpression(Expression scope)
                                      throws ParseException
Throws:
ParseException

ArrayDimsAndInits

public final java.lang.Object[] ArrayDimsAndInits()
                                           throws ParseException
Throws:
ParseException

Statement

public final Statement Statement()
                          throws ParseException
Throws:
ParseException

AssertStatement

public final AssertStmt AssertStatement()
                                 throws ParseException
Throws:
ParseException

LabeledStatement

public final LabeledStmt LabeledStatement()
                                   throws ParseException
Throws:
ParseException

Block

public final BlockStmt Block()
                      throws ParseException
Throws:
ParseException

BlockStatement

public final Statement BlockStatement()
                               throws ParseException
Throws:
ParseException

VariableDeclarationExpression

public final VariableDeclarationExpr VariableDeclarationExpression()
                                                            throws ParseException
Throws:
ParseException

EmptyStatement

public final EmptyStmt EmptyStatement()
                               throws ParseException
Throws:
ParseException

StatementExpression

public final ExpressionStmt StatementExpression()
                                         throws ParseException
Throws:
ParseException

SwitchStatement

public final SwitchStmt SwitchStatement()
                                 throws ParseException
Throws:
ParseException

SwitchEntry

public final SwitchEntryStmt SwitchEntry()
                                  throws ParseException
Throws:
ParseException

IfStatement

public final IfStmt IfStatement()
                         throws ParseException
Throws:
ParseException

WhileStatement

public final WhileStmt WhileStatement()
                               throws ParseException
Throws:
ParseException

DoStatement

public final DoStmt DoStatement()
                         throws ParseException
Throws:
ParseException

ForStatement

public final Statement ForStatement()
                             throws ParseException
Throws:
ParseException

ForInit

public final java.util.List ForInit()
                             throws ParseException
Throws:
ParseException

ExpressionList

public final java.util.List ExpressionList()
                                    throws ParseException
Throws:
ParseException

ForUpdate

public final java.util.List ForUpdate()
                               throws ParseException
Throws:
ParseException

BreakStatement

public final BreakStmt BreakStatement()
                               throws ParseException
Throws:
ParseException

ContinueStatement

public final ContinueStmt ContinueStatement()
                                     throws ParseException
Throws:
ParseException

ReturnStatement

public final ReturnStmt ReturnStatement()
                                 throws ParseException
Throws:
ParseException

ThrowStatement

public final ThrowStmt ThrowStatement()
                               throws ParseException
Throws:
ParseException

SynchronizedStatement

public final SynchronizedStmt SynchronizedStatement()
                                             throws ParseException
Throws:
ParseException

TryStatement

public final TryStmt TryStatement()
                           throws ParseException
Throws:
ParseException

RUNSIGNEDSHIFT

public final void RUNSIGNEDSHIFT()
                          throws ParseException
Throws:
ParseException

RSIGNEDSHIFT

public final void RSIGNEDSHIFT()
                        throws ParseException
Throws:
ParseException

Annotation

public final AnnotationExpr Annotation()
                                throws ParseException
Throws:
ParseException

NormalAnnotation

public final NormalAnnotationExpr NormalAnnotation()
                                            throws ParseException
Throws:
ParseException

MarkerAnnotation

public final MarkerAnnotationExpr MarkerAnnotation()
                                            throws ParseException
Throws:
ParseException

SingleMemberAnnotation

public final SingleMemberAnnotationExpr SingleMemberAnnotation()
                                                        throws ParseException
Throws:
ParseException

MemberValuePairs

public final java.util.List MemberValuePairs()
                                      throws ParseException
Throws:
ParseException

MemberValuePair

public final MemberValuePair MemberValuePair()
                                      throws ParseException
Throws:
ParseException

MemberValue

public final Expression MemberValue()
                             throws ParseException
Throws:
ParseException

MemberValueArrayInitializer

public final Expression MemberValueArrayInitializer()
                                             throws ParseException
Throws:
ParseException

AnnotationTypeDeclaration

public final AnnotationDeclaration AnnotationTypeDeclaration(pt.compiler.parser.JavaParser.Modifier modifier)
                                                      throws ParseException
Throws:
ParseException

AnnotationTypeBody

public final java.util.List AnnotationTypeBody()
                                        throws ParseException
Throws:
ParseException

AnnotationBodyDeclaration

public final BodyDeclaration AnnotationBodyDeclaration()
                                                throws ParseException
Throws:
ParseException

AnnotationTypeMemberDeclaration

public final AnnotationMemberDeclaration AnnotationTypeMemberDeclaration(pt.compiler.parser.JavaParser.Modifier modifier)
                                                                  throws ParseException
Throws:
ParseException

DefaultValue

public final Expression DefaultValue()
                              throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)
Reinitialise.


ReInit

public void ReInit(java.io.InputStream stream,
                   java.lang.String encoding)
Reinitialise.


ReInit

public void ReInit(java.io.Reader stream)
Reinitialise.


ReInit

public void ReInit(JavaParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.