public final class ExtractInterfaceRefactoring extends AbstractRefactoring
INIT, PARAMETERS_CHECK, PRE_CHECK, PREPARE
Constructor and Description |
---|
ExtractInterfaceRefactoring(TreePathHandle sourceType)
Creates a new instance of ExtractInterfaceRefactoring
|
Modifier and Type | Method and Description |
---|---|
List<ElementHandle<VariableElement>> |
getFields()
Gets fields to extract.
|
List<TypeMirrorHandle<TypeMirror>> |
getImplements()
Gets interfaces to extract.
|
String |
getInterfaceName()
Returns name of the interface to be created.
|
List<ElementHandle<ExecutableElement>> |
getMethods()
Gets methods to extract.
|
TreePathHandle |
getSourceType()
Returns the type the members of which should be extracted into an interface
by this refactoring.
|
void |
setFields(List<ElementHandle<VariableElement>> fields)
Sets public static final fields with default value to extract.
|
void |
setImplements(List<TypeMirrorHandle<TypeMirror>> implementz)
Sets interfaces to extract.
|
void |
setInterfaceName(String ifcName)
Sets the name of the interface to be created.
|
void |
setMethods(List<ElementHandle<ExecutableElement>> methods)
Sets public methods to extract.
|
addProgressListener, cancelRequest, checkParameters, fastCheckParameters, getContext, getRefactoringSource, preCheck, prepare, removeProgressListener
public ExtractInterfaceRefactoring(TreePathHandle sourceType)
sourceType
- Type the members of which should be extracted into an interface.public TreePathHandle getSourceType()
public String getInterfaceName()
public void setInterfaceName(String ifcName)
ifcName
- Name of the new interface.public List<ElementHandle<ExecutableElement>> getMethods()
public void setMethods(List<ElementHandle<ExecutableElement>> methods)
methods
- list of methodspublic List<ElementHandle<VariableElement>> getFields()
public void setFields(List<ElementHandle<VariableElement>> fields)
fields
- list of fieldspublic List<TypeMirrorHandle<TypeMirror>> getImplements()
public void setImplements(List<TypeMirrorHandle<TypeMirror>> implementz)
implementz
- list of interfaces