Package com.thoughtworks.qdox.library
Class SourceFolderLibrary
java.lang.Object
com.thoughtworks.qdox.library.AbstractClassLibrary
com.thoughtworks.qdox.library.SourceLibrary
com.thoughtworks.qdox.library.SourceFolderLibrary
- All Implemented Interfaces:
ClassLibrary
,Serializable
- Since:
- 2.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.thoughtworks.qdox.library.AbstractClassLibrary
AbstractClassLibrary.ClassLibraryFilter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSourceFolder
(File sourceFolder) protected boolean
containsClassReference
(String className) Loops over the sourceFolder to find a classReference.protected JavaClass
resolveJavaClass
(String className) 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.private JavaModule
resolveJavaModule
(File sourceFolder) private Collection<JavaModule>
Methods inherited from class com.thoughtworks.qdox.library.SourceLibrary
addSource, addSource, addSource, addSource, getEncoding, getErrorHandler, getJavaClasses, getJavaPackages, getJavaSources, isDebugLexer, isDebugParser, parse, parse, registerJavaSource, resolveJavaPackage, setDebugLexer, setDebugParser, setEncoding, setErrorHandler
Methods inherited from class com.thoughtworks.qdox.library.AbstractClassLibrary
getJavaClass, getJavaClass, getJavaClasses, getJavaPackage, getJavaPackages, getJavaSources, getModelBuilder, getModelBuilder, getModelBuilderFactory, getModelWriterFactory, hasClassReference, setModelBuilderFactory, setModelWriterFactory
-
Field Details
-
sourceFolders
-
-
Constructor Details
-
SourceFolderLibrary
-
SourceFolderLibrary
-
-
Method Details
-
addSourceFolder
-
getJavaModules
- Specified by:
getJavaModules
in interfaceClassLibrary
- Overrides:
getJavaModules
in classAbstractClassLibrary
-
resolveJavaModules
-
resolveJavaModule
-
resolveJavaClass
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.- Overrides:
resolveJavaClass
in classSourceLibrary
- Parameters:
className
- the fully qualified name- Returns:
- the resolved JavaClass, otherwise
null
-
containsClassReference
Loops over the sourceFolder to find a classReference. It will try to map the className to a file.- Overrides:
containsClassReference
in classSourceLibrary
- Parameters:
className
- the fully qualified name of the class- Returns:
- true if this ClassLibrary has a reference to this class.
-