Class CleanUpRequirementsCore
java.lang.Object
org.eclipse.jdt.core.manipulation.CleanUpRequirementsCore
@Deprecated(forRemoval=true,
since="2024-06")
public final class CleanUpRequirementsCore
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Please use CleanUpRequirements in the future
Specifies the requirements of a clean up.
- Since:
- 1.12
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.protected final booleanDeprecated.protected final booleanDeprecated.protected final booleanDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionCleanUpRequirementsCore(boolean requiresAST, boolean requiresFreshAST, boolean requiresChangedRegions, Map<String, String> compilerOptions) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.
-
Field Details
-
fRequiresAST
Deprecated. -
fCompilerOptions
Deprecated. -
fRequiresFreshAST
Deprecated. -
fRequiresChangedRegions
Deprecated.
-
-
Constructor Details
-
CleanUpRequirementsCore
@Deprecated public CleanUpRequirementsCore(boolean requiresAST, boolean requiresFreshAST, boolean requiresChangedRegions, Map<String, String> compilerOptions) Deprecated.Create a new instance- Parameters:
requiresAST-trueif an AST is requiredrequiresFreshAST-trueif a fresh AST is requiredrequiresChangedRegions-trueif changed regions are requiredcompilerOptions- map of compiler options ornullif no requirements
-
-
Method Details
-
requiresAST
Deprecated.Tells whether the clean up requires an AST.Note: This should return
falsewhenever possible because creating an AST is expensive.- Returns:
trueif the CleanUpContext context must provide an AST
-
requiresFreshAST
Deprecated.Tells whether a fresh AST, containing all the changes from previous clean ups, will be needed.- Returns:
trueif the caller needs an up to date AST
-
getCompilerOptions
Deprecated.Required compiler options.- Returns:
- the compiler options map or
nullif none - See Also:
-
requiresChangedRegions
Deprecated.Tells whether this clean up requires to be informed about changed regions. The changed regions are the regions which have been changed between the last save state of the compilation unit and its current state.Has only an effect if the clean up is used as save action.
Note:: This should return
falsewhenever possible because calculating the changed regions is expensive.- Returns:
trueif the CleanUpContext context must provide changed regions
-