public class JavaChangeInfoImpl extends UserDataHolderBase implements JavaChangeInfo
Constructor and Description |
---|
JavaChangeInfoImpl(java.lang.String newVisibility,
PsiMethod method,
java.lang.String newName,
CanonicalTypes.Type newType,
ParameterInfoImpl [] newParms,
ThrownExceptionInfo [] newExceptions,
boolean generateDelegate,
java.util.Set<PsiMethod> propagateParametersMethods,
java.util.Set<PsiMethod> propagateExceptionsMethods) |
JavaChangeInfoImpl(java.lang.String newVisibility,
PsiMethod method,
java.lang.String newName,
CanonicalTypes.Type newType,
ParameterInfoImpl [] newParms,
ThrownExceptionInfo [] newExceptions,
boolean generateDelegate,
java.util.Set<PsiMethod> propagateParametersMethods,
java.util.Set<PsiMethod> propagateExceptionsMethods,
java.lang.String oldName) |
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
public JavaChangeInfoImpl(java.lang.String newVisibility, PsiMethod method, java.lang.String newName, CanonicalTypes.Type newType, ParameterInfoImpl [] newParms, ThrownExceptionInfo [] newExceptions, boolean generateDelegate, java.util.Set<PsiMethod> propagateParametersMethods, java.util.Set<PsiMethod> propagateExceptionsMethods)
newExceptions
- null if not changedpublic JavaChangeInfoImpl(java.lang.String newVisibility, PsiMethod method, java.lang.String newName, CanonicalTypes.Type newType, ParameterInfoImpl [] newParms, ThrownExceptionInfo [] newExceptions, boolean generateDelegate, java.util.Set<PsiMethod> propagateParametersMethods, java.util.Set<PsiMethod> propagateExceptionsMethods, java.lang.String oldName)
newExceptions
- null if not changedpublic boolean checkUnusedParameter()
checkUnusedParameter
in interface JavaChangeInfo
public void setCheckUnusedParameter()
protected void fillOldParams(PsiMethod method)
public JavaParameterInfo [] getNewParameters()
ChangeInfo
getNewParameters
in interface ChangeInfo
getNewParameters
in interface JavaChangeInfo
public java.lang.String getNewVisibility()
getNewVisibility
in interface JavaChangeInfo
public boolean isParameterSetOrOrderChanged()
isParameterSetOrOrderChanged
in interface ChangeInfo
protected void setupPropagationEnabled(PsiParameter[] parameters, ParameterInfoImpl[] newParms)
public PsiMethod getMethod()
getMethod
in interface ChangeInfo
getMethod
in interface JavaChangeInfo
public CanonicalTypes.Type getNewReturnType()
getNewReturnType
in interface JavaChangeInfo
public void updateMethod(PsiMethod method)
updateMethod
in interface JavaChangeInfo
public java.util.Collection<PsiMethod> getMethodsToPropagateParameters()
getMethodsToPropagateParameters
in interface JavaChangeInfo
public ParameterInfoImpl[] getCreatedParmsInfoWithoutVarargs()
public PsiExpression getValue(int i, PsiCallExpression expr) throws IncorrectOperationException
getValue
in interface JavaChangeInfo
IncorrectOperationException
public boolean isVisibilityChanged()
isVisibilityChanged
in interface JavaChangeInfo
public boolean isNameChanged()
isNameChanged
in interface ChangeInfo
public boolean isReturnTypeChanged()
isReturnTypeChanged
in interface ChangeInfo
public java.lang.String getNewName()
getNewName
in interface ChangeInfo
public Language getLanguage()
getLanguage
in interface ChangeInfo
public boolean isExceptionSetChanged()
isExceptionSetChanged
in interface JavaChangeInfo
public boolean isExceptionSetOrOrderChanged()
isExceptionSetOrOrderChanged
in interface JavaChangeInfo
public boolean isParameterNamesChanged()
isParameterNamesChanged
in interface ChangeInfo
public boolean isParameterTypesChanged()
isParameterTypesChanged
in interface ChangeInfo
public boolean isGenerateDelegate()
isGenerateDelegate
in interface ChangeInfo
public java.lang.String [] getOldParameterNames()
getOldParameterNames
in interface JavaChangeInfo
public java.lang.String [] getOldParameterTypes()
getOldParameterTypes
in interface JavaChangeInfo
public ThrownExceptionInfo[] getNewExceptions()
getNewExceptions
in interface JavaChangeInfo
public boolean isRetainsVarargs()
isRetainsVarargs
in interface JavaChangeInfo
public boolean isObtainsVarags()
isObtainsVarags
in interface JavaChangeInfo
public boolean isArrayToVarargs()
isArrayToVarargs
in interface JavaChangeInfo
public PsiIdentifier getNewNameIdentifier()
getNewNameIdentifier
in interface JavaChangeInfo
public java.lang.String getOldName()
getOldName
in interface JavaChangeInfo
public boolean wasVararg()
wasVararg
in interface JavaChangeInfo
public boolean[] toRemoveParm()
toRemoveParm
in interface JavaChangeInfo
protected boolean checkMethodEquality()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object