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
,java.io.Serializable
public class SourceFolderLibrary extends SourceLibrary
- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SourceFolderLibrary(AbstractClassLibrary parent)
SourceFolderLibrary(AbstractClassLibrary parent, java.io.File sourceFolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaModule
addSourceFolder(java.io.File sourceFolder)
protected boolean
containsClassReference(java.lang.String className)
Loops over the sourceFolder to find a classReference.java.util.Collection<JavaModule>
getJavaModules()
protected JavaClass
resolveJavaClass(java.lang.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.-
Methods inherited from class com.thoughtworks.qdox.library.SourceLibrary
addSource, addSource, addSource, addSource, getEncoding, getErrorHandler, getJavaClasses, getJavaPackages, getJavaSources, isDebugLexer, isDebugParser, 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
-
-
-
-
Constructor Detail
-
SourceFolderLibrary
public SourceFolderLibrary(AbstractClassLibrary parent)
-
SourceFolderLibrary
public SourceFolderLibrary(AbstractClassLibrary parent, java.io.File sourceFolder)
-
-
Method Detail
-
addSourceFolder
public JavaModule addSourceFolder(java.io.File sourceFolder)
-
getJavaModules
public java.util.Collection<JavaModule> getJavaModules()
- Specified by:
getJavaModules
in interfaceClassLibrary
- Overrides:
getJavaModules
in classAbstractClassLibrary
-
resolveJavaClass
protected JavaClass resolveJavaClass(java.lang.String className)
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
protected boolean containsClassReference(java.lang.String className)
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.
-
-