Class TypeSet.AbstractResolver

    • Field Detail

    • Constructor Detail

      • AbstractResolver

        public AbstractResolver​(PMDASMClassLoader pmdClassLoader)
        Creates a new AbstractResolver that uses the given class loader.
        Parameters:
        pmdClassLoader - the class loader to use
    • Method Detail

      • resolveMaybeInner

        protected Class<?> resolveMaybeInner​(String name,
                                             String fqName)
        Resolves the given class name with the given FQCN, considering it may be an inner class.
        Parameters:
        name - The name of the class to load.
        fqName - The proposed FQCN for the class.
        Returns:
        The matched class or null if not found.
      • couldResolve

        public boolean couldResolve​(String name)
        Description copied from interface: TypeSet.Resolver
        Checks if the given class could be resolved by this resolver. Notice, that a resolver's ability to resolve a class does not imply that the class will actually be found and resolved.
        Specified by:
        couldResolve in interface TypeSet.Resolver
        Parameters:
        name - the name of the class, might be fully classified or not.
        Returns:
        whether the class can be resolved