接口的使用
com.thoughtworks.qdox.model.JavaPackage
使用JavaPackage的程序包
程序包
说明
Provides classes to start constructing a java project
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中JavaPackage的使用
修饰符和类型方法说明JavaProjectBuilder.getPackageByName(String name) Try to retrieve aJavaPackageby its name.返回变量类型为JavaPackage的类型的com.thoughtworks.qdox中的方法 -
com.thoughtworks.qdox.library中JavaPackage的使用
修饰符和类型方法说明final JavaPackageAbstractClassLibrary.getJavaPackage(String name) ClassLibrary.getJavaPackage(String name) Get the JavaPackage or null if it's not possibleJavaClassContext.getPackageByName(String name) Retrieve theJavaPackagebased on thename.JavaClassContext.removePackageByName(String name) Remove and return theJavaPackagebased on thename.protected abstract JavaPackageAbstractClassLibrary.resolveJavaPackage(String name) protected JavaPackageClassLoaderLibrary.resolveJavaPackage(String name) protected JavaPackageClassNameLibrary.resolveJavaPackage(String name) protected JavaPackageSourceLibrary.resolveJavaPackage(String name) 返回变量类型为JavaPackage的类型的com.thoughtworks.qdox.library中的方法修饰符和类型方法说明AbstractClassLibrary.getJavaPackages()Get all packages of the currentAbstractClassLibrary.protected final Collection<JavaPackage>AbstractClassLibrary.getJavaPackages(com.thoughtworks.qdox.library.AbstractClassLibrary.ClassLibraryFilter filter) ClassLibrary.getJavaPackages()Return all JavaPackages of the current library.SourceLibrary.getJavaPackages()Get all packages, including those from parent SourceLibrariesJavaClassContext.getPackages()Return all stored JavaPackages参数类型为JavaPackage的com.thoughtworks.qdox.library中的方法修饰符和类型方法说明voidJavaClassContext.add(JavaPackage jPackage) A null-safe implementation to store aJavaPackagein this context -
com.thoughtworks.qdox.model中JavaPackage的使用
修饰符和类型方法说明JavaClass.getPackage()Equivalent ofClass.getPackage()JavaSource.getPackage()The package of this source ornullJavaPackage.getParentPackage()The parent of this package For instance: the package ofjava.lang.reflectisjava.langJavaModuleDescriptor.JavaExports.getSource()JavaModuleDescriptor.JavaOpens.getSource()返回变量类型为JavaPackage的类型的com.thoughtworks.qdox.model中的方法修饰符和类型方法说明JavaPackage.getSubPackages()For instance: one of the children ofjava.langwould bejava.lang.reflect -
com.thoughtworks.qdox.model.impl中JavaPackage的使用
修饰符和类型方法说明DefaultJavaClass.getPackage()Equivalent ofClass.getPackage()DefaultJavaSource.getPackage()The package of this source ornullDefaultJavaType.getPackage()Equivalent ofClass.getPackage()DefaultJavaPackage.getParentPackage()The parent of this package For instance: the package ofjava.lang.reflectisjava.langDefaultJavaModuleDescriptor.DefaultJavaExports.getSource()DefaultJavaModuleDescriptor.DefaultJavaOpens.getSource()返回变量类型为JavaPackage的类型的com.thoughtworks.qdox.model.impl中的方法修饰符和类型方法说明DefaultJavaPackage.getSubPackages()For instance: one of the children ofjava.langwould bejava.lang.reflect修饰符和类型方法说明voidDefaultJavaClass.setJavaPackage(JavaPackage javaPackage) Only used when constructing the model by hand / without sourcevoidDefaultJavaSource.setPackage(JavaPackage pkg) 参数类型为JavaPackage的com.thoughtworks.qdox.model.impl中的构造器限定符构造器说明DefaultJavaExports(JavaPackage source, Collection<JavaModule> targets) DefaultJavaOpens(JavaPackage source, Collection<JavaModule> targets) -
com.thoughtworks.qdox.writer中JavaPackage的使用
参数类型为JavaPackage的com.thoughtworks.qdox.writer中的方法修饰符和类型方法说明ModelWriter.writePackage(JavaPackage pkg) Write the java package A standard package writer should write: the javadoc the annotations the package signature -
com.thoughtworks.qdox.writer.impl中JavaPackage的使用
修饰符和类型方法说明DefaultModelWriter.writePackage(JavaPackage pckg) Write the java package A standard package writer should write: the javadoc the annotations the package signature