|
org.netbeans.modules.refactoring.java/1 1.37.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.refactoring.api.AbstractRefactoring
org.netbeans.modules.refactoring.java.api.ExtractInterfaceRefactoring
public final class ExtractInterfaceRefactoring
Extract Interface Refactoring.
RefactoringPlugin,
RefactoringPluginFactory,
AbstractRefactoring,
RefactoringSession| Field Summary |
|---|
| Fields inherited from class org.netbeans.modules.refactoring.api.AbstractRefactoring |
|---|
INIT, PARAMETERS_CHECK, PRE_CHECK, PREPARE |
| Constructor Summary | |
|---|---|
ExtractInterfaceRefactoring(TreePathHandle sourceType)
Creates a new instance of ExtractInterfaceRefactoring |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.netbeans.modules.refactoring.api.AbstractRefactoring |
|---|
addProgressListener, cancelRequest, checkParameters, fastCheckParameters, getContext, getRefactoringSource, preCheck, prepare, removeProgressListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtractInterfaceRefactoring(TreePathHandle sourceType)
sourceType - Type the members of which should be extracted into an interface.| Method Detail |
|---|
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
|
org.netbeans.modules.refactoring.java/1 1.37.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||