public class MethodResolutionLogic extends Object
| Constructor and Description |
|---|
MethodResolutionLogic() |
public static boolean isApplicable(MethodDeclaration method, String name, List<Type> argumentsTypes, TypeSolver typeSolver)
public static boolean isAssignableMatchTypeParameters(Type expected, Type actual, Map<String,Type> matchedParameters)
public static boolean isAssignableMatchTypeParameters(ReferenceType expected, ReferenceType actual, Map<String,Type> matchedParameters)
public static Type replaceTypeParam(Type type, TypeParameterDeclaration tp, TypeSolver typeSolver)
public static boolean isApplicable(MethodUsage method, String name, List<Type> argumentsTypes, TypeSolver typeSolver)
public static SymbolReference<MethodDeclaration> findMostApplicable(List<MethodDeclaration> methods, String name, List<Type> argumentsTypes, TypeSolver typeSolver)
methods - we expect the methods to be ordered such that inherited methods are later in the listname - argumentsTypes - typeSolver - public static SymbolReference<MethodDeclaration> findMostApplicable(List<MethodDeclaration> methods, String name, List<Type> argumentsTypes, TypeSolver typeSolver, boolean wildcardTolerance)
public static Optional<MethodUsage> findMostApplicableUsage(List<MethodUsage> methods, String name, List<Type> argumentsTypes, TypeSolver typeSolver)
public static SymbolReference<MethodDeclaration> solveMethodInType(TypeDeclaration typeDeclaration, String name, List<Type> argumentsTypes, TypeSolver typeSolver)
typeDeclaration - name - argumentsTypes - Copyright © 2016. All rights reserved.