接口的使用
com.thoughtworks.qdox.model.JavaSource
使用JavaSource的程序包
程序包
说明
Provides classes to start constructing a java project
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 classes reflecting the Java model elements.
Provides the default implementation of the classes reflecting the Java model elements.
Provides classes to write Java model elements in any style
Provides the default implementation of classes to write Java model elements in any style.
-
com.thoughtworks.qdox中JavaSource的使用
修饰符和类型方法说明Add a java source from a file to this JavaProjectBuilderAdd a java source from a Reader to this JavaProjectBuilderAdd a java source from a URL to this JavaProjectBuilder返回变量类型为JavaSource的类型的com.thoughtworks.qdox中的方法 -
com.thoughtworks.qdox.builder中JavaSource的使用
-
com.thoughtworks.qdox.builder.impl中JavaSource的使用
-
com.thoughtworks.qdox.library中JavaSource的使用
修饰符和类型方法说明ClassLibraryBuilder.addSource(InputStream stream) Add the source content of the reader to the ClassLibrary and return the generated JavaSourceOrderedClassLibraryBuilder.addSource(InputStream stream) SortedClassLibraryBuilder.addSource(InputStream stream) Add aFilecontaining java code to this librarySourceLibrary.addSource(InputStream stream) Add anInputStreamcontaining java code to this libraryAdd aReadercontaining java code to this libraryAdd aURLcontaining java code to this library返回变量类型为JavaSource的类型的com.thoughtworks.qdox.library中的方法修饰符和类型方法说明AbstractClassLibrary.getJavaSources()protected final Collection<JavaSource>AbstractClassLibrary.getJavaSources(com.thoughtworks.qdox.library.AbstractClassLibrary.ClassLibraryFilter filter) ClassLibrary.getJavaSources()Return all JavaSources of the current library.SourceLibrary.getJavaSources()Get all sources, including those from parent SourceLibrariesJavaClassContext.getSources()Return all stored JavaSources参数类型为JavaSource的com.thoughtworks.qdox.library中的方法修饰符和类型方法说明voidJavaClassContext.add(JavaSource source) Store aJavaSourcein this contextprotected final voidSourceLibrary.registerJavaSource(JavaSource source) -
com.thoughtworks.qdox.model中JavaSource的使用
修饰符和类型方法说明JavaClass.getParentSource()JavaClass.getSource()The compilation unit, which includes the imports, the public and anonymous classes -
com.thoughtworks.qdox.model.impl中JavaSource的使用
修饰符和类型方法说明DefaultJavaClass.getParentSource()DefaultJavaType.getParentSource()AbstractBaseJavaEntity.getSource()DefaultJavaClass.getSource()The compilation unit, which includes the imports, the public and anonymous classesDefaultJavaType.getSource()The compilation unit, which includes the imports, the public and anonymous classes参数类型为JavaSource的com.thoughtworks.qdox.model.impl中的构造器 -
com.thoughtworks.qdox.writer中JavaSource的使用
参数类型为JavaSource的com.thoughtworks.qdox.writer中的方法修饰符和类型方法说明ModelWriter.writeSource(JavaSource src) Write the complete source file A standard source writer should write: the package the imports the classes -
com.thoughtworks.qdox.writer.impl中JavaSource的使用
修饰符和类型方法说明DefaultModelWriter.writeSource(JavaSource source) Write the complete source file A standard source writer should write: the package the imports the classes