Class ConstructorResolutionLogic
- java.lang.Object
-
- com.github.javaparser.symbolsolver.resolution.ConstructorResolutionLogic
-
public class ConstructorResolutionLogic extends Object
- Author:
- Fred Lefévère-Laoide
-
-
Constructor Summary
Constructors Constructor Description ConstructorResolutionLogic()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration>
findMostApplicable(List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> constructors, 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.ResolvedConstructorDeclaration>
findMostApplicable(List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> constructors, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver, boolean wildcardTolerance)
static boolean
isApplicable(com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration constructor, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
-
-
-
Method Detail
-
isApplicable
public static boolean isApplicable(com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration constructor, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
-
findMostApplicable
public static com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> findMostApplicable(List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> constructors, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
- Parameters:
constructors
- we expect the methods to be ordered such that inherited methods are later in the listargumentsTypes
-typeSolver
-- Returns:
-
findMostApplicable
public static com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> findMostApplicable(List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> constructors, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver, boolean wildcardTolerance)
-
-