Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.ui.cleanup
Class CleanUpContext


java.lang.Object
  extended by 
org.eclipse.jdt.ui.cleanup.CleanUpContext

public class CleanUpContext
extends Object

The context that contains all information required by a clean up to create a fix.

Since:
3.5

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

CleanUpContext

public CleanUpContext(
ICompilationUnit unit,
                      
CompilationUnit ast)
Creates a new clean up context.

Parameters:
unit - the compilation unit
ast - 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

getCompilationUnit

public 
ICompilationUnit getCompilationUnit()
The compilation unit to clean up.

Returns:
the compilation unit to clean up

getAST

public 
CompilationUnit getAST()
An AST built from the compilation unit to fix.

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.

Returns:
an AST or null if none required

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire