public class MethodResolutionLogic
extends java.lang.Object
| Constructor and Description |
|---|
MethodResolutionLogic() |
| Modifier and Type | Method and Description |
|---|---|
static com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
findMostApplicable(java.util.List<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> methods,
java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
static com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
findMostApplicable(java.util.List<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> methods,
java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver,
boolean wildcardTolerance) |
static java.util.Optional<com.github.javaparser.resolution.MethodUsage> |
findMostApplicableUsage(java.util.List<com.github.javaparser.resolution.MethodUsage> methods,
java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
static boolean |
isApplicable(com.github.javaparser.resolution.MethodUsage method,
java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
static boolean |
isApplicable(com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration method,
java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
static boolean |
isAssignableMatchTypeParameters(com.github.javaparser.resolution.types.ResolvedReferenceType expected,
com.github.javaparser.resolution.types.ResolvedReferenceType actual,
java.util.Map<java.lang.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,
java.util.Map<java.lang.String,com.github.javaparser.resolution.types.ResolvedType> matchedParameters) |
protected static boolean |
isExactMatch(com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration method,
java.util.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,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
static com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethodInType(com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration typeDeclaration,
java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
boolean staticOnly,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
Replace TypeDeclaration.solveMethod
|
static com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethodInType(com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration typeDeclaration,
java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
public static boolean isApplicable(com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration method,
java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public static boolean isAssignableMatchTypeParameters(com.github.javaparser.resolution.types.ResolvedType expected,
com.github.javaparser.resolution.types.ResolvedType actual,
java.util.Map<java.lang.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,
java.util.Map<java.lang.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,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public static boolean isApplicable(com.github.javaparser.resolution.MethodUsage method,
java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public static com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> findMostApplicable(java.util.List<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> methods,
java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
methods - we expect the methods to be ordered such that inherited methods are later in the listname - argumentsTypes - typeSolver - public static com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> findMostApplicable(java.util.List<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> methods,
java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver,
boolean wildcardTolerance)
protected static boolean isExactMatch(com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration method,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes)
public static java.util.Optional<com.github.javaparser.resolution.MethodUsage> findMostApplicableUsage(java.util.List<com.github.javaparser.resolution.MethodUsage> methods,
java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public static com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethodInType(com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration typeDeclaration,
java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public static com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethodInType(com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration typeDeclaration,
java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
boolean staticOnly,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
typeDeclaration - name - argumentsTypes - staticOnly -