public class RecoveredUnit extends RecoveredElement
| Modifier and Type | Field and Description |
|---|---|
int |
importCount |
RecoveredImport[] |
imports |
RecoveredModule |
module |
int |
typeCount |
RecoveredType[] |
types |
CompilationUnitDeclaration |
unitDeclaration |
bracketBalance, foundOpeningBrace, lambdaNestLevel, parent, recoveringParser| Constructor and Description |
|---|
RecoveredUnit(CompilationUnitDeclaration unitDeclaration,
int bracketBalance,
Parser parser) |
| Modifier and Type | Method and Description |
|---|---|
RecoveredElement |
add(AbstractMethodDeclaration methodDeclaration,
int bracketBalanceValue) |
RecoveredElement |
add(ExportsStatement exportReference,
int bracketBalanceValue) |
RecoveredElement |
add(FieldDeclaration fieldDeclaration,
int bracketBalanceValue) |
RecoveredElement |
add(ImportReference importReference,
int bracketBalanceValue) |
RecoveredElement |
add(ModuleDeclaration moduleDeclaration,
int bracketBalanceValue) |
RecoveredElement |
add(TypeDeclaration typeDeclaration,
int bracketBalanceValue) |
RecoveredElement |
addAnnotationName(int identifierPtr,
int identifierLengthPtr,
int annotationStart,
int bracketBalanceValue) |
void |
addModifier(int flag,
int modifiersSourceStart) |
int |
getLastStart() |
ASTNode |
parseTree() |
void |
resetPendingModifiers() |
int |
sourceEnd() |
java.lang.String |
toString(int tab) |
CompilationUnitDeclaration |
updatedCompilationUnitDeclaration() |
void |
updateParseTree() |
void |
updateSourceEndIfNecessary(int bodyStart,
int bodyEnd) |
add, add, add, add, addBlockStatement, depth, enclosingInitializer, enclosingMethod, enclosingType, parser, preserveEnclosingBlocks, previousAvailableLineEnd, tabString, topElement, toString, type, updateBodyStart, updateFromParserState, updateOnClosingBrace, updateOnOpeningBrace, updateSourceEndIfNecessarypublic CompilationUnitDeclaration unitDeclaration
public RecoveredImport[] imports
public int importCount
public RecoveredModule module
public RecoveredType[] types
public int typeCount
public RecoveredUnit(CompilationUnitDeclaration unitDeclaration, int bracketBalance, Parser parser)
public RecoveredElement addAnnotationName(int identifierPtr, int identifierLengthPtr, int annotationStart, int bracketBalanceValue)
addAnnotationName in class RecoveredElementpublic void addModifier(int flag,
int modifiersSourceStart)
addModifier in class RecoveredElementpublic RecoveredElement add(AbstractMethodDeclaration methodDeclaration, int bracketBalanceValue)
add in class RecoveredElementpublic RecoveredElement add(FieldDeclaration fieldDeclaration, int bracketBalanceValue)
add in class RecoveredElementpublic RecoveredElement add(ExportsStatement exportReference, int bracketBalanceValue)
public RecoveredElement add(ImportReference importReference, int bracketBalanceValue)
add in class RecoveredElementpublic RecoveredElement add(ModuleDeclaration moduleDeclaration, int bracketBalanceValue)
add in class RecoveredElementpublic RecoveredElement add(TypeDeclaration typeDeclaration, int bracketBalanceValue)
add in class RecoveredElementpublic ASTNode parseTree()
parseTree in class RecoveredElementpublic void resetPendingModifiers()
resetPendingModifiers in class RecoveredElementpublic int sourceEnd()
sourceEnd in class RecoveredElementpublic int getLastStart()
getLastStart in class RecoveredElementpublic java.lang.String toString(int tab)
toString in class RecoveredElementpublic CompilationUnitDeclaration updatedCompilationUnitDeclaration()
public void updateParseTree()
updateParseTree in class RecoveredElementpublic void updateSourceEndIfNecessary(int bodyStart,
int bodyEnd)
updateSourceEndIfNecessary in class RecoveredElement