类的使用
com.thoughtworks.qdox.library.AbstractClassLibrary
使用AbstractClassLibrary的程序包
程序包
说明
Provides classes to construct a classloader-like structure of libraries
There are two types of ClassLibraryBuilders:
SortedClassLibraryBuilder, which bundles the libraries by type
OrderedClassLibraryBuilder, which respects the order of added libraries
There are four types of ClassLibraries:
ClassLoaderLibrary, which uses the classpath to search for sources or binaries
SourceLibrary, which uses a specific sourcefile
SourceFolderLibrary, which tries to locate sourcefiles by translating the package to folders
ClassNameLibrary, which generates an anonymous class, as if it would exist
-
com.thoughtworks.qdox.library中AbstractClassLibrary的使用
修饰符和类型类说明classImportant!!classThis library always resolve a className by generating an empty JavaClass ModelclassclassThis Library will immediately parse the source and keeps its reference to a private context.修饰符和类型方法说明protected ClassLoaderLibraryOrderedClassLibraryBuilder.newClassLoaderLibrary(AbstractClassLibrary parentLibrary) Ability to override the implementation of ClassLoaderLibraryprotected SourceFolderLibraryOrderedClassLibraryBuilder.newSourceFolderLibrary(AbstractClassLibrary parentLibrary) Ability to override the implementation of SourceFolderLibraryprotected SourceLibraryOrderedClassLibraryBuilder.newSourceLibrary(AbstractClassLibrary parentLibrary) Ability to override the implementation of SourceLibrary限定符构造器说明constructor for chained ClassLibraryClassLoaderLibrary(AbstractClassLibrary parent, ClassLoader classLoader) OrderedClassLibraryBuilder(AbstractClassLibrary rootClassLibrary) Constructor for which you can set the root ClassLibrary If you set this to null, all classes should be available on the classpath.SourceFolderLibrary(AbstractClassLibrary parent, File sourceFolder) SourceLibrary(AbstractClassLibrary parent) Create a new instance of SourceLibrary and chain it to the parent