|
Eclipse JDT Release 3.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.ui.cleanup.CleanUpContext
public class CleanUpContext
The context that contains all information required by a clean up to create a fix.
Constructor Summary | |
---|---|
CleanUpContext(ICompilationUnit unit,
CompilationUnit ast)
Creates a new clean up context. |
Method Summary | |
---|---|
CompilationUnit |
getAST()
An AST built from the compilation unit to fix. |
ICompilationUnit |
getCompilationUnit()
The compilation unit to clean up. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CleanUpContext(ICompilationUnit unit, CompilationUnit ast)
unit
- the compilation unitast
- the AST, can be null
if CleanUpRequirements.requiresAST()
returns false
. The AST is guaranteed to contain changes made by
previous clean ups only if CleanUpRequirements.requiresFreshAST()
returns
true
.Method Detail |
---|
public ICompilationUnit getCompilationUnit()
public CompilationUnit getAST()
Can be null
if CleanUpRequirements.requiresAST()
returns
false
. The AST is guaranteed to contain changes made by previous clean ups only
if CleanUpRequirements.requiresFreshAST()
returns true
.
null
if none required
|
Eclipse JDT Release 3.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |