public class MethodResolutionLogic extends Object
Constructor and Description |
---|
MethodResolutionLogic() |
Modifier and Type | Method and Description |
---|---|
static SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
findMostApplicable(List<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> methods,
String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
TypeSolver typeSolver) |
static SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
findMostApplicable(List<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> methods,
String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
TypeSolver typeSolver,
boolean wildcardTolerance) |
static Optional<com.github.javaparser.resolution.MethodUsage> |
findMostApplicableUsage(List<com.github.javaparser.resolution.MethodUsage> methods,
String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
TypeSolver typeSolver) |
static boolean |
isApplicable(com.github.javaparser.resolution.MethodUsage method,
String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
TypeSolver typeSolver) |
static boolean |
isApplicable(com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration method,
String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
TypeSolver typeSolver) |
static boolean |
isAssignableMatchTypeParameters(com.github.javaparser.resolution.types.ResolvedReferenceType expected,
com.github.javaparser.resolution.types.ResolvedReferenceType actual,
Map<String,com.github.javaparser.resolution.types.ResolvedType> matchedParameters) |
static boolean |
isAssignableMatchTypeParameters(com.github.javaparser.resolution.types.ResolvedType expected,
com.github.javaparser.resolution.types.ResolvedType actual,
Map<String,com.github.javaparser.resolution.types.ResolvedType> matchedParameters) |
protected static boolean |
isExactMatch(com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration method,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes) |
static com.github.javaparser.resolution.types.ResolvedType |
replaceTypeParam(com.github.javaparser.resolution.types.ResolvedType type,
com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration tp,
TypeSolver typeSolver) |
static SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethodInType(com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration typeDeclaration,
String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
boolean staticOnly,
TypeSolver typeSolver)
Replace TypeDeclaration.solveMethod
|
static SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethodInType(com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration typeDeclaration,
String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
TypeSolver typeSolver) |
public static boolean isApplicable(com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration method, String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, TypeSolver typeSolver)
public static boolean isAssignableMatchTypeParameters(com.github.javaparser.resolution.types.ResolvedType expected, com.github.javaparser.resolution.types.ResolvedType actual, Map<String,com.github.javaparser.resolution.types.ResolvedType> matchedParameters)
public static boolean isAssignableMatchTypeParameters(com.github.javaparser.resolution.types.ResolvedReferenceType expected, com.github.javaparser.resolution.types.ResolvedReferenceType actual, Map<String,com.github.javaparser.resolution.types.ResolvedType> matchedParameters)
public static com.github.javaparser.resolution.types.ResolvedType replaceTypeParam(com.github.javaparser.resolution.types.ResolvedType type, com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration tp, TypeSolver typeSolver)
public static boolean isApplicable(com.github.javaparser.resolution.MethodUsage method, String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, TypeSolver typeSolver)
public static SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> findMostApplicable(List<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> methods, String name, List<com.github.javaparser.resolution.types.ResolvedType> 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<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> findMostApplicable(List<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> methods, String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, TypeSolver typeSolver, boolean wildcardTolerance)
protected static boolean isExactMatch(com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration method, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes)
public static Optional<com.github.javaparser.resolution.MethodUsage> findMostApplicableUsage(List<com.github.javaparser.resolution.MethodUsage> methods, String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, TypeSolver typeSolver)
public static SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethodInType(com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration typeDeclaration, String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, TypeSolver typeSolver)
public static SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethodInType(com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration typeDeclaration, String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, boolean staticOnly, TypeSolver typeSolver)
typeDeclaration
- name
- argumentsTypes
- staticOnly
- Copyright © 2007–2018. All rights reserved.