Class TypeSet.AbstractResolver

    • Field Detail

    • Constructor Detail

      • AbstractResolver

        public AbstractResolver​(PMDASMClassLoader pmdClassLoader)
        Creates a new AbstractResolver that uses the given class loader.
        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.
        name - The name of the class to load.
        fqName - The proposed FQCN for the class.
        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
        name - the name of the class, might be fully classified or not.
        whether the class can be resolved