Class MethodTypeResolution

    • Method Detail

      • checkSubtypeability

        public static boolean checkSubtypeability​(MethodType method,
                                                  MethodType subtypeableMethod)
        Deprecated.
      • selectMethodsSecondPhase

        public static List<MethodType> selectMethodsSecondPhase​(List<MethodType> methodsToSearch,
                                                                ASTArgumentList argList)
        Deprecated.
        Look for methods be method conversion. https://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.12.2.3
      • selectMethodsThirdPhase

        public static List<MethodType> selectMethodsThirdPhase​(List<MethodType> methodsToSearch,
                                                               ASTArgumentList argList)
        Deprecated.
        Look for methods considering varargs as well. https://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.12.2.4
      • getBestMethodReturnType

        public static JavaTypeDefinition getBestMethodReturnType​(JavaTypeDefinition context,
                                                                 List<MethodType> methods,
                                                                 ASTArgumentList arguments)
        Deprecated.
        Searches a list of methods by trying the three phases of method overload resolution. https://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.12.2
      • selectMostSpecificMethod

        public static MethodType selectMostSpecificMethod​(List<MethodType> selectedMethods)
        Deprecated.
        Most specific method selection. https://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.12.2.5
      • selectAmongMaximallySpecific

        public static MethodType selectAmongMaximallySpecific​(MethodType first,
                                                              MethodType second)
        Deprecated.
        Select maximally specific method. https://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.12.2.5
      • isMethodApplicable

        public static boolean isMethodApplicable​(Method method,
                                                 String methodName,
                                                 int argArity,
                                                 Class<?> accessingClass,
                                                 List<JavaTypeDefinition> typeArguments)
        Deprecated.
        https://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.12.2.1 Potential applicability.
      • isMemberVisibleFromClass

        public static boolean isMemberVisibleFromClass​(Class<?> classWithMember,
                                                       int modifiers,
                                                       Class<?> accessingClass)
        Deprecated.
        Given a class, the modifiers of on of it's member and the class that is trying to access that member, returns true is the member is accessible from the accessingClass Class.
        Parameters:
        classWithMember - The Class with the member.
        modifiers - The modifiers of that member.
        accessingClass - The Class trying to access the member.
        Returns:
        True if the member is visible from the accessingClass Class.
      • isGeneric

        public static boolean isGeneric​(Method method)
        Deprecated.
      • isGeneric

        public static boolean isGeneric​(Class<?> clazz)
        Deprecated.
      • getArity

        public static int getArity​(Method method)
        Deprecated.
      • isMethodConvertible

        public static boolean isMethodConvertible​(JavaTypeDefinition parameter,
                                                  JavaTypeDefinition argument)
        Deprecated.
        Method invocation conversion rules. https://docs.oracle.com/javase/specs/jls/se7/html/jls-5.html#jls-5.3
      • isSubtypeable

        public static boolean isSubtypeable​(Class<?> parameter,
                                            Class<?> argument)
        Deprecated.
      • isSubtypeable

        public static boolean isSubtypeable​(JavaTypeDefinition parameter,
                                            JavaTypeDefinition argument)
        Deprecated.
        Subtypeability rules. https://docs.oracle.com/javase/specs/jls/se7/html/jls-4.html#jls-4.10
      • getMethodExplicitTypeArugments

        public static List<JavaTypeDefinition> getMethodExplicitTypeArugments​(Node node)
        Deprecated.