public abstract class IntroduceParameterObjectClassDescriptor<M extends PsiNamedElement,P extends ParameterInfo>
extends java.lang.Object
Constructor and Description |
---|
IntroduceParameterObjectClassDescriptor(java.lang.String className,
java.lang.String packageName,
boolean useExistingClass,
boolean createInnerClass,
java.lang.String newVisibility,
boolean generateAccessors,
P[] parameters) |
Modifier and Type | Method and Description |
---|---|
abstract PsiElement |
createClass(M method,
ReadWriteAccessDetector.Access[] accessors) |
abstract M |
findCompatibleConstructorInExistingClass(M method)
Called if use existing class is chosen only.
|
java.lang.String |
getClassName() |
PsiElement |
getExistingClass() |
M |
getExistingClassCompatibleConstructor() |
abstract java.lang.String |
getGetterName(P paramInfo,
PsiElement context) |
java.lang.String |
getNewVisibility() |
java.lang.String |
getPackageName() |
P |
getParameterInfo(int oldIndex) |
P[] |
getParamsToMerge() |
abstract java.lang.String |
getSetterName(P paramInfo,
PsiElement context)
Corresponding field accessors how they should appear inside changed method body
|
boolean |
isCreateInnerClass() |
boolean |
isGenerateAccessors() |
boolean |
isUseExistingClass() |
void |
setExistingClass(PsiElement existingClass) |
void |
setExistingClassCompatibleConstructor(M existingClassCompatibleConstructor) |
public IntroduceParameterObjectClassDescriptor(java.lang.String className, java.lang.String packageName, boolean useExistingClass, boolean createInnerClass, java.lang.String newVisibility, boolean generateAccessors, P[] parameters)
public java.lang.String getClassName()
public java.lang.String getPackageName()
public boolean isUseExistingClass()
public boolean isCreateInnerClass()
public java.lang.String getNewVisibility()
public P[] getParamsToMerge()
public PsiElement getExistingClass()
public void setExistingClass(PsiElement existingClass)
public boolean isGenerateAccessors()
public P getParameterInfo(int oldIndex)
public abstract java.lang.String getSetterName(P paramInfo, PsiElement context)
public abstract java.lang.String getGetterName(P paramInfo, PsiElement context)
public abstract M findCompatibleConstructorInExistingClass(M method)
public M getExistingClassCompatibleConstructor()
public void setExistingClassCompatibleConstructor(M existingClassCompatibleConstructor)
public abstract PsiElement createClass(M method, ReadWriteAccessDetector.Access[] accessors)