接口的使用
com.thoughtworks.qdox.writer.ModelWriterFactory
使用ModelWriterFactory的程序包
程序包
说明
Provides classes which transform the structs from the JavaParser to the Java model elements
Provides the default implementation of the classes which transform the structs from the JavaParser to the Java model elements
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
Provides the default implementation of the classes reflecting the Java model elements.
-
com.thoughtworks.qdox.builder中ModelWriterFactory的使用
-
com.thoughtworks.qdox.builder.impl中ModelWriterFactory的使用
-
com.thoughtworks.qdox.library中ModelWriterFactory的使用
修饰符和类型方法说明final voidAbstractClassLibrary.setModelWriterFactory(ModelWriterFactory factory) Set the ModelWriterFactory for this class.ClassLibraryBuilder.setModelWriterFactory(ModelWriterFactory factory) Define theModelWriterFactorywhich is used by the classes when calling for the codeBlock.OrderedClassLibraryBuilder.setModelWriterFactory(ModelWriterFactory modelWriterFactory) SortedClassLibraryBuilder.setModelWriterFactory(ModelWriterFactory modelWriterFactory) -
com.thoughtworks.qdox.model.impl中ModelWriterFactory的使用
修饰符和类型方法说明voidAbstractJavaModel.setModelWriterFactory(ModelWriterFactory modelWriterFactory) voidDefaultJavaSource.setModelWriterFactory(ModelWriterFactory modelWriterFactory)