koala.dynamicjava.parser
Class Parser

java.lang.Object
  extended bykoala.dynamicjava.parser.Parser
All Implemented Interfaces:
ParserConstants

public class Parser
extends java.lang.Object
implements ParserConstants

This class represents a (interpreted) Java 1.1 language parser


Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 ParserTokenManager token_source
           
 
Fields inherited from interface koala.dynamicjava.parser.ParserConstants
_DEFAULT, ABSTRACT, AND_ASSIGN, ASSIGN, BANG, BITWISE_AND, BITWISE_OR, BOOLEAN, BREAK, BYTE, CASE, CATCH, CHAR, CHARACTER_LITERAL, CLASS, COLON, COMMA, CONDITIONAL_AND, CONDITIONAL_OR, CONST, CONTINUE, DECIMAL_LITERAL, DECREMENT, DEFAULT, DIGIT, DO, DOT, DOUBLE, DOUBLE_LITERAL, ELSE, EOF, EQUAL, EXPONENT, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOAT_LITERAL, FOR, FORMAL_COMMENT, GOTO, GREATER_OR_EQUAL, GREATER_THAN, HEX_LITERAL, HOOK, IDENTIFIER, IF, IMPLEMENTS, IMPORT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INCREMENT, INSTANCEOF, INT, INTEGER_LITERAL, INTERFACE, LBRACE, LBRACKET, LEFT_SHIFT, LEFT_SHIFT_ASSIGN, LESS, LESS_OR_EQUAL, LETTER, LONG, LONG_LITERAL, LPAREN, MINUS, MINUS_ASSIGN, MULTI_LINE_COMMENT, NATIVE, NEW, NOT_EQUAL, NULL, OCTAL_LITERAL, OR_ASSIGN, PACKAGE, PLUS, PLUS_ASSIGN, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REMAINDER, REMAINDER_ASSIGN, RETURN, RIGHT_SIGNED_SHIFT, RIGHT_SIGNED_SHIFT_ASSIGN, RIGHT_UNSIGNED_SHIFT, RIGHT_UNSIGNED_SHIFTASSIGN, RPAREN, SEMICOLON, SHORT, SINGLE_LINE_COMMENT, SLASH, SLASH_ASSIGN, STAR, STAR_ASSIGN, STATIC, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, THIS, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHILE, XOR, XOR_ASSIGN
 
Constructor Summary
Parser(java.io.InputStream stream)
           
Parser(ParserTokenManager tm)
           
Parser(java.io.Reader stream)
           
 
Method Summary
 Expression additiveExpression()
          Used internally to parse an expression
 void additiveExpressionLookahead()
          Used internally for lookahead
 Expression allocationExpression()
          Used internally to parse an expression
 void allocationExpressionLookahead()
          Used internally for lookahead
 Expression andExpression()
          Used internally to parse an expression
 void andExpressionLookahead()
          Used internally for lookahead
 java.util.List argumentList()
          Used internally to parse an expression
 koala.dynamicjava.parser.Parser.ArgumentsSuffix arguments()
          Used internally to parse an expression
 void argumentsLookahead()
          Used internally for lookahead
 ArrayAllocation.TypeDescriptor arrayDimsAndInits()
          Used internally to parse an expression
 void arrayDimsAndInitsLookahead()
          Used internally for lookahead
 ArrayInitializer arrayInitializer()
          Parses an array initializer
 void arrayInitializerLookahead()
          Used internally for lookahead
 koala.dynamicjava.parser.Parser.ExpressionSuffix arrayReference()
          Used internally to parse an expression
 void assignmentOperatorLookahead()
          Used internally for lookahead
 BlockStatement block()
          Parses a block
 void blockLookahead()
          Used internally for lookahead
 java.util.List blockStatement()
          Parses one block statement.
 void blockStatementLookahead()
          Used internally for lookahead
 BreakStatement breakStatement()
          Parses a break statement
 void breakStatementLookahead()
          Used internally for lookahead
 Expression castExpression()
          Used internally to parse an expression
 void castExpressionLookahead()
          Used internally for lookahead
 void castLookahead()
          Used internally for lookahead
 koala.dynamicjava.parser.Parser.ClassBody classBody()
          Used internally to parse the body of a class
 java.util.List classBodyDeclaration()
          Parses one declaration in the body of a class.
 void classBodyDeclarationLookahead()
          Used internally for lookahead
 void classBodyLookahead()
          Used internally for lookahead
 ClassDeclaration classDeclaration()
          Parses a class declaration
 void classDeclarationLookahead()
          Used internally for lookahead
 void classDeclarationLookahead2()
          Used internally for lookahead
 Expression classExpression()
          Used internally to parse an expression
 Expression conditionalAndExpression()
          Used internally to parse an expression
 void conditionalAndExpressionLookahead()
          Used internally for lookahead
 Expression conditionalExpression()
          Used internally to parse an expression
 void conditionalExpressionLookahead()
          Used internally for lookahead
 Expression conditionalOrExpression()
          Used internally to parse an expression
 void conditionalOrExpressionLookahead()
          Used internally for lookahead
 ConstructorDeclaration constructorDeclaration()
          Parses a constructor declaration
 void constructorDeclarationLookahead()
          Used internally for lookahead
 void constructorDeclarationLookahead2()
          Used internally for lookahead
 ContinueStatement continueStatement()
          Parses a continue statement
 void continueStatementLookahead()
          Used internally for lookahead
 void disable_tracing()
           
 DoStatement doStatement()
          Parses a do statement
 void doStatementLookahead()
          Used internally for lookahead
 koala.dynamicjava.parser.Parser.ExpressionSuffix dotAllocationExpression()
          Used internally to parse an expression
 koala.dynamicjava.parser.Parser.ExpressionSuffix dotIdentifier()
          Used internally to parse an expression
 koala.dynamicjava.parser.Parser.ExpressionSuffix dotThis()
          Used internally to parse an expression
 EmptyStatement emptyStatement()
          Parses an empty statement
 void enable_tracing()
           
 Expression equalityExpression()
          Used internally to parse an expression
 void equalityExpressionLookahead()
          Used internally for lookahead
 Expression exclusiveOrExpression()
          Used internally to parse an expression
 void exclusiveOrExpressionLookahead()
          Used internally for lookahead
 ConstructorInvocation explicitConstructorInvocation()
          Parses a constructor invocation
 void explicitConstructorInvocationLookahead()
          Used internally for lookahead
 Expression expression()
          Parses an expression
 void expressionLookahead()
          Used internally for lookahead
 Expression expressionSuffix(Expression pre)
          Used internally to parse an expression
 java.util.List fieldDeclaration()
          Parses a field declaration.
 void fieldDeclarationLookahead()
          Used internally for lookahead
 java.util.List forInit()
          Used internally to parse a 'for' statement
 void forInitLookahead()
          Used internally for lookahead
 FormalParameter formalParameter()
          Parses one formal parameter
 void formalParameterLookahead()
          Used internally for lookahead
 java.util.List formalParameters()
          Parses formal parameters of the form '(param, param, ...)'
 void formalParametersLookahead()
          Used internally for lookahead
 ForStatement forStatement()
          Parses a for statement
 void forStatementLookahead()
          Used internally for lookahead
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 Statement ifStatement()
          Parses an if statement
 void ifStatementLookahead()
          Used internally for lookahead
 ImportDeclaration importDeclaration()
          Parses an import declaration
 Expression inclusiveOrExpression()
          Used internally to parse an expression
 void inclusiveOrExpressionLookahead()
          Used internally for lookahead
 Initializer initializer()
          Parses one initializer
 void initializerLookahead()
          Used internally for lookahead
 Expression instanceOfExpression()
          Used internally to parse an expression
 void instanceOfExpressionLookahead()
          Used internally for lookahead
 InterfaceDeclaration interfaceDeclaration()
          Parses a interface declaration
 void interfaceDeclarationLookahead()
          Used internally for lookahead
 void interfaceDeclarationLookahead2()
          Used internally for lookahead
 java.util.List interfaceMemberDeclaration()
          Parses one declaration in the body of an interface.
 void interfaceMemberDeclarationLookahead()
          Used internally for lookahead
 Statement labeledStatement()
          Parses a labeled statement
 void labeledStatementLookahead()
          Used internally for lookahead
 Expression literal()
          Used internally to parse an expression
 void literalLookahead()
          Used internally for lookahead
 java.util.List localVariableDeclaration()
          Parses one variable declaration
 void localVariableDeclarationLookahead()
          Used internally for lookahead
 MethodDeclaration methodDeclaration()
          Parses a method declaration
 void methodDeclarationLookahead()
          Used internally for lookahead
 void methodDeclarationLookahead2()
          Used internally for lookahead
 void methodDeclaratorLookahead()
          Used internally for lookahead
 koala.dynamicjava.parser.Parser.ModifierFlags modifiers()
          Used internally to parse a modifier
 void modifiersLookahead()
          Used internally for lookahead
 Expression multiplicativeExpression()
          Used internally to parse an expression
 void multiplicativeExpressionLookahead()
          Used internally for lookahead
 java.util.List name()
          Parses a name
 java.util.List nameList()
          Parses a comma separated list of names
 void nameListLookahead()
          Used internally for lookahead
 void nameLookahead()
          Used internally for lookahead
 PackageDeclaration packageDeclaration()
          Parses a package declaration
 java.util.List parseCompilationUnit()
          Parses a Java compilation unit
 java.util.List parseStream()
          Parses top level statements.
 Expression postfixExpression()
          Used internally to parse an expression
 void postfixExpressionLookahead()
          Used internally for lookahead
 Expression preDecrementExpression()
          Used internally to parse an expression
 void preDecrementExpressionLookahead()
          Used internally for lookahead
 Expression preIncrementExpression()
          Used internally to parse an expression
 void preIncrementExpressionLookahead()
          Used internally for lookahead
 Expression primaryExpression()
          Used internally to parse an expression
 void primaryExpressionLookahead()
          Used internally for lookahead
 Expression primaryPrefix()
          Used internally to parse an expression
 void primaryPrefixLookahead()
          Used internally for lookahead
 koala.dynamicjava.parser.Parser.ExpressionSuffix primarySuffix()
          Used internally to parse an expression
 void primarySuffixLookahead()
          Used internally for lookahead
 Type primitiveType()
          Used internally to parse types
 void primitiveTypeLookahead()
          Used internally for lookahead
 Expression qualifiedName()
          Used internally to parse an expression
 void ReInit(java.io.InputStream stream)
           
 void ReInit(ParserTokenManager tm)
           
 void ReInit(java.io.Reader stream)
           
 Expression relationalExpression()
          Used internally to parse an expression
 void relationalExpressionLookahead()
          Used internally for lookahead
 Type resultType()
          Used internally to parse types
 void resultTypeLookahead()
          Used internally for lookahead
 ReturnStatement returnStatement()
          Parses a return statement
 void returnStatementLookahead()
          Used internally for lookahead
 void setFilename(java.lang.String fname)
          Sets the current filename
 Expression shiftExpression()
          Used internally to parse an expression
 void shiftExpressionLookahead()
          Used internally for lookahead
 Allocation simpleAllocationExpression()
          Used internally to parse an expression
 Node statement()
          Parses one statement
 Node statementExpression()
          Parses one statement expression
 java.util.List statementExpressionList()
          Parses a comma separated list of expression
 void statementExpressionListLookahead()
          Used internally for lookahead
 void statementExpressionLookahead()
          Used internally for lookahead
 void statementLookahead()
          Used internally for lookahead
 Expression superExpression()
          Used internally to parse an expression
 SwitchStatement switchStatement()
          Parses a switch statement
 void switchStatementLookahead()
          Used internally for lookahead
 SynchronizedStatement synchronizedStatement()
          Parses a synchronized statement
 void synchronizedStatementLookahead()
          Used internally for lookahead
 Expression thisExpression()
          Used internally to parse an expression
 ThrowStatement throwStatement()
          Parses a throw statement
 void throwStatementLookahead()
          Used internally for lookahead
 Node topLevelStatement()
          Parses one top level statement.
 TryStatement tryStatement()
          Parses a try statement
 void tryStatementLookahead()
          Used internally for lookahead
 Type type()
          Used internally to parse types
 TypeDeclaration typeDeclaration()
          Parses a type declaration
 void typeLookahead()
          Used internally for lookahead
 Expression unaryExpression()
          Used internally to parse an expression
 void unaryExpressionLookahead()
          Used internally for lookahead
 Expression unaryExpressionNotPlusMinus()
          Used internally to parse an expression
 void unaryExpressionNotPlusMinusLookahead()
          Used internally for lookahead
 ClassDeclaration unmodifiedClassDeclaration(koala.dynamicjava.parser.Parser.ModifierFlags mf)
          Parses a class declaration without modifier
 void unmodifiedClassDeclarationLookahead()
          Used internally for lookahead
 InterfaceDeclaration unmodifiedInterfaceDeclaration(koala.dynamicjava.parser.Parser.ModifierFlags mf)
          Parses a interface declaration without modifier
 void unmodifiedInterfaceDeclarationLookahead()
          Used internally for lookahead
 void variableDeclaratorIdLookahead()
          Used internally for lookahead
 void variableDeclaratorLookahead()
          Used internally for lookahead
 Expression variableInitializer()
          Parses a variable initializer (ie.
 void variableInitializerLookahead()
          Used internally for lookahead
 WhileStatement whileStatement()
          Parses a while statement
 void whileStatementLookahead()
          Used internally for lookahead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public ParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

Parser

public Parser(java.io.InputStream stream)

Parser

public Parser(java.io.Reader stream)

Parser

public Parser(ParserTokenManager tm)
Method Detail

setFilename

public void setFilename(java.lang.String fname)
Sets the current filename

Parameters:
fname - the name of the input file

parseStream

public final java.util.List parseStream()
                                 throws ParseException
Parses top level statements. This production is not a Java language rule. It is used by DynamicJava.

Returns:
a list of nodes (possibly empty)
Throws:
ParseException
See Also:
Node

topLevelStatement

public final Node topLevelStatement()
                             throws ParseException
Parses one top level statement. This production is not a Java language rule. It is used by DynamicJava.

Returns:
a node
Throws:
ParseException
See Also:
Node

parseCompilationUnit

public final java.util.List parseCompilationUnit()
                                          throws ParseException
Parses a Java compilation unit

Returns:
a list of nodes (possibly empty)
Throws:
ParseException
See Also:
Node

packageDeclaration

public final PackageDeclaration packageDeclaration()
                                            throws ParseException
Parses a package declaration

Throws:
ParseException
See Also:
PackageDeclaration

importDeclaration

public final ImportDeclaration importDeclaration()
                                          throws ParseException
Parses an import declaration

Throws:
ParseException
See Also:
ImportDeclaration

typeDeclaration

public final TypeDeclaration typeDeclaration()
                                      throws ParseException
Parses a type declaration

Throws:
ParseException
See Also:
TypeDeclaration

name

public final java.util.List name()
                          throws ParseException
Parses a name

Returns:
a list of tree token
Throws:
ParseException
See Also:
TreeToken

nameList

public final java.util.List nameList()
                              throws ParseException
Parses a comma separated list of names

Returns:
a list of list of token
Throws:
ParseException
See Also:
TreeToken

classDeclaration

public final ClassDeclaration classDeclaration()
                                        throws ParseException
Parses a class declaration

Throws:
ParseException
See Also:
ClassDeclaration

modifiers

public final koala.dynamicjava.parser.Parser.ModifierFlags modifiers()
                                                              throws ParseException
Used internally to parse a modifier

Throws:
ParseException

unmodifiedClassDeclaration

public final ClassDeclaration unmodifiedClassDeclaration(koala.dynamicjava.parser.Parser.ModifierFlags mf)
                                                  throws ParseException
Parses a class declaration without modifier

Throws:
ParseException
See Also:
ClassDeclaration

classBody

public final koala.dynamicjava.parser.Parser.ClassBody classBody()
                                                          throws ParseException
Used internally to parse the body of a class

Throws:
ParseException

classBodyDeclaration

public final java.util.List classBodyDeclaration()
                                          throws ParseException
Parses one declaration in the body of a class.

Returns:
a list of node because one field declaration can contain multiple declarations.
Throws:
ParseException
See Also:
Node

fieldDeclaration

public final java.util.List fieldDeclaration()
                                      throws ParseException
Parses a field declaration.

Returns:
a list of field declaration because one field declaration can contain multiple declarations.
Throws:
ParseException
See Also:
FieldDeclaration

methodDeclaration

public final MethodDeclaration methodDeclaration()
                                          throws ParseException
Parses a method declaration

Throws:
ParseException
See Also:
MethodDeclaration

formalParameters

public final java.util.List formalParameters()
                                      throws ParseException
Parses formal parameters of the form '(param, param, ...)'

Throws:
ParseException
See Also:
FormalParameter

formalParameter

public final FormalParameter formalParameter()
                                      throws ParseException
Parses one formal parameter

Throws:
ParseException
See Also:
FormalParameter

initializer

public final Initializer initializer()
                              throws ParseException
Parses one initializer

Throws:
ParseException
See Also:
Initializer

constructorDeclaration

public final ConstructorDeclaration constructorDeclaration()
                                                    throws ParseException
Parses a constructor declaration

Throws:
ParseException
See Also:
ConstructorDeclaration

explicitConstructorInvocation

public final ConstructorInvocation explicitConstructorInvocation()
                                                          throws ParseException
Parses a constructor invocation

Throws:
ParseException
See Also:
ConstructorInvocation

interfaceDeclaration

public final InterfaceDeclaration interfaceDeclaration()
                                                throws ParseException
Parses a interface declaration

Throws:
ParseException
See Also:
InterfaceDeclaration

unmodifiedInterfaceDeclaration

public final InterfaceDeclaration unmodifiedInterfaceDeclaration(koala.dynamicjava.parser.Parser.ModifierFlags mf)
                                                          throws ParseException
Parses a interface declaration without modifier

Throws:
ParseException
See Also:
InterfaceDeclaration

interfaceMemberDeclaration

public final java.util.List interfaceMemberDeclaration()
                                                throws ParseException
Parses one declaration in the body of an interface.

Returns:
a list of node because one field declaration can contain multiple declarations.
Throws:
ParseException
See Also:
Node

arrayInitializer

public final ArrayInitializer arrayInitializer()
                                        throws ParseException
Parses an array initializer

Throws:
ParseException
See Also:
ArrayInitializer

variableInitializer

public final Expression variableInitializer()
                                     throws ParseException
Parses a variable initializer (ie. an expression or an array initializer)

Throws:
ParseException
See Also:
Expression

block

public final BlockStatement block()
                           throws ParseException
Parses a block

Throws:
ParseException
See Also:
BlockStatement

blockStatement

public final java.util.List blockStatement()
                                    throws ParseException
Parses one block statement.

Returns:
a list of node because one variable declaration can contain multiple declarations.
Throws:
ParseException
See Also:
Node

localVariableDeclaration

public final java.util.List localVariableDeclaration()
                                              throws ParseException
Parses one variable declaration

Returns:
a list of node because one variable declaration can contain multiple declarations.
Throws:
ParseException
See Also:
VariableDeclaration

statement

public final Node statement()
                     throws ParseException
Parses one statement

Throws:
ParseException
See Also:
Node

labeledStatement

public final Statement labeledStatement()
                                 throws ParseException
Parses a labeled statement

Throws:
ParseException
See Also:
ContinueTarget, LabeledStatement

emptyStatement

public final EmptyStatement emptyStatement()
                                    throws ParseException
Parses an empty statement

Throws:
ParseException
See Also:
EmptyStatement

ifStatement

public final Statement ifStatement()
                            throws ParseException
Parses an if statement

Throws:
ParseException
See Also:
IfThenStatement, IfThenElseStatement

whileStatement

public final WhileStatement whileStatement()
                                    throws ParseException
Parses a while statement

Throws:
ParseException
See Also:
WhileStatement

doStatement

public final DoStatement doStatement()
                              throws ParseException
Parses a do statement

Throws:
ParseException
See Also:
DoStatement

switchStatement

public final SwitchStatement switchStatement()
                                      throws ParseException
Parses a switch statement

Throws:
ParseException
See Also:
SwitchStatement

forStatement

public final ForStatement forStatement()
                                throws ParseException
Parses a for statement

Throws:
ParseException
See Also:
ForStatement

forInit

public final java.util.List forInit()
                             throws ParseException
Used internally to parse a 'for' statement

Throws:
ParseException

statementExpressionList

public final java.util.List statementExpressionList()
                                             throws ParseException
Parses a comma separated list of expression

Throws:
ParseException

breakStatement

public final BreakStatement breakStatement()
                                    throws ParseException
Parses a break statement

Throws:
ParseException
See Also:
BreakStatement

continueStatement

public final ContinueStatement continueStatement()
                                          throws ParseException
Parses a continue statement

Throws:
ParseException
See Also:
ContinueStatement

returnStatement

public final ReturnStatement returnStatement()
                                      throws ParseException
Parses a return statement

Throws:
ParseException
See Also:
ReturnStatement

throwStatement

public final ThrowStatement throwStatement()
                                    throws ParseException
Parses a throw statement

Throws:
ParseException
See Also:
ThrowStatement

synchronizedStatement

public final SynchronizedStatement synchronizedStatement()
                                                  throws ParseException
Parses a synchronized statement

Throws:
ParseException
See Also:
SynchronizedStatement

tryStatement

public final TryStatement tryStatement()
                                throws ParseException
Parses a try statement

Throws:
ParseException
See Also:
TryStatement

statementExpression

public final Node statementExpression()
                               throws ParseException
Parses one statement expression

Throws:
ParseException
See Also:
Expression

expression

public final Expression expression()
                            throws ParseException
Parses an expression

Throws:
ParseException
See Also:
Expression

expressionSuffix

public final Expression expressionSuffix(Expression pre)
                                  throws ParseException
Used internally to parse an expression

Throws:
ParseException

conditionalExpression

public final Expression conditionalExpression()
                                       throws ParseException
Used internally to parse an expression

Throws:
ParseException

conditionalOrExpression

public final Expression conditionalOrExpression()
                                         throws ParseException
Used internally to parse an expression

Throws:
ParseException

conditionalAndExpression

public final Expression conditionalAndExpression()
                                          throws ParseException
Used internally to parse an expression

Throws:
ParseException

inclusiveOrExpression

public final Expression inclusiveOrExpression()
                                       throws ParseException
Used internally to parse an expression

Throws:
ParseException

exclusiveOrExpression

public final Expression exclusiveOrExpression()
                                       throws ParseException
Used internally to parse an expression

Throws:
ParseException

andExpression

public final Expression andExpression()
                               throws ParseException
Used internally to parse an expression

Throws:
ParseException

equalityExpression

public final Expression equalityExpression()
                                    throws ParseException
Used internally to parse an expression

Throws:
ParseException

instanceOfExpression

public final Expression instanceOfExpression()
                                      throws ParseException
Used internally to parse an expression

Throws:
ParseException

relationalExpression

public final Expression relationalExpression()
                                      throws ParseException
Used internally to parse an expression

Throws:
ParseException

shiftExpression

public final Expression shiftExpression()
                                 throws ParseException
Used internally to parse an expression

Throws:
ParseException

additiveExpression

public final Expression additiveExpression()
                                    throws ParseException
Used internally to parse an expression

Throws:
ParseException

multiplicativeExpression

public final Expression multiplicativeExpression()
                                          throws ParseException
Used internally to parse an expression

Throws:
ParseException

unaryExpression

public final Expression unaryExpression()
                                 throws ParseException
Used internally to parse an expression

Throws:
ParseException

unaryExpressionNotPlusMinus

public final Expression unaryExpressionNotPlusMinus()
                                             throws ParseException
Used internally to parse an expression

Throws:
ParseException

castExpression

public final Expression castExpression()
                                throws ParseException
Used internally to parse an expression

Throws:
ParseException

preIncrementExpression

public final Expression preIncrementExpression()
                                        throws ParseException
Used internally to parse an expression

Throws:
ParseException

preDecrementExpression

public final Expression preDecrementExpression()
                                        throws ParseException
Used internally to parse an expression

Throws:
ParseException

postfixExpression

public final Expression postfixExpression()
                                   throws ParseException
Used internally to parse an expression

Throws:
ParseException

primaryExpression

public final Expression primaryExpression()
                                   throws ParseException
Used internally to parse an expression

Throws:
ParseException

primaryPrefix

public final Expression primaryPrefix()
                               throws ParseException
Used internally to parse an expression

Throws:
ParseException

primarySuffix

public final koala.dynamicjava.parser.Parser.ExpressionSuffix primarySuffix()
                                                                     throws ParseException
Used internally to parse an expression

Throws:
ParseException

dotThis

public final koala.dynamicjava.parser.Parser.ExpressionSuffix dotThis()
                                                               throws ParseException
Used internally to parse an expression

Throws:
ParseException

dotAllocationExpression

public final koala.dynamicjava.parser.Parser.ExpressionSuffix dotAllocationExpression()
                                                                               throws ParseException
Used internally to parse an expression

Throws:
ParseException

simpleAllocationExpression

public final Allocation simpleAllocationExpression()
                                            throws ParseException
Used internally to parse an expression

Throws:
ParseException

dotIdentifier

public final koala.dynamicjava.parser.Parser.ExpressionSuffix dotIdentifier()
                                                                     throws ParseException
Used internally to parse an expression

Throws:
ParseException

arrayReference

public final koala.dynamicjava.parser.Parser.ExpressionSuffix arrayReference()
                                                                      throws ParseException
Used internally to parse an expression

Throws:
ParseException

arguments

public final koala.dynamicjava.parser.Parser.ArgumentsSuffix arguments()
                                                                throws ParseException
Used internally to parse an expression

Throws:
ParseException

argumentList

public final java.util.List argumentList()
                                  throws ParseException
Used internally to parse an expression

Throws:
ParseException

literal

public final Expression literal()
                         throws ParseException
Used internally to parse an expression

Throws:
ParseException

thisExpression

public final Expression thisExpression()
                                throws ParseException
Used internally to parse an expression

Throws:
ParseException

superExpression

public final Expression superExpression()
                                 throws ParseException
Used internally to parse an expression

Throws:
ParseException

qualifiedName

public final Expression qualifiedName()
                               throws ParseException
Used internally to parse an expression

Throws:
ParseException

classExpression

public final Expression classExpression()
                                 throws ParseException
Used internally to parse an expression

Throws:
ParseException

allocationExpression

public final Expression allocationExpression()
                                      throws ParseException
Used internally to parse an expression

Throws:
ParseException

arrayDimsAndInits

public final ArrayAllocation.TypeDescriptor arrayDimsAndInits()
                                                       throws ParseException
Used internally to parse an expression

Throws:
ParseException

type

public final Type type()
                throws ParseException
Used internally to parse types

Throws:
ParseException

resultType

public final Type resultType()
                      throws ParseException
Used internally to parse types

Throws:
ParseException

primitiveType

public final Type primitiveType()
                         throws ParseException
Used internally to parse types

Throws:
ParseException

castLookahead

public final void castLookahead()
                         throws ParseException
Used internally for lookahead

Throws:
ParseException

typeLookahead

public final void typeLookahead()
                         throws ParseException
Used internally for lookahead

Throws:
ParseException

resultTypeLookahead

public final void resultTypeLookahead()
                               throws ParseException
Used internally for lookahead

Throws:
ParseException

nameLookahead

public final void nameLookahead()
                         throws ParseException
Used internally for lookahead

Throws:
ParseException

primitiveTypeLookahead

public final void primitiveTypeLookahead()
                                  throws ParseException
Used internally for lookahead

Throws:
ParseException

literalLookahead

public final void literalLookahead()
                            throws ParseException
Used internally for lookahead

Throws:
ParseException

explicitConstructorInvocationLookahead

public final void explicitConstructorInvocationLookahead()
                                                  throws ParseException
Used internally for lookahead

Throws:
ParseException

argumentsLookahead

public final void argumentsLookahead()
                              throws ParseException
Used internally for lookahead

Throws:
ParseException

expressionLookahead

public final void expressionLookahead()
                               throws ParseException
Used internally for lookahead

Throws:
ParseException

assignmentOperatorLookahead

public final void assignmentOperatorLookahead()
                                       throws ParseException
Used internally for lookahead

Throws:
ParseException

conditionalExpressionLookahead

public final void conditionalExpressionLookahead()
                                          throws ParseException
Used internally for lookahead

Throws:
ParseException

conditionalOrExpressionLookahead

public final void conditionalOrExpressionLookahead()
                                            throws ParseException
Used internally for lookahead

Throws:
ParseException

conditionalAndExpressionLookahead

public final void conditionalAndExpressionLookahead()
                                             throws ParseException
Used internally for lookahead

Throws:
ParseException

inclusiveOrExpressionLookahead

public final void inclusiveOrExpressionLookahead()
                                          throws ParseException
Used internally for lookahead

Throws:
ParseException

exclusiveOrExpressionLookahead

public final void exclusiveOrExpressionLookahead()
                                          throws ParseException
Used internally for lookahead

Throws:
ParseException

andExpressionLookahead

public final void andExpressionLookahead()
                                  throws ParseException
Used internally for lookahead

Throws:
ParseException

equalityExpressionLookahead

public final void equalityExpressionLookahead()
                                       throws ParseException
Used internally for lookahead

Throws:
ParseException

instanceOfExpressionLookahead

public final void instanceOfExpressionLookahead()
                                         throws ParseException
Used internally for lookahead

Throws:
ParseException

relationalExpressionLookahead

public final void relationalExpressionLookahead()
                                         throws ParseException
Used internally for lookahead

Throws:
ParseException

shiftExpressionLookahead

public final void shiftExpressionLookahead()
                                    throws ParseException
Used internally for lookahead

Throws:
ParseException

additiveExpressionLookahead

public final void additiveExpressionLookahead()
                                       throws ParseException
Used internally for lookahead

Throws:
ParseException

multiplicativeExpressionLookahead

public final void multiplicativeExpressionLookahead()
                                             throws ParseException
Used internally for lookahead

Throws:
ParseException

unaryExpressionLookahead

public final void unaryExpressionLookahead()
                                    throws ParseException
Used internally for lookahead

Throws:
ParseException

preIncrementExpressionLookahead

public final void preIncrementExpressionLookahead()
                                           throws ParseException
Used internally for lookahead

Throws:
ParseException

preDecrementExpressionLookahead

public final void preDecrementExpressionLookahead()
                                           throws ParseException
Used internally for lookahead

Throws:
ParseException

unaryExpressionNotPlusMinusLookahead

public final void unaryExpressionNotPlusMinusLookahead()
                                                throws ParseException
Used internally for lookahead

Throws:
ParseException

postfixExpressionLookahead

public final void postfixExpressionLookahead()
                                      throws ParseException
Used internally for lookahead

Throws:
ParseException

castExpressionLookahead

public final void castExpressionLookahead()
                                   throws ParseException
Used internally for lookahead

Throws:
ParseException

primaryExpressionLookahead

public final void primaryExpressionLookahead()
                                      throws ParseException
Used internally for lookahead

Throws:
ParseException

primaryPrefixLookahead

public final void primaryPrefixLookahead()
                                  throws ParseException
Used internally for lookahead

Throws:
ParseException

primarySuffixLookahead

public final void primarySuffixLookahead()
                                  throws ParseException
Used internally for lookahead

Throws:
ParseException

allocationExpressionLookahead

public final void allocationExpressionLookahead()
                                         throws ParseException
Used internally for lookahead

Throws:
ParseException

classBodyLookahead

public final void classBodyLookahead()
                              throws ParseException
Used internally for lookahead

Throws:
ParseException

classBodyDeclarationLookahead

public final void classBodyDeclarationLookahead()
                                         throws ParseException
Used internally for lookahead

Throws:
ParseException

initializerLookahead

public final void initializerLookahead()
                                throws ParseException
Used internally for lookahead

Throws:
ParseException

modifiersLookahead

public final void modifiersLookahead()
                              throws ParseException
Used internally for lookahead

Throws:
ParseException

constructorDeclarationLookahead

public final void constructorDeclarationLookahead()
                                           throws ParseException
Used internally for lookahead

Throws:
ParseException

constructorDeclarationLookahead2

public final void constructorDeclarationLookahead2()
                                            throws ParseException
Used internally for lookahead

Throws:
ParseException

methodDeclarationLookahead

public final void methodDeclarationLookahead()
                                      throws ParseException
Used internally for lookahead

Throws:
ParseException

methodDeclarationLookahead2

public final void methodDeclarationLookahead2()
                                       throws ParseException
Used internally for lookahead

Throws:
ParseException

nameListLookahead

public final void nameListLookahead()
                             throws ParseException
Used internally for lookahead

Throws:
ParseException

methodDeclaratorLookahead

public final void methodDeclaratorLookahead()
                                     throws ParseException
Used internally for lookahead

Throws:
ParseException

formalParametersLookahead

public final void formalParametersLookahead()
                                     throws ParseException
Used internally for lookahead

Throws:
ParseException

formalParameterLookahead

public final void formalParameterLookahead()
                                    throws ParseException
Used internally for lookahead

Throws:
ParseException

fieldDeclarationLookahead

public final void fieldDeclarationLookahead()
                                     throws ParseException
Used internally for lookahead

Throws:
ParseException

variableDeclaratorLookahead

public final void variableDeclaratorLookahead()
                                       throws ParseException
Used internally for lookahead

Throws:
ParseException

variableDeclaratorIdLookahead

public final void variableDeclaratorIdLookahead()
                                         throws ParseException
Used internally for lookahead

Throws:
ParseException

blockLookahead

public final void blockLookahead()
                          throws ParseException
Used internally for lookahead

Throws:
ParseException

blockStatementLookahead

public final void blockStatementLookahead()
                                   throws ParseException
Used internally for lookahead

Throws:
ParseException

statementLookahead

public final void statementLookahead()
                              throws ParseException
Used internally for lookahead

Throws:
ParseException

labeledStatementLookahead

public final void labeledStatementLookahead()
                                     throws ParseException
Used internally for lookahead

Throws:
ParseException

statementExpressionLookahead

public final void statementExpressionLookahead()
                                        throws ParseException
Used internally for lookahead

Throws:
ParseException

switchStatementLookahead

public final void switchStatementLookahead()
                                    throws ParseException
Used internally for lookahead

Throws:
ParseException

ifStatementLookahead

public final void ifStatementLookahead()
                                throws ParseException
Used internally for lookahead

Throws:
ParseException

whileStatementLookahead

public final void whileStatementLookahead()
                                   throws ParseException
Used internally for lookahead

Throws:
ParseException

doStatementLookahead

public final void doStatementLookahead()
                                throws ParseException
Used internally for lookahead

Throws:
ParseException

forStatementLookahead

public final void forStatementLookahead()
                                 throws ParseException
Used internally for lookahead

Throws:
ParseException

forInitLookahead

public final void forInitLookahead()
                            throws ParseException
Used internally for lookahead

Throws:
ParseException

statementExpressionListLookahead

public final void statementExpressionListLookahead()
                                            throws ParseException
Used internally for lookahead

Throws:
ParseException

breakStatementLookahead

public final void breakStatementLookahead()
                                   throws ParseException
Used internally for lookahead

Throws:
ParseException

continueStatementLookahead

public final void continueStatementLookahead()
                                      throws ParseException
Used internally for lookahead

Throws:
ParseException

returnStatementLookahead

public final void returnStatementLookahead()
                                    throws ParseException
Used internally for lookahead

Throws:
ParseException

throwStatementLookahead

public final void throwStatementLookahead()
                                   throws ParseException
Used internally for lookahead

Throws:
ParseException

synchronizedStatementLookahead

public final void synchronizedStatementLookahead()
                                          throws ParseException
Used internally for lookahead

Throws:
ParseException

localVariableDeclarationLookahead

public final void localVariableDeclarationLookahead()
                                             throws ParseException
Used internally for lookahead

Throws:
ParseException

tryStatementLookahead

public final void tryStatementLookahead()
                                 throws ParseException
Used internally for lookahead

Throws:
ParseException

arrayDimsAndInitsLookahead

public final void arrayDimsAndInitsLookahead()
                                      throws ParseException
Used internally for lookahead

Throws:
ParseException

arrayInitializerLookahead

public final void arrayInitializerLookahead()
                                     throws ParseException
Used internally for lookahead

Throws:
ParseException

variableInitializerLookahead

public final void variableInitializerLookahead()
                                        throws ParseException
Used internally for lookahead

Throws:
ParseException

classDeclarationLookahead

public final void classDeclarationLookahead()
                                     throws ParseException
Used internally for lookahead

Throws:
ParseException

classDeclarationLookahead2

public final void classDeclarationLookahead2()
                                      throws ParseException
Used internally for lookahead

Throws:
ParseException

unmodifiedClassDeclarationLookahead

public final void unmodifiedClassDeclarationLookahead()
                                               throws ParseException
Used internally for lookahead

Throws:
ParseException

interfaceDeclarationLookahead

public final void interfaceDeclarationLookahead()
                                         throws ParseException
Used internally for lookahead

Throws:
ParseException

interfaceDeclarationLookahead2

public final void interfaceDeclarationLookahead2()
                                          throws ParseException
Used internally for lookahead

Throws:
ParseException

unmodifiedInterfaceDeclarationLookahead

public final void unmodifiedInterfaceDeclarationLookahead()
                                                   throws ParseException
Used internally for lookahead

Throws:
ParseException

interfaceMemberDeclarationLookahead

public final void interfaceMemberDeclarationLookahead()
                                               throws ParseException
Used internally for lookahead

Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(ParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public final ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


Copyright © 2001 Stephane Hillion. All Rights Reserved.