org.jtool.jxplatform.j2x.parser
Class JavaParser

java.lang.Object
  extended byorg.jtool.jxplatform.j2x.parser.JavaParser
All Implemented Interfaces:
JavaParserConstants

public class JavaParser
extends java.lang.Object
implements JavaParserConstants

Parses input source code and generates a DOM tree from it.


Field Summary
static Token jj_nt
           
static boolean lookingAhead
           
static Token token
           
static JavaParserTokenManager token_source
           
 
Fields inherited from interface org.jtool.jxplatform.j2x.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_LITERAL, DECR, DEFAULT, DIGIT, DO, DOT, DOUBLE, ELLIPSIS, ELSE, ENUM, EOF, EQ, EXPONENT, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GOTO, GT, HEX_LITERAL, HOOK, IDENTIFIER, IF, IMPLEMENTS, IMPORT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INCR, INSTANCEOF, INT, INTEGER_LITERAL, INTERFACE, LBRACE, LBRACKET, LE, LETTER, LONG, LPAREN, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NATIVE, NE, NEW, NULL, OCTAL_LITERAL, ORASSIGN, PACKAGE, 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, STAR, STARASSIGN, STATIC, STRICTFP, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, THIS, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHILE, XOR, XORASSIGN
 
Constructor Summary
JavaParser(java.io.InputStream stream)
           
JavaParser(JavaParserTokenManager tm)
           
JavaParser(java.io.Reader stream)
           
 
Method Summary
static void AdditiveExpression(org.w3c.dom.Element parent)
           AdditiveExpression: MultiplicativeExpression ( ( "+" | "-" ) MultiplicativeExpression )*
static org.w3c.dom.Element AllocationExpression()
           AllocationExpression: "new" PrimitiveType ArrayDimsAndInits | "new" ClassOrInterfaceType [ TypeArguments ] ( ArrayDimsAndInits | Arguments [ ClassOrInterfaceBody ] )
static void AndExpression(org.w3c.dom.Element parent)
           AndExpression: EqualityExpression ( "&" EqualityExpression )*
static void Annotation(org.w3c.dom.Element parent)
          Java5.0 annotation Annotation: NormalAnnotation | SingleMemberAnnotation | MarkerAnnotation
static void AnnotationTypeBody(org.w3c.dom.Element parent)
          Java5.0 annotation AnnotationTypeBody: "{" ( AnnotationTypeMemberDeclaration )* "}"
static void AnnotationTypeDeclaration(int modifiers, org.w3c.dom.Element melem, org.w3c.dom.Element parent)
          Java5.0 annotation AnnotationTypeDeclaration: "@" "interface" AnnotationTypeBody
static void AnnotationTypeMemberDeclaration(org.w3c.dom.Element parent)
          Java5.0 annotation AnnotationTypeMemberDeclaration: Modifiers ( Type "(" ")" [ DefaultValue ] ";" | ClassDeclaration | InterfaceDeclaration | EnumDeclaration | AnnotationTypeDeclaration | FieldDeclaration ) | ( ";" )
static void ArgumentList(org.w3c.dom.Element parent)
           ArgumentList: Expression ( "," Expression )*
static void Arguments(org.w3c.dom.Element parent)
           Arguments: "(" [ ArgumentList ] ")"
static void ArrayDimsAndInits(org.w3c.dom.Element parent)
           ArrayDimsAndInits: ( "[" Expression "]" )+ ( "[" "]" )* | ( "[" "]" )+ ArrayInitializer
static void ArrayInitializer(org.w3c.dom.Element parent)
           ArrayInitializer: "{" [ VariableInitializer ( "," VariableInitializer )* ] [ "," ] "}"
static void AssertStatement(org.w3c.dom.Element parent)
           AssertStatement: "assert" Expression [ ":" Expression ] ";"
static java.lang.String AssignmentOperator(org.w3c.dom.Element parent)
           AssignmentOperator: "=" | "*=" | "/=" | "%=" | "+=" | "-=" | "<<=" | ">>=" | ">>>=" | "&=" | "^=" | "|="
static void Block(org.w3c.dom.Element parent)
           Block: "{" ( BlockStatement )* "}"
static void BlockStatement(org.w3c.dom.Element parent)
           BlockStatement: LocalVariableDeclaration ";" | Statement | ClassDeclaration | InterfaceDeclaration
static void BooleanLiteral(org.w3c.dom.Element parent)
           BooleanLiteral: ( "true" | "false" )
static void BreakStatement(org.w3c.dom.Element parent)
           BreakStatement: "break" [ ] ";"
static void CastExpression(org.w3c.dom.Element parent)
           CastExpression: "(" Type ")" UnaryExpression | "(" Type ")" UnaryExpressionNotPlusMinus
static void CastLookahead()
           
static void ClassDeclaration(int modifiers, org.w3c.dom.Element melem, org.w3c.dom.Element parent)
           ClassDeclaration: "class" [ TypeParameters ] [ Extends ] [ ImplementsList ] ClassOrInterfaceBody
static void ClassOrInterfaceBody(org.w3c.dom.Element parent)
           ClassOrInterfaceBody: "{" ( ClassOrInterfaceBodyDeclaration )* "}"
static void ClassOrInterfaceBodyDeclaration(org.w3c.dom.Element parent)
           ClassOrInterfaceBodyDeclaration: Initializer | modifiers = Modifiers ( ClassDeclaration | IterfaceDeclaration | EnumDeclaration | ConstructorDeclaration | FieldDeclaration | MethodDeclaration ) | ";"
static java.lang.String ClassOrInterfaceType(org.w3c.dom.Element parent)
           ClassOrInterfaceType: [ TypeArguments ] ( "."
static void close()
          Closes the parser.
static void CompilationUnit()
           CompilationUnit: [ PackageDeclaration ] ( ImportDeclaration )* ( TypeDeclaration )*
static void ConditionalAndExpression(org.w3c.dom.Element parent)
           ConditionalAndExpression: InclusiveOrExpression ( "&&" InclusiveOrExpression )*
static void ConditionalExpression(org.w3c.dom.Element parent)
           ConditionalExpression: ConditionalOrExpression [ "?"
static void ConditionalOrExpression(org.w3c.dom.Element parent)
           ConditionalOrExpression: ConditionalAndExpression ( "||" ConditionalAndExpression )*
static void ConstructorDeclaration(int modifiers, org.w3c.dom.Element melem, org.w3c.dom.Element parent)
           ConstructorDeclaration: [ TypeParameters() ] FormalParameters [ ThrowsList ] "{" [ ExplicitConstructorInvocation ] ( BlockStatement )* "}"
static void ContinueStatement(org.w3c.dom.Element parent)
           ContinueStatement: "continue" [ ] ";"
static void DefaultValue(org.w3c.dom.Element parent)
          Java5.0 annotation DefaultValue: "default" MemberValue
static void disable_tracing()
           
static void DoStatement(org.w3c.dom.Element parent)
           DoStatement: "do" Statement "while" "(" Expression ")" ";"
static void EmptyStatement(org.w3c.dom.Element parent)
           EmptyStatement: ";"
static void enable_tracing()
           
static void EnumBody(org.w3c.dom.Element parent)
          Java5.0 enum EnumBody: "{" EnumConstant ( "," EnumConstant )* [ ";" ( ClassOrInterfaceBodyDeclaration )* ] "}"
static void EnumConstant(org.w3c.dom.Element parent)
          Java5.0 enum EnumConstant: [ Arguments ] [ ClassOrInterfaceBody ]
static void EnumDeclaration(int modifiers, org.w3c.dom.Element melem, org.w3c.dom.Element parent)
          Java5.0 enum EnumDeclaration: "enum" [ ImplementsList ] EnumBody
static void EqualityExpression(org.w3c.dom.Element parent)
           EqualityExpression: InstanceOfExpression ( ( "==" | "!
static void ExclusiveOrExpression(org.w3c.dom.Element parent)
           ExclusiveOrExpression: AndExpression ( "^" AndExpression )*
static void ExplicitConstructorInvocation(org.w3c.dom.Element parent)
           ExplicitConstructorInvocation: "this" Arguments ";" | [ PrimaryExpression "." ] "super" Arguments ";"
static void Expression(org.w3c.dom.Element parent)
           Expression: ConditionalExpression [ AssignmentOperator Expression ]
static void Extends(org.w3c.dom.Element parent)
           Extends: "extends" ClassOrInterfaceType
static void ExtendsList(org.w3c.dom.Element parent)
           ExtendsList: "extends" ClassOrInterfaceType ( "," ClassOrInterfaceType )*
static void FieldDeclaration(int modifiers, org.w3c.dom.Element melem, org.w3c.dom.Element parent)
           FieldDeclaration: Type VariableDeclarator ( "," VariableDeclarator )* ";"
static void ForInit(org.w3c.dom.Element parent)
           ForInit: LocalVariableDeclaration | StatementExpressionList
static void FormalParameter(org.w3c.dom.Element parent)
           FormalParameter: [ "final" ] Type [ "..." ] VariableDeclaratorId
static void FormalParameters(org.w3c.dom.Element parent)
           FormalParameters: "(" [ FormalParameter ( "," FormalParameter )* ] ")"
static void ForStatement(org.w3c.dom.Element parent)
           ForStatement: "for" "(" ( Type ":" Expression ) | [ ForInit ] ";" [ Expression ] ";" [ ForUpdate ] ) ")" Statement
static void ForUpdate(org.w3c.dom.Element parent)
           ForUpdate: StatementExpressionList
static ParseException generateParseException()
           
static Token getNextToken()
           
static Token getToken(int index)
           
static void IfStatement(org.w3c.dom.Element parent)
           IfStatement: "if" "(" Expression ")" Statement [ "else" Statement ]
static void ImplementsList(org.w3c.dom.Element parent)
           ImplementsList: "implements" ClassOrInterfaceType ( "," ClassOrInterfaceType )*
static void ImportDeclaration(org.w3c.dom.Element parent)
           ImportDeclaration: "import" [ "static" ] Name [ "." "*" ] ";"
static void InclusiveOrExpression(org.w3c.dom.Element parent)
           InclusiveOrExpression: ExclusiveOrExpression ( "|" ExclusiveOrExpression )*
static void Initializer(org.w3c.dom.Element melem, org.w3c.dom.Element parent)
           Initializer: [ "static" ] Block
static void InstanceOfExpression(org.w3c.dom.Element parent)
           InstanceOfExpression: RelationalExpression [ "instanceof" Type ]
static void InterfaceDeclaration(int modifiers, org.w3c.dom.Element melem, org.w3c.dom.Element parent)
           InterfaceDeclaration: "interface" [ TypeParameters ] [ ExtendsList ] ClassOrInterfaceBody
static void LabeledStatement(org.w3c.dom.Element parent)
           LabeledStatement: ":" Statement
static org.w3c.dom.Element Literal()
           Literal: | | | | BooleanLiteral | NullLiteral
static void LocalVariableDeclaration(org.w3c.dom.Element parent)
           LocalVariableDeclaration: [ "final" ] Type VariableDeclarator ( "," VariableDeclarator )*
static void MarkerAnnotation(org.w3c.dom.Element parent)
          Java5.0 annotation MarkerAnnotation: "@" Name
static org.w3c.dom.Element MemberSelector(org.w3c.dom.Element parent)
          Java 1.5 type parameter MemberSelector: "."
static void MemberValue(org.w3c.dom.Element parent)
          Java5.0 annotation MemberValue: Annotation | MemberValueArrayInitializer | ConditionalExpression
static void MemberValueArrayInitializer(org.w3c.dom.Element parent)
          Java5.0 annotation MemberValueArrayInitializer: "{" MemberValue ( "," MemberValue )* [ "," ] "}"
static void MemberValuePair(org.w3c.dom.Element parent)
          Java5.0 annotation MemberValuePair: "=" MemberValue
static void MemberValuePairs(org.w3c.dom.Element parent)
          Java5.0 annotation MemberValuePairs: MemberValuePair ( "," MemberValuePair )*
static void MethodDeclaration(int modifiers, org.w3c.dom.Element melem, org.w3c.dom.Element parent)
           MethodDeclaration: [ TypeParameters ] ResultType MethodDeclarator [ ThrowsList ] ( Block | ";" )
static java.lang.String MethodDeclarator(org.w3c.dom.Element parent, java.lang.String typeid)
           MethodDeclarator FormalParameters ( "[" "]" )*
static int Modifiers(org.w3c.dom.Element elem, org.w3c.dom.Element parent)
           ( "public" | "static" | "protected" | "private" | "final" | "abstract" | "synchronized" | "native" | "transient" | "volatile" | "strictfp" | Annotation )*
static void MultiplicativeExpression(org.w3c.dom.Element parent)
           MultiplicativeExpression: UnaryExpression ( ( "*" | "/" | "%" ) UnaryExpression )*
static org.w3c.dom.Element Name()
           Name: ( "."
static void NormalAnnotation(org.w3c.dom.Element parent)
          Java5.0 annotation NormalAnnotation: "@" Name "(" [ MemberValuePairs ] ")"
static void NullLiteral(org.w3c.dom.Element parent)
           BooleanLiteral: "null"
static void PackageDeclaration(org.w3c.dom.Element parent)
           PackageDeclaration: "package" Name ";"
static void parse(java.io.Reader reader)
          Parses input source code by using JavaCC's JavaParser.
static void PostfixExpression(org.w3c.dom.Element parent)
           PostfixExpression: PrimaryExpression [ "++" | "--" ]
static void PreDecrementExpression(org.w3c.dom.Element parent)
           PreDecrementExpression: "--" PrimaryExpression
static void PreIncrementExpression(org.w3c.dom.Element parent)
           PreIncrementExpression: "++" PrimaryExpression
static void PrimaryExpression(org.w3c.dom.Element parent)
           PrimaryExpression: PrimaryPrefix ( PrimarySuffix )*
static org.w3c.dom.Element PrimaryPrefix(org.w3c.dom.Element parent)
           PrimaryPrefix: Literal | "this" | "super" "."
static org.w3c.dom.Element PrimarySuffix(org.w3c.dom.Element parent)
           PrimarySuffix: "."
static java.lang.String PrimitiveType(org.w3c.dom.Element parent)
           PrimitiveType: "boolean" | "char" | "byte" | "short" | "int" | "long" | "float" | "double"
static java.lang.String QualifiedName(org.w3c.dom.Element parent)
           QualifiedName: ( "."
static java.lang.String ReferenceType(org.w3c.dom.Element parent)
           ReferenceType: PrimitiveType ( "[" "]" )+ | ClassOrInterfaceType ( "[" "]" )*
static void ReInit(java.io.InputStream stream)
           
 void ReInit(JavaParserTokenManager tm)
           
static void ReInit(java.io.Reader stream)
           
static void RelationalExpression(org.w3c.dom.Element parent)
           RelationalExpression: ShiftExpression ( ( "<" | ">" | "<=" | ">=" ) ShiftExpression )*
static java.lang.String ResultType(org.w3c.dom.Element parent)
           ResultType: "void" | Type
static void ReturnStatement(org.w3c.dom.Element parent)
           ReturnStatement: "return" [ Expression(null) ] ";"
static Token RSIGNEDSHIFT()
           ">>"
static Token RUNSIGNEDSHIFT()
           ">>>"
static void setSource(java.lang.String fname, org.w3c.dom.Document d)
          Sets the name of source code to be parsed and its DOM document.
static void ShiftExpression(org.w3c.dom.Element parent)
           ShiftExpression: AdditiveExpression ( ( "<<" | RSIGNEDSHIFT | RUNSIGNEDSHIFT ) AdditiveExpression )*
static void SingleMemberAnnotation(org.w3c.dom.Element parent)
          Java5.0 annotation SingleMemberAnnotation: "@" Name "(" MemberValue ")"
static void Statement(org.w3c.dom.Element parent)
           Statement: LabeledStatement | AssertStatement | Block | EmptyStatement | StatementExpression0 ";" | SwitchStatement | IfStatement | WhileStatement | DoStatement | ForStatement | BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement | SynchronizedStatement | TryStatement
static void StatementExpression(org.w3c.dom.Element parent)
           StatementExpression: PreIncrementExpression | PreDecrementExpression | PrimaryExpression [ "++" | "--" | AssignmentOperator Expression ]
static org.w3c.dom.Element StatementExpression0(org.w3c.dom.Element parent)
           StatementExpression0: StatementExpression
static void StatementExpressionList(org.w3c.dom.Element parent)
           StatementExpressionList: StatementExpression ( "," StatementExpression )*
static void SwitchLabel(org.w3c.dom.Element parent)
           SwitchLabel: "case" Expression ":" | "default" ":"
static void SwitchStatement(org.w3c.dom.Element parent)
           SwitchStatement: "switch" "(" Expression ")" "{" ( SwitchLabel ( BlockStatement )* )* "}"
static void SynchronizedStatement(org.w3c.dom.Element parent)
           SynchronizedStatement: "synchronized" "(" Expression ")" Block
static void ThrowsList(org.w3c.dom.Element parent)
           ThrowsList: "throws" ClassOrInterfaceType ( "," ClassOrInterfaceType )*
static void ThrowStatement(org.w3c.dom.Element parent)
           ThrowStatement: "throw" Expression ";"
static void TryStatement(org.w3c.dom.Element parent)
           TryStatement: "try" Block ( "catch" "(" FormalParameter ")" Block )* [ "finally" Block ]
static java.lang.String Type(org.w3c.dom.Element parent)
           Type: ReferenceType | PrimitiveType
static void TypeArgument(org.w3c.dom.Element parent)
          Java5.0 type parameter TypeArgument: ReferenceType | "?"
static void TypeArguments(org.w3c.dom.Element parent)
          Java5.0 type parameter TypeArguments: "<" TypeArgument ( "," TypeArgument )* ">"
static void TypeBound(org.w3c.dom.Element parent)
          Java5.0 type parameter TypeBound: "extends" ClassOrInterfaceType ( "&" ClassOrInterfaceType )*
static void TypeDeclaration(org.w3c.dom.Element parent)
           TypeDeclaration: ";" | Modifiers ( ClassDeclaration | InterfaceDeclaration | EnumDeclaration | AnnotationTypeDeclaration )
static void TypeParameter(org.w3c.dom.Element parent)
          Java5.0 type parameter TypeParameter: [ TypeBound ]
static void TypeParameters(org.w3c.dom.Element parent)
          Java5.0 type parameter TypeParameters: "<" TypeParameter ( "," TypeParameter )* ">"
static void UnaryExpression(org.w3c.dom.Element parent)
           UnaryExpression: ( "+" | "-" ) UnaryExpression | PreIncrementExpression | PreDecrementExpression | UnaryExpressionNotPlusMinus
static void UnaryExpressionNotPlusMinus(org.w3c.dom.Element parent)
           UnaryExpressionNotPlusMinus: ( "~" | "!"
static java.lang.String VariableDeclarator(org.w3c.dom.Element parent, java.lang.String typeid)
           VariableDeclarator: VariableDeclaratorId [ "=" VariableInitializer ]
static java.lang.String VariableDeclaratorId(java.lang.String typeid, org.w3c.dom.Element parent, org.w3c.dom.Element grandparent)
           VariableDeclaratorId: ( "[" "]" )*
static void VariableInitializer(org.w3c.dom.Element parent)
           VariableInitializer: ArrayInitializer | Expression
static void WhileStatement(org.w3c.dom.Element parent)
           WhileStatement: "while" "(" Expression ")" Statement
static java.lang.String WildcardBounds(org.w3c.dom.Element parent)
          Java5.0 type parameter WildcardBounds: "extends" ReferenceType | "super" ReferenceType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public static JavaParserTokenManager token_source

token

public static Token token

jj_nt

public static Token jj_nt

lookingAhead

public static boolean lookingAhead
Constructor Detail

JavaParser

public JavaParser(java.io.InputStream stream)

JavaParser

public JavaParser(java.io.Reader stream)

JavaParser

public JavaParser(JavaParserTokenManager tm)
Method Detail

setSource

public static void setSource(java.lang.String fname,
                             org.w3c.dom.Document d)
Sets the name of source code to be parsed and its DOM document.

Parameters:
fname - The name of source code.
d - A DOM object.

parse

public static void parse(java.io.Reader reader)
                  throws ParseException
Parses input source code by using JavaCC's JavaParser.

Parameters:
reader - A character-stream reader of source code to be parsed.
Throws:
ParseException - if parse errors are encountered.

close

public static void close()
Closes the parser.


CompilationUnit

public static final void CompilationUnit()
                                  throws ParseException
 CompilationUnit:
   [ PackageDeclaration ]
   ( ImportDeclaration )*
   ( TypeDeclaration )*
   
 

Throws:
ParseException

PackageDeclaration

public static final void PackageDeclaration(org.w3c.dom.Element parent)
                                     throws ParseException
 PackageDeclaration:
   "package" Name ";"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ImportDeclaration

public static final void ImportDeclaration(org.w3c.dom.Element parent)
                                    throws ParseException
 ImportDeclaration:
   "import" [ "static" ] Name [ "." "*" ] ";"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

Modifiers

public static final int Modifiers(org.w3c.dom.Element elem,
                                  org.w3c.dom.Element parent)
                           throws ParseException
  ( "public" | "static" | "protected" | "private" | "final" | "abstract"
  | "synchronized" | "native" | "transient" | "volatile" | "strictfp"
  | Annotation
  )*

Parameters:
elem - The examined node.
parent - The parent of the examined node.
Throws:
ParseException

TypeDeclaration

public static final void TypeDeclaration(org.w3c.dom.Element parent)
                                  throws ParseException
 TypeDeclaration:
     ";"
    | Modifiers
      ( ClassDeclaration
      | InterfaceDeclaration
      | EnumDeclaration
      | AnnotationTypeDeclaration
      )
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ClassDeclaration

public static final void ClassDeclaration(int modifiers,
                                          org.w3c.dom.Element melem,
                                          org.w3c.dom.Element parent)
                                   throws ParseException
 ClassDeclaration:
   "class"  [ TypeParameters ] [ Extends ] [ ImplementsList ]
   ClassOrInterfaceBody
 

Parameters:
modifiers - A modifier string.
melem - The node corresponding to a modifier.
parent - The parent of the examined node.
Throws:
ParseException

InterfaceDeclaration

public static final void InterfaceDeclaration(int modifiers,
                                              org.w3c.dom.Element melem,
                                              org.w3c.dom.Element parent)
                                       throws ParseException
 InterfaceDeclaration:
   "interface"  [ TypeParameters ] [ ExtendsList ]
   ClassOrInterfaceBody
 

Parameters:
modifiers - A modifier string.
melem - The node corresponding to a modifier.
parent - The parent of the examined node.
Throws:
ParseException

Extends

public static final void Extends(org.w3c.dom.Element parent)
                          throws ParseException
 Extends:
   "extends" ClassOrInterfaceType
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ExtendsList

public static final void ExtendsList(org.w3c.dom.Element parent)
                              throws ParseException
 ExtendsList:
   "extends" ClassOrInterfaceType ( "," ClassOrInterfaceType )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ImplementsList

public static final void ImplementsList(org.w3c.dom.Element parent)
                                 throws ParseException
 ImplementsList:
   "implements" ClassOrInterfaceType ( "," ClassOrInterfaceType )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

EnumDeclaration

public static final void EnumDeclaration(int modifiers,
                                         org.w3c.dom.Element melem,
                                         org.w3c.dom.Element parent)
                                  throws ParseException
Java5.0 enum
        
  EnumDeclaration:
    "enum"  [ ImplementsList ]
    EnumBody
 

Parameters:
modifiers - A modifier string.
melem - The node corresponding to a modifier.
parent - The parent of the examined node.
Throws:
ParseException

EnumBody

public static final void EnumBody(org.w3c.dom.Element parent)
                           throws ParseException
Java5.0 enum
        
  EnumBody:
    "{"
    EnumConstant ( "," EnumConstant )*
    [ ";" ( ClassOrInterfaceBodyDeclaration )* ]
    "}"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

EnumConstant

public static final void EnumConstant(org.w3c.dom.Element parent)
                               throws ParseException
Java5.0 enum
  EnumConstant:
     [ Arguments ] [ ClassOrInterfaceBody ]
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

TypeParameters

public static final void TypeParameters(org.w3c.dom.Element parent)
                                 throws ParseException
Java5.0 type parameter
        
  TypeParameters:
    "<" TypeParameter ( "," TypeParameter )* ">"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

TypeParameter

public static final void TypeParameter(org.w3c.dom.Element parent)
                                throws ParseException
Java5.0 type parameter
        
  TypeParameter:
     [ TypeBound ]
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

TypeBound

public static final void TypeBound(org.w3c.dom.Element parent)
                            throws ParseException
Java5.0 type parameter
        
  TypeBound:
    "extends" ClassOrInterfaceType ( "&" ClassOrInterfaceType )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ClassOrInterfaceBody

public static final void ClassOrInterfaceBody(org.w3c.dom.Element parent)
                                       throws ParseException
 ClassOrInterfaceBody:
   "{" ( ClassOrInterfaceBodyDeclaration )* "}"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ClassOrInterfaceBodyDeclaration

public static final void ClassOrInterfaceBodyDeclaration(org.w3c.dom.Element parent)
                                                  throws ParseException
 ClassOrInterfaceBodyDeclaration:
     Initializer
   | modifiers = Modifiers
     ( ClassDeclaration
     | IterfaceDeclaration
     | EnumDeclaration
     | ConstructorDeclaration
     | FieldDeclaration
     | MethodDeclaration
     )
   | ";"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

FieldDeclaration

public static final void FieldDeclaration(int modifiers,
                                          org.w3c.dom.Element melem,
                                          org.w3c.dom.Element parent)
                                   throws ParseException
 FieldDeclaration:
   Type VariableDeclarator ( "," VariableDeclarator )* ";"
 

Parameters:
modifiers - A modifier string.
melem - The node corresponding to a modifier.
parent - The parent of the examined node.
Throws:
ParseException

VariableDeclarator

public static final java.lang.String VariableDeclarator(org.w3c.dom.Element parent,
                                                        java.lang.String typeid)
                                                 throws ParseException
 VariableDeclarator:
   VariableDeclaratorId [ "=" VariableInitializer ]
 

Parameters:
parent - The parent of the examined node.
typeid - The id string of the type.
Throws:
ParseException

VariableDeclaratorId

public static final java.lang.String VariableDeclaratorId(java.lang.String typeid,
                                                          org.w3c.dom.Element parent,
                                                          org.w3c.dom.Element grandparent)
                                                   throws ParseException
 VariableDeclaratorId:
    ( "[" "]" )*
 

Parameters:
typeid - The id string of the type.
parent - The parent of the examined node.
grandparent - The grand-parent of the examined node.
Throws:
ParseException

VariableInitializer

public static final void VariableInitializer(org.w3c.dom.Element parent)
                                      throws ParseException
 VariableInitializer:
     ArrayInitializer
   | Expression
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ArrayInitializer

public static final void ArrayInitializer(org.w3c.dom.Element parent)
                                   throws ParseException
 ArrayInitializer:
   "{" [ VariableInitializer ( "," VariableInitializer )* ] [ "," ] "}"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

MethodDeclaration

public static final void MethodDeclaration(int modifiers,
                                           org.w3c.dom.Element melem,
                                           org.w3c.dom.Element parent)
                                    throws ParseException
 MethodDeclaration:
   [ TypeParameters ] ResultType MethodDeclarator [ ThrowsList ]
   ( Block | ";" )
 

Parameters:
modifiers - A modifier string.
melem - The node corresponding to a modifier.
parent - The parent of the examined node.
Throws:
ParseException

MethodDeclarator

public static final java.lang.String MethodDeclarator(org.w3c.dom.Element parent,
                                                      java.lang.String typeid)
                                               throws ParseException
 MethodDeclarator
    FormalParameters ( "[" "]" )*
 

Parameters:
parent - The parent of the examined node.
typeid - The id string of the type.
Throws:
ParseException

ThrowsList

public static final void ThrowsList(org.w3c.dom.Element parent)
                             throws ParseException
 ThrowsList:
   "throws" ClassOrInterfaceType ( "," ClassOrInterfaceType )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

FormalParameters

public static final void FormalParameters(org.w3c.dom.Element parent)
                                   throws ParseException
 FormalParameters:
   "(" [ FormalParameter ( "," FormalParameter )* ] ")"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

FormalParameter

public static final void FormalParameter(org.w3c.dom.Element parent)
                                  throws ParseException
 FormalParameter:
   [ "final" ] Type [ "..." ] VariableDeclaratorId
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ConstructorDeclaration

public static final void ConstructorDeclaration(int modifiers,
                                                org.w3c.dom.Element melem,
                                                org.w3c.dom.Element parent)
                                         throws ParseException
 ConstructorDeclaration:
   [ TypeParameters() ]
    FormalParameters [ ThrowsList ]
   "{"
   [ ExplicitConstructorInvocation ]
   ( BlockStatement )*
   "}"
 

Parameters:
modifiers - A modifier string.
melem - The node corresponding to a modifier.
parent - The parent of the examined node.
Throws:
ParseException

ExplicitConstructorInvocation

public static final void ExplicitConstructorInvocation(org.w3c.dom.Element parent)
                                                throws ParseException
 ExplicitConstructorInvocation:
   "this" Arguments ";"
   | [ PrimaryExpression "." ] "super" Arguments ";"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

Initializer

public static final void Initializer(org.w3c.dom.Element melem,
                                     org.w3c.dom.Element parent)
                              throws ParseException
 Initializer:
   [ "static" ] Block
 

Parameters:
melem - The node corresponding to a modifier.
parent - The parent of the examined node.
Throws:
ParseException

Type

public static final java.lang.String Type(org.w3c.dom.Element parent)
                                   throws ParseException
 Type:
     ReferenceType
   | PrimitiveType
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ReferenceType

public static final java.lang.String ReferenceType(org.w3c.dom.Element parent)
                                            throws ParseException
 ReferenceType:
     PrimitiveType ( "[" "]" )+
   | ClassOrInterfaceType ( "[" "]" )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ClassOrInterfaceType

public static final java.lang.String ClassOrInterfaceType(org.w3c.dom.Element parent)
                                                   throws ParseException
 ClassOrInterfaceType:
    [ TypeArguments ] ( "."  [ TypeArguments ] )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

TypeArguments

public static final void TypeArguments(org.w3c.dom.Element parent)
                                throws ParseException
Java5.0 type parameter
 TypeArguments:
   "<" TypeArgument ( "," TypeArgument )* ">"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

TypeArgument

public static final void TypeArgument(org.w3c.dom.Element parent)
                               throws ParseException
Java5.0 type parameter
        
  TypeArgument:
      ReferenceType
    | "?" [ WildcardBounds ]
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

WildcardBounds

public static final java.lang.String WildcardBounds(org.w3c.dom.Element parent)
                                             throws ParseException
Java5.0 type parameter
        
  WildcardBounds:
      "extends" ReferenceType
    | "super" ReferenceType
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

PrimitiveType

public static final java.lang.String PrimitiveType(org.w3c.dom.Element parent)
                                            throws ParseException
 PrimitiveType:
     "boolean" | "char" | "byte" | "short" | "int"
   | "long" | "float" | "double"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ResultType

public static final java.lang.String ResultType(org.w3c.dom.Element parent)
                                         throws ParseException
 ResultType:
   "void" | Type
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

QualifiedName

public static final java.lang.String QualifiedName(org.w3c.dom.Element parent)
                                            throws ParseException
 QualifiedName:
    ( "."  )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

Expression

public static final void Expression(org.w3c.dom.Element parent)
                             throws ParseException
 Expression:
   ConditionalExpression [ AssignmentOperator Expression ]
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

AssignmentOperator

public static final java.lang.String AssignmentOperator(org.w3c.dom.Element parent)
                                                 throws ParseException
 AssignmentOperator:
     "=" | "*=" | "/=" | "%=" | "+=" | "-="
   | "<<=" | ">>=" | ">>>=" | "&="  | "^=" | "|="
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ConditionalExpression

public static final void ConditionalExpression(org.w3c.dom.Element parent)
                                        throws ParseException
 ConditionalExpression:
   ConditionalOrExpression [ "?" Expression ":" Expression ]
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ConditionalOrExpression

public static final void ConditionalOrExpression(org.w3c.dom.Element parent)
                                          throws ParseException
 ConditionalOrExpression:
   ConditionalAndExpression ( "||" ConditionalAndExpression )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ConditionalAndExpression

public static final void ConditionalAndExpression(org.w3c.dom.Element parent)
                                           throws ParseException
 ConditionalAndExpression:
   InclusiveOrExpression ( "&&" InclusiveOrExpression )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

InclusiveOrExpression

public static final void InclusiveOrExpression(org.w3c.dom.Element parent)
                                        throws ParseException
 InclusiveOrExpression:
   ExclusiveOrExpression ( "|" ExclusiveOrExpression )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ExclusiveOrExpression

public static final void ExclusiveOrExpression(org.w3c.dom.Element parent)
                                        throws ParseException
 ExclusiveOrExpression:
   AndExpression ( "^" AndExpression )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

AndExpression

public static final void AndExpression(org.w3c.dom.Element parent)
                                throws ParseException
 AndExpression:
   EqualityExpression ( "&" EqualityExpression )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

EqualityExpression

public static final void EqualityExpression(org.w3c.dom.Element parent)
                                     throws ParseException
 EqualityExpression:
   InstanceOfExpression ( ( "==" | "!=" ) InstanceOfExpression )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

InstanceOfExpression

public static final void InstanceOfExpression(org.w3c.dom.Element parent)
                                       throws ParseException
 InstanceOfExpression:
   RelationalExpression [ "instanceof" Type ]
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

RelationalExpression

public static final void RelationalExpression(org.w3c.dom.Element parent)
                                       throws ParseException
 RelationalExpression:
   ShiftExpression ( ( "<" | ">" | "<=" | ">=" ) ShiftExpression )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ShiftExpression

public static final void ShiftExpression(org.w3c.dom.Element parent)
                                  throws ParseException
 ShiftExpression:
   AdditiveExpression
   ( ( "<<" | RSIGNEDSHIFT | RUNSIGNEDSHIFT ) AdditiveExpression )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

RSIGNEDSHIFT

public static final Token RSIGNEDSHIFT()
                                throws ParseException
 ">>"
 

Throws:
ParseException

RUNSIGNEDSHIFT

public static final Token RUNSIGNEDSHIFT()
                                  throws ParseException
 ">>>"
 

Throws:
ParseException

AdditiveExpression

public static final void AdditiveExpression(org.w3c.dom.Element parent)
                                     throws ParseException
 AdditiveExpression:
   MultiplicativeExpression ( ( "+" | "-" ) MultiplicativeExpression )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

MultiplicativeExpression

public static final void MultiplicativeExpression(org.w3c.dom.Element parent)
                                           throws ParseException
 MultiplicativeExpression:
   UnaryExpression ( ( "*" | "/" | "%" ) UnaryExpression )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

UnaryExpression

public static final void UnaryExpression(org.w3c.dom.Element parent)
                                  throws ParseException
 UnaryExpression:
    ( "+" | "-" ) UnaryExpression
   | PreIncrementExpression
   | PreDecrementExpression
   | UnaryExpressionNotPlusMinus
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

PreIncrementExpression

public static final void PreIncrementExpression(org.w3c.dom.Element parent)
                                         throws ParseException
 PreIncrementExpression:
   "++" PrimaryExpression
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

PreDecrementExpression

public static final void PreDecrementExpression(org.w3c.dom.Element parent)
                                         throws ParseException
 PreDecrementExpression:
   "--" PrimaryExpression
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

UnaryExpressionNotPlusMinus

public static final void UnaryExpressionNotPlusMinus(org.w3c.dom.Element parent)
                                              throws ParseException
 UnaryExpressionNotPlusMinus:
   ( "~" | "!" ) UnaryExpression
   | CastExpression
   | PostfixExpression
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

CastLookahead

public static final void CastLookahead()
                                throws ParseException
Throws:
ParseException

PostfixExpression

public static final void PostfixExpression(org.w3c.dom.Element parent)
                                    throws ParseException
 PostfixExpression:
   PrimaryExpression [ "++" | "--" ]
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

CastExpression

public static final void CastExpression(org.w3c.dom.Element parent)
                                 throws ParseException
 CastExpression:
     "(" Type ")" UnaryExpression
   | "(" Type ")" UnaryExpressionNotPlusMinus
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

PrimaryExpression

public static final void PrimaryExpression(org.w3c.dom.Element parent)
                                    throws ParseException
 PrimaryExpression:
   PrimaryPrefix ( PrimarySuffix )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

PrimaryPrefix

public static final org.w3c.dom.Element PrimaryPrefix(org.w3c.dom.Element parent)
                                               throws ParseException
 PrimaryPrefix:
     Literal
   | "this"
   | "super" "." 
   | "(" Expression ")"
   | AllocationExpression
   | ResultType "." "class"
   | Name
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

PrimarySuffix

public static final org.w3c.dom.Element PrimarySuffix(org.w3c.dom.Element parent)
                                               throws ParseException
 PrimarySuffix:
     "." "this"
   | "." "super"
   | "." AllocationExpression
   | MemberSelector
   | "[" Expression "]"
   | "." 
   | Arguments
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

Name

public static final org.w3c.dom.Element Name()
                                      throws ParseException
 Name:
    ( "."  )*
 

Throws:
ParseException

MemberSelector

public static final org.w3c.dom.Element MemberSelector(org.w3c.dom.Element parent)
                                                throws ParseException
Java 1.5 type parameter
 MemberSelector:
   "." TypeArguments 
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

Literal

public static final org.w3c.dom.Element Literal()
                                         throws ParseException
 Literal:
     
   | 
   | 
   | 
   | BooleanLiteral
   | NullLiteral
 

Throws:
ParseException

BooleanLiteral

public static final void BooleanLiteral(org.w3c.dom.Element parent)
                                 throws ParseException
 BooleanLiteral:
   ( "true"  | "false" )
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

NullLiteral

public static final void NullLiteral(org.w3c.dom.Element parent)
                              throws ParseException
 BooleanLiteral:
   "null"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

Arguments

public static final void Arguments(org.w3c.dom.Element parent)
                            throws ParseException
 Arguments:
   "(" [ ArgumentList ] ")"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ArgumentList

public static final void ArgumentList(org.w3c.dom.Element parent)
                               throws ParseException
 ArgumentList:
   Expression ( "," Expression )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

AllocationExpression

public static final org.w3c.dom.Element AllocationExpression()
                                                      throws ParseException
 AllocationExpression:
     "new" PrimitiveType ArrayDimsAndInits
   | "new" ClassOrInterfaceType [ TypeArguments ]
     ( ArrayDimsAndInits | Arguments [ ClassOrInterfaceBody ] )
 

Throws:
ParseException

ArrayDimsAndInits

public static final void ArrayDimsAndInits(org.w3c.dom.Element parent)
                                    throws ParseException
 ArrayDimsAndInits:
     ( "[" Expression "]" )+ ( "[" "]" )*
   | ( "[" "]" )+ ArrayInitializer
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

Statement

public static final void Statement(org.w3c.dom.Element parent)
                            throws ParseException
 Statement:
    LabeledStatement
  | AssertStatement
  | Block
  | EmptyStatement
  | StatementExpression0 ";"
  | SwitchStatement
  | IfStatement
  | WhileStatement
  | DoStatement
  | ForStatement
  | BreakStatement
  | ContinueStatement
  | ReturnStatement
  | ThrowStatement
  | SynchronizedStatement
  | TryStatement
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

AssertStatement

public static final void AssertStatement(org.w3c.dom.Element parent)
                                  throws ParseException
 AssertStatement:
   "assert" Expression [ ":" Expression ] ";"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

LabeledStatement

public static final void LabeledStatement(org.w3c.dom.Element parent)
                                   throws ParseException
 LabeledStatement:
    ":" Statement
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

Block

public static final void Block(org.w3c.dom.Element parent)
                        throws ParseException
 Block:
   "{" ( BlockStatement )*
   "}"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

BlockStatement

public static final void BlockStatement(org.w3c.dom.Element parent)
                                 throws ParseException
 BlockStatement:
    LocalVariableDeclaration ";"
  | Statement
  | ClassDeclaration
  | InterfaceDeclaration
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

LocalVariableDeclaration

public static final void LocalVariableDeclaration(org.w3c.dom.Element parent)
                                           throws ParseException
 LocalVariableDeclaration:
   [ "final" ] Type VariableDeclarator ( "," VariableDeclarator )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

EmptyStatement

public static final void EmptyStatement(org.w3c.dom.Element parent)
                                 throws ParseException
 EmptyStatement:
   ";"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

StatementExpression0

public static final org.w3c.dom.Element StatementExpression0(org.w3c.dom.Element parent)
                                                      throws ParseException
 StatementExpression0:
   StatementExpression
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

StatementExpression

public static final void StatementExpression(org.w3c.dom.Element parent)
                                      throws ParseException
 StatementExpression:
     PreIncrementExpression
   | PreDecrementExpression
   | PrimaryExpression [ "++" | "--" | AssignmentOperator Expression ]
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

SwitchStatement

public static final void SwitchStatement(org.w3c.dom.Element parent)
                                  throws ParseException
 SwitchStatement:
   "switch" "(" Expression ")" "{"
     ( SwitchLabel ( BlockStatement )* )*
   "}"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

SwitchLabel

public static final void SwitchLabel(org.w3c.dom.Element parent)
                              throws ParseException
 SwitchLabel:
     "case" Expression ":"
   | "default" ":"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

IfStatement

public static final void IfStatement(org.w3c.dom.Element parent)
                              throws ParseException
 IfStatement:
   "if" "(" Expression ")" Statement [ "else" Statement ]
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

WhileStatement

public static final void WhileStatement(org.w3c.dom.Element parent)
                                 throws ParseException
 WhileStatement:
   "while" "(" Expression ")" Statement
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

DoStatement

public static final void DoStatement(org.w3c.dom.Element parent)
                              throws ParseException
 DoStatement:
   "do" Statement "while" "(" Expression ")" ";"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ForStatement

public static final void ForStatement(org.w3c.dom.Element parent)
                               throws ParseException
 ForStatement:
   "for" "(" 
   ( Type  ":" Expression )
   | [ ForInit ] ";" [ Expression ] ";" [ ForUpdate ]
   ) ")" Statement
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ForInit

public static final void ForInit(org.w3c.dom.Element parent)
                          throws ParseException
 ForInit:
     LocalVariableDeclaration
   | StatementExpressionList
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

StatementExpressionList

public static final void StatementExpressionList(org.w3c.dom.Element parent)
                                          throws ParseException
 StatementExpressionList:
   StatementExpression ( "," StatementExpression )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ForUpdate

public static final void ForUpdate(org.w3c.dom.Element parent)
                            throws ParseException
 ForUpdate:
   StatementExpressionList
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

BreakStatement

public static final void BreakStatement(org.w3c.dom.Element parent)
                                 throws ParseException
 BreakStatement:
   "break" [  ] ";"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ContinueStatement

public static final void ContinueStatement(org.w3c.dom.Element parent)
                                    throws ParseException
 ContinueStatement:
   "continue" [  ] ";"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ReturnStatement

public static final void ReturnStatement(org.w3c.dom.Element parent)
                                  throws ParseException
 ReturnStatement:
   "return" [ Expression(null) ] ";"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ThrowStatement

public static final void ThrowStatement(org.w3c.dom.Element parent)
                                 throws ParseException
 ThrowStatement:
   "throw" Expression ";"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

SynchronizedStatement

public static final void SynchronizedStatement(org.w3c.dom.Element parent)
                                        throws ParseException
 SynchronizedStatement:
   "synchronized" "(" Expression ")" Block
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

TryStatement

public static final void TryStatement(org.w3c.dom.Element parent)
                               throws ParseException
 TryStatement:
   "try" Block
   ( "catch" "(" FormalParameter ")" Block )*
   [ "finally" Block ]
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

Annotation

public static final void Annotation(org.w3c.dom.Element parent)
                             throws ParseException
Java5.0 annotation
 Annotation:
     NormalAnnotation
   | SingleMemberAnnotation
   | MarkerAnnotation
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

NormalAnnotation

public static final void NormalAnnotation(org.w3c.dom.Element parent)
                                   throws ParseException
Java5.0 annotation
 NormalAnnotation:
   "@" Name "(" [ MemberValuePairs ] ")"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

MarkerAnnotation

public static final void MarkerAnnotation(org.w3c.dom.Element parent)
                                   throws ParseException
Java5.0 annotation
 MarkerAnnotation:
   "@" Name
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

SingleMemberAnnotation

public static final void SingleMemberAnnotation(org.w3c.dom.Element parent)
                                         throws ParseException
Java5.0 annotation
 SingleMemberAnnotation:
   "@" Name "(" MemberValue ")"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

MemberValuePairs

public static final void MemberValuePairs(org.w3c.dom.Element parent)
                                   throws ParseException
Java5.0 annotation
 MemberValuePairs:
   MemberValuePair ( "," MemberValuePair )*
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

MemberValuePair

public static final void MemberValuePair(org.w3c.dom.Element parent)
                                  throws ParseException
Java5.0 annotation
 MemberValuePair:
    "=" MemberValue
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

MemberValue

public static final void MemberValue(org.w3c.dom.Element parent)
                              throws ParseException
Java5.0 annotation
 MemberValue:
     Annotation
   | MemberValueArrayInitializer
   | ConditionalExpression
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

MemberValueArrayInitializer

public static final void MemberValueArrayInitializer(org.w3c.dom.Element parent)
                                              throws ParseException
Java5.0 annotation
 MemberValueArrayInitializer:
   "{" MemberValue ( "," MemberValue )* [ "," ] "}"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

AnnotationTypeDeclaration

public static final void AnnotationTypeDeclaration(int modifiers,
                                                   org.w3c.dom.Element melem,
                                                   org.w3c.dom.Element parent)
                                            throws ParseException
Java5.0 annotation
 AnnotationTypeDeclaration:
   "@" "interface" 
   AnnotationTypeBody
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

AnnotationTypeBody

public static final void AnnotationTypeBody(org.w3c.dom.Element parent)
                                     throws ParseException
Java5.0 annotation
 AnnotationTypeBody:
   "{" ( AnnotationTypeMemberDeclaration )* "}"
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

AnnotationTypeMemberDeclaration

public static final void AnnotationTypeMemberDeclaration(org.w3c.dom.Element parent)
                                                  throws ParseException
Java5.0 annotation
 AnnotationTypeMemberDeclaration:
     Modifiers
     ( Type  "(" ")" [ DefaultValue ] ";"
     | ClassDeclaration
     | InterfaceDeclaration
     | EnumDeclaration
     | AnnotationTypeDeclaration
     | FieldDeclaration
     )
  | ( ";" )
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

DefaultValue

public static final void DefaultValue(org.w3c.dom.Element parent)
                               throws ParseException
Java5.0 annotation
 DefaultValue:
   "default" MemberValue
 

Parameters:
parent - The parent of the examined node.
Throws:
ParseException

ReInit

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

ReInit

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

ReInit

public void ReInit(JavaParserTokenManager 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()