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
- Author:
- Robert Scholte
- See Also:
-
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.Methods inherited from class SourceLibrary
addSource, addSource, addSource, addSource, getEncoding, getErrorHandler, getJavaClasses, getJavaPackages, getJavaSources, isDebugLexer, isDebugParser, registerJavaSource, resolveJavaPackage, setDebugLexer, setDebugParser, setEncoding, setErrorHandler
-
Constructor Details
-
SourceFolderLibrary
-
SourceFolderLibrary
-
-
Method Details
-
addSourceFolder
-
getJavaModules
- Specified by:
getJavaModulesin interfaceClassLibrary- Overrides:
getJavaModulesin classAbstractClassLibrary
-
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.
-