Package com.thoughtworks.qdox.library
Class ClassNameLibrary
java.lang.Object
com.thoughtworks.qdox.library.AbstractClassLibrary
com.thoughtworks.qdox.library.ClassNameLibrary
- All Implemented Interfaces:
ClassLibrary,Serializable
This library always resolve a className by generating an empty JavaClass Model
- Since:
- 2.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.thoughtworks.qdox.library.AbstractClassLibrary
AbstractClassLibrary.ClassLibraryFilter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancontainsClassReference(String name) This method is used to detect if there's a match with this classname.protected JavaClassresolveJavaClass(String name) 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.protected JavaPackageresolveJavaPackage(String name) Methods inherited from class com.thoughtworks.qdox.library.AbstractClassLibrary
getJavaClass, getJavaClass, getJavaClasses, getJavaClasses, getJavaModules, getJavaPackage, getJavaPackages, getJavaPackages, getJavaSources, getJavaSources, getModelBuilder, getModelBuilder, getModelBuilderFactory, getModelWriterFactory, hasClassReference, setModelBuilderFactory, setModelWriterFactory
-
Constructor Details
-
ClassNameLibrary
public ClassNameLibrary()
-
-
Method Details
-
resolveJavaClass
Description copied from class:AbstractClassLibraryThe 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:
resolveJavaClassin classAbstractClassLibrary- Parameters:
name- the fully qualified name- Returns:
- the resolved JavaClass, otherwise
null
-
resolveJavaPackage
- Specified by:
resolveJavaPackagein classAbstractClassLibrary
-
containsClassReference
Description copied from class:AbstractClassLibraryThis 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:
containsClassReferencein classAbstractClassLibrary- Parameters:
name- the fully qualified name of the class- Returns:
- true if this ClassLibrary has a reference to this class.
-