public class MethodSignatureUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static <any> |
METHOD_BASED_HASHING_STRATEGY |
static <any> |
METHOD_PARAMETERS_ERASURE_EQUALITY |
Modifier and Type | Method and Description |
---|---|
static boolean |
areErasedParametersEqual(MethodSignature method1,
MethodSignature method2) |
static boolean |
areOverrideEquivalent(PsiMethod method1,
PsiMethod method2)
def: (8.4.2 Method Signature) Two method signatures m1 and m2 are override-equivalent iff either m1 is a subsignature of m2 or m2 is a subsignature of m1.
|
static boolean |
areParametersErasureEqual(PsiMethod method1,
PsiMethod method2) |
static boolean |
areSignaturesEqual(MethodSignature method1,
MethodSignature method2) |
static boolean |
areSignaturesEqual(PsiMethod method1,
PsiMethod method2) |
static boolean |
areSignaturesErasureEqual(MethodSignature signature1,
MethodSignature signature2) |
static PsiType [] |
calcErasedParameterTypes(MethodSignature signature) |
static PsiSubstitutor |
combineSubstitutors(PsiSubstitutor substitutor1,
PsiSubstitutor substitutor2) |
static PsiMethod [] |
convertMethodSignaturesToMethods(java.util.List<? extends MethodSignatureBackedByPsiMethod> sameNameMethodList) |
static MethodSignature |
createMethodSignature(java.lang.String name,
PsiParameterList parameterTypes,
PsiTypeParameterList typeParameterList,
PsiSubstitutor substitutor) |
static MethodSignature |
createMethodSignature(java.lang.String name,
PsiParameterList parameterTypes,
PsiTypeParameterList typeParameterList,
PsiSubstitutor substitutor,
boolean isConstructor) |
static MethodSignature |
createMethodSignature(java.lang.String name,
PsiType [] parameterTypes,
PsiTypeParameter [] typeParameterList,
PsiSubstitutor substitutor) |
static MethodSignature |
createMethodSignature(java.lang.String name,
PsiType [] parameterTypes,
PsiTypeParameter [] typeParameterList,
PsiSubstitutor substitutor,
boolean isConstructor) |
static PsiMethod |
findMethodBySignature(PsiClass aClass,
MethodSignature methodSignature,
boolean checkBases) |
static PsiMethod |
findMethodBySignature(PsiClass aClass,
PsiMethod pattenMethod,
boolean checkBases) |
static PsiMethod |
findMethodBySuperMethod(PsiClass aClass,
PsiMethod method,
boolean checkBases) |
static PsiMethod |
findMethodBySuperSignature(PsiClass aClass,
MethodSignature methodSignature,
boolean checkBases) |
static PsiMethod |
findMethodInSuperClassBySignatureInDerived(PsiClass aClass,
PsiClass superClass,
MethodSignature signature,
boolean checkDeep) |
static PsiSubstitutor |
getSuperMethodSignatureSubstitutor(MethodSignature methodSignature,
MethodSignature superMethodSignature)
* 8.4.4 Generic Methods :: same type parameters condition
Two methods or constructors M and N have the same type parameters if both of the following are true:
* M and N have same number of type parameters (possibly zero).
|
static boolean |
hasOverloads(PsiMethod method) |
static boolean |
isReturnTypeSubstitutable(MethodSignature d1,
MethodSignature d2,
PsiType r1,
PsiType r2)
8.4.5 Method Result :: return type substitutable
|
static boolean |
isSubsignature(MethodSignature superSignature,
MethodSignature subSignature) |
static boolean |
isSuperMethod(PsiMethod superMethodCandidate,
PsiMethod derivedMethod) |
public static final <any> METHOD_BASED_HASHING_STRATEGY
public static final <any> METHOD_PARAMETERS_ERASURE_EQUALITY
public static boolean areOverrideEquivalent(PsiMethod method1, PsiMethod method2)
public static boolean areErasedParametersEqual(MethodSignature method1, MethodSignature method2)
public static PsiType [] calcErasedParameterTypes(MethodSignature signature)
public static MethodSignature createMethodSignature(java.lang.String name, PsiParameterList parameterTypes, PsiTypeParameterList typeParameterList, PsiSubstitutor substitutor)
public static MethodSignature createMethodSignature(java.lang.String name, PsiParameterList parameterTypes, PsiTypeParameterList typeParameterList, PsiSubstitutor substitutor, boolean isConstructor)
public static MethodSignature createMethodSignature(java.lang.String name, PsiType [] parameterTypes, PsiTypeParameter [] typeParameterList, PsiSubstitutor substitutor)
public static MethodSignature createMethodSignature(java.lang.String name, PsiType [] parameterTypes, PsiTypeParameter [] typeParameterList, PsiSubstitutor substitutor, boolean isConstructor)
public static boolean areSignaturesEqual(MethodSignature method1, MethodSignature method2)
public static boolean isSuperMethod(PsiMethod superMethodCandidate, PsiMethod derivedMethod)
public static PsiMethod findMethodInSuperClassBySignatureInDerived(PsiClass aClass, PsiClass superClass, MethodSignature signature, boolean checkDeep)
public static PsiMethod findMethodBySignature(PsiClass aClass, PsiMethod pattenMethod, boolean checkBases)
public static PsiMethod findMethodBySignature(PsiClass aClass, MethodSignature methodSignature, boolean checkBases)
public static PsiMethod findMethodBySuperSignature(PsiClass aClass, MethodSignature methodSignature, boolean checkBases)
public static PsiMethod findMethodBySuperMethod(PsiClass aClass, PsiMethod method, boolean checkBases)
public static boolean hasOverloads(PsiMethod method)
public static boolean areParametersErasureEqual(PsiMethod method1, PsiMethod method2)
public static boolean areSignaturesErasureEqual(MethodSignature signature1, MethodSignature signature2)
public static PsiSubstitutor getSuperMethodSignatureSubstitutor(MethodSignature methodSignature, MethodSignature superMethodSignature)
methodSignature
- method signaturesuperMethodSignature
- super method signaturepublic static PsiSubstitutor combineSubstitutors(PsiSubstitutor substitutor1, PsiSubstitutor substitutor2)
public static PsiMethod [] convertMethodSignaturesToMethods(java.util.List<? extends MethodSignatureBackedByPsiMethod> sameNameMethodList)
public static boolean isSubsignature(MethodSignature superSignature, MethodSignature subSignature)
public static boolean isReturnTypeSubstitutable(MethodSignature d1, MethodSignature d2, PsiType r1, PsiType r2)