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 booleancontainsClassReference(String className) Loops over the sourceFolder to find a classReference.protected JavaClassresolveJavaClass(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 JavaModuleresolveJavaModule(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, setErrorHandlerMethods 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:
getJavaModulesin interfaceClassLibrary- Overrides:
getJavaModulesin classAbstractClassLibrary
-
resolveJavaModules
-
resolveJavaModule
-
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.- Overrides:
resolveJavaClassin 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:
containsClassReferencein classSourceLibrary- Parameters:
className- the fully qualified name of the class- Returns:
- true if this ClassLibrary has a reference to this class.
-