程序包的使用
com.thoughtworks.qdox.model
程序包
说明
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 classes reflecting the Java expressions.
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.
-
类说明Equivalent of
Class, providing the most important methods.The root of every JavaModel, even for those based on binary classes. -
-
-
类说明Equivalent of
Class, providing the most important methods.The root of every JavaModel, even for those based on binary classes. -
类说明Equivalent of
AnnotatedElement, providing the most important methods.Equivalent ofClass, providing the most important methods.Modeled equivalent ofConstructor, providing the most important methods.A shared interface for the common functionality of Method and Constructor.Modeled equivalent ofField, providing the most important methods.Equivalent ofGenericDeclaration.AJavaClasscan have contain one of the following initializers: A static initializer declared in a class is executed when the class is initialized An instance initializer declared in a class is executed when an instance of the class is created In code this would look like:Represents the following ModuleStatement:
exports SOURCE [to TARGET{, TARGET}];where SOURCE matches a PackageName and TARGET matches a ModuleNameRepresents the following ModuleStatement:
opens SOURCE [to TARGET{, TARGET}];where SOURCE matches a PackageName and TARGET matches a ModuleNameRepresents the following ModuleStatement:
provides SERVICE with PROVIDER;where SERVICE matches a TypeName and TARGET matches a TypeNameRepresents the following ModuleStatement:
requires [public] [static] NAME;Where NAME matches a ModuleNameRepresents the following ModuleStatement:
uses NAME;Where NAME matches a TypeNameJavaParameter is an extended version of JavaClass and doesn't exist in the java api.The root of every JavaModel, even for those based on binary classes.Equivalent ofType. -
-
类说明Equivalent of
AnnotatedElement, providing the most important methods.Equivalent ofClass, providing the most important methods.Modeled equivalent ofConstructor, providing the most important methods.A shared interface for the common functionality of Method and Constructor.Modeled equivalent ofField, providing the most important methods.Equivalent ofGenericDeclaration.AJavaClasscan have contain one of the following initializers: A static initializer declared in a class is executed when the class is initialized An instance initializer declared in a class is executed when an instance of the class is created In code this would look like:Represents the following ModuleStatement:
exports SOURCE [to TARGET{, TARGET}];where SOURCE matches a PackageName and TARGET matches a ModuleNameRepresents the following ModuleStatement:
opens SOURCE [to TARGET{, TARGET}];where SOURCE matches a PackageName and TARGET matches a ModuleNameRepresents the following ModuleStatement:
provides SERVICE with PROVIDER;where SERVICE matches a TypeName and TARGET matches a TypeNameRepresents the following ModuleStatement:
requires [public] [static] NAME;Where NAME matches a ModuleNameRepresents the following ModuleStatement:
uses NAME;Where NAME matches a TypeNameJavaParameter is an extended version of JavaClass and doesn't exist in the java api.Equivalent ofParameterizedType.The root of every JavaModel, even for those based on binary classes.Equivalent ofType.Equivalent ofWildcardType -
-
类说明Equivalent of
Class, providing the most important methods.Modeled equivalent ofConstructor, providing the most important methods.Modeled equivalent ofField, providing the most important methods.AJavaClasscan have contain one of the following initializers: A static initializer declared in a class is executed when the class is initialized An instance initializer declared in a class is executed when an instance of the class is created In code this would look like:Represents the following ModuleStatement:
exports SOURCE [to TARGET{, TARGET}];where SOURCE matches a PackageName and TARGET matches a ModuleNameRepresents the following ModuleStatement:
opens SOURCE [to TARGET{, TARGET}];where SOURCE matches a PackageName and TARGET matches a ModuleNameRepresents the following ModuleStatement:
provides SERVICE with PROVIDER;where SERVICE matches a TypeName and TARGET matches a TypeNameRepresents the following ModuleStatement:
requires [public] [static] NAME;Where NAME matches a ModuleNameRepresents the following ModuleStatement:
uses NAME;Where NAME matches a TypeNameJavaParameter is an extended version of JavaClass and doesn't exist in the java api.The root of every JavaModel, even for those based on binary classes. -
类说明Equivalent of
AnnotatedElement, providing the most important methods.Equivalent ofClass, providing the most important methods.Modeled equivalent ofConstructor, providing the most important methods.Modeled equivalent ofField, providing the most important methods.AJavaClasscan have contain one of the following initializers: A static initializer declared in a class is executed when the class is initialized An instance initializer declared in a class is executed when an instance of the class is created In code this would look like:Represents the following ModuleStatement:
exports SOURCE [to TARGET{, TARGET}];where SOURCE matches a PackageName and TARGET matches a ModuleNameRepresents the following ModuleStatement:
opens SOURCE [to TARGET{, TARGET}];where SOURCE matches a PackageName and TARGET matches a ModuleNameRepresents the following ModuleStatement:
provides SERVICE with PROVIDER;where SERVICE matches a TypeName and TARGET matches a TypeNameRepresents the following ModuleStatement:
requires [public] [static] NAME;Where NAME matches a ModuleNameRepresents the following ModuleStatement:
uses NAME;Where NAME matches a TypeNameJavaParameter is an extended version of JavaClass and doesn't exist in the java api.The root of every JavaModel, even for those based on binary classes.