Class ConstructorResolutionLogic


  • public class ConstructorResolutionLogic
    extends Object
    Author:
    Fred Lefévère-Laoide
    • 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)  
    • Constructor Detail

      • ConstructorResolutionLogic

        public ConstructorResolutionLogic()
    • 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 list
        argumentsTypes -
        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)