Class ClassNameLibrary

  • All Implemented Interfaces:
    ClassLibrary, java.io.Serializable

    public class ClassNameLibrary
    extends AbstractClassLibrary
    This library always resolve a className by generating an empty JavaClass Model
    Since:
    2.0
    See Also:
    Serialized Form
    • Constructor Detail

      • ClassNameLibrary

        public ClassNameLibrary()
    • Method Detail

      • resolveJavaClass

        protected JavaClass resolveJavaClass​(java.lang.String name)
        Description copied from class: AbstractClassLibrary
        The implementation should check it's sources to see if it can build a JavaClass Model If not, just return null; Once found it will be mapped, so there's no need to keep a reference to this object.
        Specified by:
        resolveJavaClass in class AbstractClassLibrary
        Parameters:
        name - the fully qualified name
        Returns:
        the resolved JavaClass, otherwise null
      • containsClassReference

        protected boolean containsClassReference​(java.lang.String name)
        Description copied from class: AbstractClassLibrary
        This method is used to detect if there's a match with this classname. The name could be constructed based on imports and inner class paths.
        Specified by:
        containsClassReference in class AbstractClassLibrary
        Parameters:
        name - the fully qualified name of the class
        Returns:
        true if this ClassLibrary has a reference to this class.