Class CleanUpContextCore
java.lang.Object
org.eclipse.jdt.core.manipulation.CleanUpContextCore
- Direct Known Subclasses:
CleanUpContext
Deprecated, for removal: This API element is subject to removal in a future version.
Please use CleanUpContext in the future
The context that contains all information required by a clean up to create a fix.
- Since:
- 1.12
-
Constructor Summary
ConstructorsConstructorDescriptionCleanUpContextCore(ICompilationUnit unit, CompilationUnit ast) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new clean up context. -
Method Summary
Modifier and TypeMethodDescriptiongetAST()Deprecated, for removal: This API element is subject to removal in a future version.An AST built from the compilation unit to fix.Deprecated, for removal: This API element is subject to removal in a future version.The compilation unit to clean up.
-
Constructor Details
-
CleanUpContextCore
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new clean up context.- Parameters:
unit- the compilation unitast- the AST, can benullifCleanUpRequirementsCore.requiresAST()returnsfalse. The AST is guaranteed to contain changes made by previous clean ups only ifCleanUpRequirementsCore.requiresFreshAST()returnstrue.
-
-
Method Details
-
getCompilationUnit
Deprecated, for removal: This API element is subject to removal in a future version.The compilation unit to clean up.- Returns:
- the compilation unit to clean up
-
getAST
Deprecated, for removal: This API element is subject to removal in a future version.An AST built from the compilation unit to fix.Can be
nullifCleanUpRequirementsCore.requiresAST()returnsfalse. The AST is guaranteed to contain changes made by previous clean ups only ifCleanUpRequirementsCore.requiresFreshAST()returnstrue.Clients should check the AST API level and do nothing if they are given an AST they can't handle (see
AST.apiLevel()).- Returns:
- an AST or
nullif none required
-