| Package | Description |
|---|---|
| net.sourceforge.pmd.lang.java.typeresolution |
| Modifier and Type | Method | Description |
|---|---|---|
static MethodType |
MethodType.build(java.lang.reflect.Method method) |
|
static MethodType |
MethodType.build(JavaTypeDefinition returnType,
java.util.List<JavaTypeDefinition> argTypes,
java.lang.reflect.Method method) |
|
static MethodType |
MethodTypeResolution.getTypeDefOfMethod(JavaTypeDefinition context,
java.lang.reflect.Method method,
java.util.List<JavaTypeDefinition> typeArguments) |
|
static MethodType |
MethodTypeResolution.parameterizeInvocation(JavaTypeDefinition context,
java.lang.reflect.Method method,
ASTArgumentList argList) |
|
static MethodType |
MethodTypeResolution.selectAmongMaximallySpecific(MethodType first,
MethodType second) |
Select maximally specific method.
|
static MethodType |
MethodTypeResolution.selectMostSpecificMethod(java.util.List<MethodType> selectedMethods) |
Most specific method selection.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.List<MethodType> |
MethodTypeResolution.getApplicableMethods(JavaTypeDefinition context,
java.lang.String methodName,
java.util.List<JavaTypeDefinition> typeArguments,
int argArity,
java.lang.Class<?> accessingClass) |
Looks for potentially applicable methods in a given type definition.
|
static java.util.List<MethodType> |
MethodTypeResolution.selectMethodsFirstPhase(JavaTypeDefinition context,
java.util.List<MethodType> methodsToSearch,
ASTArgumentList argList) |
Look for methods be subtypeability.
|
static java.util.List<MethodType> |
MethodTypeResolution.selectMethodsSecondPhase(java.util.List<MethodType> methodsToSearch,
ASTArgumentList argList) |
Look for methods be method conversion.
|
static java.util.List<MethodType> |
MethodTypeResolution.selectMethodsThirdPhase(java.util.List<MethodType> methodsToSearch,
ASTArgumentList argList) |
Look for methods considering varargs as well.
|
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
MethodTypeResolution.checkSubtypeability(MethodType method,
MethodType subtypeableMethod) |
|
static MethodType |
MethodTypeResolution.selectAmongMaximallySpecific(MethodType first,
MethodType second) |
Select maximally specific method.
|
| Modifier and Type | Method | Description |
|---|---|---|
static JavaTypeDefinition |
MethodTypeResolution.getBestMethodReturnType(JavaTypeDefinition context,
java.util.List<MethodType> methods,
ASTArgumentList arguments) |
Searches a list of methods by trying the three phases of method overload resolution.
|
static java.util.List<MethodType> |
MethodTypeResolution.selectMethodsFirstPhase(JavaTypeDefinition context,
java.util.List<MethodType> methodsToSearch,
ASTArgumentList argList) |
Look for methods be subtypeability.
|
static java.util.List<MethodType> |
MethodTypeResolution.selectMethodsSecondPhase(java.util.List<MethodType> methodsToSearch,
ASTArgumentList argList) |
Look for methods be method conversion.
|
static java.util.List<MethodType> |
MethodTypeResolution.selectMethodsThirdPhase(java.util.List<MethodType> methodsToSearch,
ASTArgumentList argList) |
Look for methods considering varargs as well.
|
static MethodType |
MethodTypeResolution.selectMostSpecificMethod(java.util.List<MethodType> selectedMethods) |
Most specific method selection.
|
Copyright © 2002–2018 PMD. All rights reserved.