public final class ExtractSuperclassRefactoring extends AbstractRefactoring
INIT, PARAMETERS_CHECK, PRE_CHECK, PREPARE
Constructor and Description |
---|
ExtractSuperclassRefactoring(TreePathHandle sourceType)
Creates a new instance of ExtractSuperclassRefactoring
|
Modifier and Type | Method and Description |
---|---|
MemberInfo<ElementHandle<? extends Element>>[] |
getMembers()
Returns descriptors of the members to extract into the new super class.
|
TreePathHandle |
getSourceType()
Returns the type the members of which should be pulled up
by this refactoring.
|
String |
getSuperClassName()
Returns the name for the super class to be created.
|
void |
setMembers(MemberInfo<ElementHandle<? extends Element>>[] members)
Sets members (using their descriptors) to extract into the new super class.
|
void |
setSuperClassName(String scName)
Sets name for the super class to be created.
|
addProgressListener, cancelRequest, checkParameters, fastCheckParameters, getContext, getRefactoringSource, preCheck, prepare, removeProgressListener
public ExtractSuperclassRefactoring(TreePathHandle sourceType)
sourceType
- Type the members of which should be pulled up.public TreePathHandle getSourceType()
public String getSuperClassName()
public void setSuperClassName(String scName)
scName
- Super class name.public MemberInfo<ElementHandle<? extends Element>>[] getMembers()
public void setMembers(MemberInfo<ElementHandle<? extends Element>>[] members)
members
- Descriptors of members to be extracted into the new super class.