org.eclipse.jdt.internal.compiler.parser
Class RecoveredUnit

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.parser.RecoveredElement
      extended by org.eclipse.jdt.internal.compiler.parser.RecoveredUnit

public class RecoveredUnit
extends RecoveredElement


Field Summary
 int importCount
           
 RecoveredImport[] imports
           
 int typeCount
           
 RecoveredType[] types
           
 CompilationUnitDeclaration unitDeclaration
           
 
Fields inherited from class org.eclipse.jdt.internal.compiler.parser.RecoveredElement
bracketBalance, foundOpeningBrace, parent
 
Constructor Summary
RecoveredUnit(CompilationUnitDeclaration unitDeclaration, int bracketBalance, Parser parser)
           
 
Method Summary
 RecoveredElement add(AbstractMethodDeclaration methodDeclaration, int bracketBalanceValue)
           
 RecoveredElement add(FieldDeclaration fieldDeclaration, int bracketBalanceValue)
           
 RecoveredElement add(ImportReference importReference, int bracketBalanceValue)
           
 RecoveredElement add(TypeDeclaration typeDeclaration, int bracketBalanceValue)
           
 RecoveredElement addAnnotationName(int identifierPtr, int identifierLengthPtr, int annotationStart, int bracketBalanceValue)
           
 void addModifier(int flag, int modifiersSourceStart)
           
 ASTNode parseTree()
           
 void resetPendingModifiers()
           
 int sourceEnd()
           
 java.lang.String toString(int tab)
           
 CompilationUnitDeclaration updatedCompilationUnitDeclaration()
           
 void updateParseTree()
           
 void updateSourceEndIfNecessary(int bodyStart, int bodyEnd)
           
 
Methods inherited from class org.eclipse.jdt.internal.compiler.parser.RecoveredElement
add, add, add, depth, enclosingInitializer, enclosingMethod, enclosingType, parser, preserveEnclosingBlocks, previousAvailableLineEnd, topElement, toString, type, updateBodyStart, updateFromParserState, updateOnClosingBrace, updateOnOpeningBrace, updateSourceEndIfNecessary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

unitDeclaration

public CompilationUnitDeclaration unitDeclaration

imports

public RecoveredImport[] imports

importCount

public int importCount

types

public RecoveredType[] types

typeCount

public int typeCount
Constructor Detail

RecoveredUnit

public RecoveredUnit(CompilationUnitDeclaration unitDeclaration,
                     int bracketBalance,
                     Parser parser)
Method Detail

addAnnotationName

public RecoveredElement addAnnotationName(int identifierPtr,
                                          int identifierLengthPtr,
                                          int annotationStart,
                                          int bracketBalanceValue)
Overrides:
addAnnotationName in class RecoveredElement

addModifier

public void addModifier(int flag,
                        int modifiersSourceStart)
Overrides:
addModifier in class RecoveredElement

add

public RecoveredElement add(AbstractMethodDeclaration methodDeclaration,
                            int bracketBalanceValue)
Overrides:
add in class RecoveredElement

add

public RecoveredElement add(FieldDeclaration fieldDeclaration,
                            int bracketBalanceValue)
Overrides:
add in class RecoveredElement

add

public RecoveredElement add(ImportReference importReference,
                            int bracketBalanceValue)
Overrides:
add in class RecoveredElement

add

public RecoveredElement add(TypeDeclaration typeDeclaration,
                            int bracketBalanceValue)
Overrides:
add in class RecoveredElement

parseTree

public ASTNode parseTree()
Overrides:
parseTree in class RecoveredElement

resetPendingModifiers

public void resetPendingModifiers()
Overrides:
resetPendingModifiers in class RecoveredElement

sourceEnd

public int sourceEnd()
Overrides:
sourceEnd in class RecoveredElement

toString

public java.lang.String toString(int tab)
Overrides:
toString in class RecoveredElement

updatedCompilationUnitDeclaration

public CompilationUnitDeclaration updatedCompilationUnitDeclaration()

updateParseTree

public void updateParseTree()
Overrides:
updateParseTree in class RecoveredElement

updateSourceEndIfNecessary

public void updateSourceEndIfNecessary(int bodyStart,
                                       int bodyEnd)
Overrides:
updateSourceEndIfNecessary in class RecoveredElement