|
Composite Refactoring v1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jdt.internal.core.JavaModelOperation | +--compositeRefactoring.codemanipulation.Inherit
This class creates an inheritence dependency between two classes. To determine whether one class may inherit from another, some conditions can be checked in this class according to Lance Tokuda (Univeristy of Texas at Austin)
Fields inherited from class org.eclipse.jdt.internal.core.JavaModelOperation |
fDeltas, fElementsToProcess, fForce, fgEmptyResult, fMonitor, fNested, fParentElements, fResultElements, hasModifiedResource |
Fields inherited from interface org.eclipse.core.runtime.IProgressMonitor |
UNKNOWN |
Constructor Summary | |
Inherit(ICompilationUnit base,
ICompilationUnit derived)
creates an Inherit object. |
Method Summary | |
RefactoringStatus |
checkAbstractMethods()
checks if all abstract methods from Derived are implemented in Base. |
RefactoringStatus |
checkBaseSuperclass()
checks if Base already has a superclass. |
RefactoringStatus |
checkCycle()
checks if Base is superclass of Derived. |
void |
executeOperation()
executes the inherit operation. |
void |
executeUndoOperation()
executes the undo operation. |
ICompilationUnit |
getBase()
getter method for the modified language element, the base class. |
ICompilationUnit |
getDerived()
getter method for the superclass, the derived class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Inherit(ICompilationUnit base, ICompilationUnit derived)
base
- the subclass in the inheritence dependencyderived
- the superclass in the inheritence dependencyMethod Detail |
public RefactoringStatus checkCycle()
public RefactoringStatus checkBaseSuperclass()
java.lang.Object
, false otherwise.public RefactoringStatus checkAbstractMethods()
public void executeOperation() throws JavaModelException
executeOperation
in class JavaModelOperation
public void executeUndoOperation() throws JavaModelException
public ICompilationUnit getBase()
public ICompilationUnit getDerived()
|
Composite Refactoring v1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |