|
Eclipse JDT Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.ui.cleanup.CleanUpRequirements
public final class CleanUpRequirements
Specifies the requirements of a clean up.
| Constructor Summary | |
|---|---|
CleanUpRequirements(boolean requiresAST,
boolean requiresFreshAST,
boolean requiresChangedRegions,
Map<String,String> compilerOptions)
Create a new instance |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 requirements| Method Detail |
|---|
public 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
|
Eclipse JDT Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved.