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

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

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

public final class ExtractSuperclassRefactoring
extends AbstractRefactoring

Extract Super Class Refactoring.

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
ExtractSuperclassRefactoring(TreePathHandle sourceType)
          Creates a new instance of ExtractSuperclassRefactoring
 
Method Summary
 MemberInfo<ElementHandle<? extends Element>>[] getMembers()
          Returns descriptors of the members to extract into the new super class.
 TreePathHandle getSourceType()
          Returns the type the members of which should be pulled up by this refactoring.
 String getSuperClassName()
          Returns the name for the super class to be created.
 void setMembers(MemberInfo<ElementHandle<? extends Element>>[] members)
          Sets members (using their descriptors) to extract into the new super class.
 void setSuperClassName(String scName)
          Sets name for the super class to be created.
 
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

ExtractSuperclassRefactoring

public ExtractSuperclassRefactoring(TreePathHandle sourceType)
Creates a new instance of ExtractSuperclassRefactoring

Parameters:
sourceType - Type the members of which should be pulled up.
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.

getSuperClassName

public String getSuperClassName()
Returns the name for the super class to be created.

Returns:
Super class name.

setSuperClassName

public void setSuperClassName(String scName)
Sets name for the super class to be created.

Parameters:
scName - Super class name.

getMembers

public MemberInfo<ElementHandle<? extends Element>>[] getMembers()
Returns descriptors of the members to extract into the new super class.

Returns:
Member descriptors.

setMembers

public void setMembers(MemberInfo<ElementHandle<? extends Element>>[] members)
Sets members (using their descriptors) to extract into the new super class.

Parameters:
members - Descriptors of members to be extracted into the new super class.

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

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