org.netbeans.modules.refactoring.java/1 1.37.0 1

org.netbeans.modules.refactoring.java.api
Class InnerToOuterRefactoring

java.lang.Object
  extended by org.netbeans.modules.refactoring.api.AbstractRefactoring
      extended by org.netbeans.modules.refactoring.java.api.InnerToOuterRefactoring

public final class InnerToOuterRefactoring
extends AbstractRefactoring

Convert Inner to Top-Level refactoring implementation class. This refactoring is capable of converting an inner class into a top-level class.

See Also:
RefactoringPlugin, RefactoringPluginFactory, AbstractRefactoring, RefactoringSession

Field Summary
 
Fields inherited from class org.netbeans.modules.refactoring.api.AbstractRefactoring
INIT, PARAMETERS_CHECK, PRE_CHECK, PREPARE
 
Constructor Summary
InnerToOuterRefactoring(TreePathHandle sourceType)
          Creates a new instance of InnerToOuterRefactoring.
 
Method Summary
 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.
 
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

InnerToOuterRefactoring

public InnerToOuterRefactoring(TreePathHandle sourceType)
Creates a new instance of InnerToOuterRefactoring.

Parameters:
sourceType - An inner class that should be converted to a top-level class.
Method Detail

getSourceType

public TreePathHandle getSourceType()
Returns the type the members of which should be pulled up by this refactoring.

Returns:
Source of the members to be pulled up.

getClassName

public String getClassName()
Returns the name for the top-level class to be created.

Returns:
Class name.

setClassName

public void setClassName(String className)
Sets name for the top-level class to be created.

Parameters:
className - Class name.

getReferenceName

public String getReferenceName()
Returns name of the field that should be generated as a reference to the original outer class. If null, no field will be generated.

Returns:
Name of the field to be generated or null if no field will be generated.

setReferenceName

public void setReferenceName(String referenceName)
Sets name of the field that should be generated as a reference to the original outer class. Can be set to null which indicates that no field should be generated.

Parameters:
referenceName - Name of the field or null if no field should be generated.

org.netbeans.modules.refactoring.java/1 1.37.0 1

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.