public final class CleanUpRequirements extends Object
| Constructor and Description |
|---|
CleanUpRequirements(boolean requiresAST,
boolean requiresFreshAST,
boolean requiresChangedRegions,
Map<String,String> compilerOptions)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getCompilerOptions()
Required compiler options.
|
boolean |
requiresAST()
Tells whether the clean up requires an AST.
|
boolean |
requiresChangedRegions()
Tells whether this clean up requires to be informed about changed regions.
|
boolean |
requiresFreshAST()
Tells whether a fresh AST, containing all the changes from previous clean ups, will be
needed.
|
public CleanUpRequirements(boolean requiresAST,
boolean requiresFreshAST,
boolean requiresChangedRegions,
Map<String,String> compilerOptions)
requiresAST - true if an AST is requiredrequiresFreshAST - true if a fresh AST is requiredrequiresChangedRegions - true if changed regions are requiredcompilerOptions - map of compiler options or null if no requirementspublic boolean requiresAST()
Note: This should return false whenever possible because
creating an AST is expensive.
true if the context must provide an ASTpublic boolean requiresFreshAST()
true if the caller needs an up to date ASTpublic Map<String,String> getCompilerOptions()
null if noneJavaCorepublic boolean requiresChangedRegions()
Has only an effect if the clean up is used as save action.
Note:: This should return false whenever possible because
calculating the changed regions is expensive.
true if the context must provide changed
regions
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.