public final class InnerToOuterRefactoring extends AbstractRefactoring
INIT, PARAMETERS_CHECK, PRE_CHECK, PREPARE
Constructor and Description |
---|
InnerToOuterRefactoring(TreePathHandle sourceType)
Creates a new instance of InnerToOuterRefactoring.
|
Modifier and Type | Method and Description |
---|---|
String |
getClassName()
Returns the name for the top-level class to be created.
|
String |
getReferenceName()
Returns name of the field that should be generated as a reference to the original
outer class.
|
TreePathHandle |
getSourceType()
Returns the type the members of which should be pulled up
by this refactoring.
|
void |
setClassName(String className)
Sets name for the top-level class to be created.
|
void |
setReferenceName(String referenceName)
Sets name of the field that should be generated as a reference to the original
outer class.
|
addProgressListener, cancelRequest, checkParameters, fastCheckParameters, getContext, getRefactoringSource, preCheck, prepare, removeProgressListener
public InnerToOuterRefactoring(TreePathHandle sourceType)
sourceType
- An inner class that should be converted to a top-level class.public TreePathHandle getSourceType()
public String getClassName()
public void setClassName(String className)
className
- Class name.public String getReferenceName()
public void setReferenceName(String referenceName)
referenceName
- Name of the field or null if no field should be generated.