public class MethodResolutionLogic extends Object
| Constructor and Description |
|---|
MethodResolutionLogic() |
| Modifier and Type | Method and Description |
|---|---|
static SymbolReference<MethodDeclaration> |
findMostApplicable(List<MethodDeclaration> methods,
String name,
List<TypeUsage> paramTypes,
TypeSolver typeSolver) |
static Optional<MethodUsage> |
findMostApplicableUsage(List<MethodUsage> methods,
String name,
List<TypeUsage> parameterTypes,
TypeSolver typeSolver) |
static boolean |
isApplicable(MethodDeclaration method,
String name,
List<TypeUsage> paramTypes,
TypeSolver typeSolver) |
static boolean |
isApplicable(MethodUsage method,
String name,
List<TypeUsage> paramTypes,
TypeSolver typeSolver) |
static boolean |
isAssignableMatchTypeParameters(ReferenceTypeUsage expected,
ReferenceTypeUsage actual,
Map<String,TypeUsage> matchedParameters) |
static TypeUsage |
replaceTypeParam(TypeUsage typeUsage,
TypeParameter tp,
TypeSolver typeSolver) |
public static boolean isApplicable(MethodDeclaration method, String name, List<TypeUsage> paramTypes, TypeSolver typeSolver)
public static boolean isAssignableMatchTypeParameters(ReferenceTypeUsage expected, ReferenceTypeUsage actual, Map<String,TypeUsage> matchedParameters)
public static TypeUsage replaceTypeParam(TypeUsage typeUsage, TypeParameter tp, TypeSolver typeSolver)
public static boolean isApplicable(MethodUsage method, String name, List<TypeUsage> paramTypes, TypeSolver typeSolver)
public static SymbolReference<MethodDeclaration> findMostApplicable(List<MethodDeclaration> methods, String name, List<TypeUsage> paramTypes, TypeSolver typeSolver)
methods - we expect the methods to be ordered such that inherited methods are later in the listname - paramTypes - typeSolver - public static Optional<MethodUsage> findMostApplicableUsage(List<MethodUsage> methods, String name, List<TypeUsage> parameterTypes, TypeSolver typeSolver)
Copyright © 2016. All rights reserved.