public final class UseSuperTypeRefactoring extends AbstractRefactoring
INIT, PARAMETERS_CHECK, PRE_CHECK, PREPARE
Constructor and Description |
---|
UseSuperTypeRefactoring(TreePathHandle javaClassHandle)
Creates a new instance of UseSuperTypeRefactoring
|
Modifier and Type | Method and Description |
---|---|
ElementHandle<TypeElement>[] |
getCandidateSuperTypes()
Returns the possible SuperTypes that could be used for the initial Type
|
ElementHandle<TypeElement> |
getTargetSuperType()
Returns the SuperType used by this refactoring
|
TreePathHandle |
getTypeElement()
Returns the type whose occurence must be replaced by that of it's supertype.
|
void |
setTargetSuperType(ElementHandle<TypeElement> superClass)
Sets the SuperType to be used by this refactoring
|
addProgressListener, cancelRequest, checkParameters, fastCheckParameters, getContext, getRefactoringSource, preCheck, prepare, removeProgressListener
public UseSuperTypeRefactoring(TreePathHandle javaClassHandle)
javaClassHandle
- The class whose occurences must be replaced by
that of it's supertypepublic TreePathHandle getTypeElement()
public void setTargetSuperType(ElementHandle<TypeElement> superClass)
superClass
- The SuperType to be used by this refactoringpublic ElementHandle<TypeElement> getTargetSuperType()
public ElementHandle<TypeElement>[] getCandidateSuperTypes()