|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.refactor.Refactoring
org.acm.seguin.refactor.type.ExtractInterfaceRefactoring
public class ExtractInterfaceRefactoring
Refactoring that extracts the interface from the dialog
Field Summary |
---|
Fields inherited from class org.acm.seguin.refactor.Refactoring |
---|
ADD_CHILD, ADD_PARENT, EXTRACT_INTERFACE, EXTRACT_METHOD, MOVE_METHOD, PUSH_DOWN_FIELD, PUSH_DOWN_METHOD, PUSH_UP_ABSTRACT_METHOD, PUSH_UP_FIELD, PUSH_UP_METHOD, REMOVE_CLASS, RENAME_CLASS, RENAME_FIELD, RENAME_METHOD, RENAME_PARAMETER, REPACKAGE |
Constructor Summary | |
---|---|
protected |
ExtractInterfaceRefactoring()
Constructor for the ExtractInterfaceRefactoring object |
Method Summary | |
---|---|
void |
addImplementingClass(java.lang.String packageName,
java.lang.String className)
Adds a class that will implement the new interface |
void |
addImplementingClass(TypeSummary summary)
Adds a feature to the ImplementingClass attribute of the ExtractInterfaceRefactoring object |
java.lang.String |
getDescription()
Gets the Description attribute of the ExtractInterfaceRefactoring object |
int |
getID()
Gets the ID attribute of the ExtractInterfaceRefactoring object |
protected void |
preconditions()
Description of the Method |
void |
setInterfaceName(java.lang.String interfaceName)
Sets the interface name for the new interface. |
void |
setPackageName(java.lang.String packageName)
Sets the PackageName attribute of the ExtractInterfaceRefactoring object |
protected void |
transform()
this performs the refactoring |
Methods inherited from class org.acm.seguin.refactor.Refactoring |
---|
checkDestinationFile, getComplexTransform, run, setComplexTransform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ExtractInterfaceRefactoring()
Method Detail |
---|
public void setInterfaceName(java.lang.String interfaceName)
interfaceName
- The new InterfaceName valuepublic void setPackageName(java.lang.String packageName)
packageName
- The new PackageName valuepublic java.lang.String getDescription()
getDescription
in class Refactoring
public int getID()
getID
in class Refactoring
public void addImplementingClass(java.lang.String packageName, java.lang.String className)
packageName
- The feature to be added to the ImplementingClass
attributeclassName
- The feature to be added to the ImplementingClass
attributepublic void addImplementingClass(TypeSummary summary)
summary
- The feature to be added to the ImplementingClass attributeprotected void preconditions() throws RefactoringException
preconditions
in class Refactoring
RefactoringException
- Description of Exceptionprotected void transform()
transform
in class Refactoring
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |