类 ModuleNode
java.lang.Object
cn.taketoday.bytecode.ModuleVisitor
cn.taketoday.bytecode.tree.ModuleNode
A node that represents a module declaration.
- 作者:
- Remi Forax
-
字段概要
字段修饰符和类型字段说明intThe module's access flags, amongACC_OPEN,ACC_SYNTHETICandACC_MANDATED.The packages exported by this module.The internal name of the main class of this module.The fully qualified name (using dots) of this module.The packages opened by this module.The internal name of the packages declared by this module.The services provided by this module.The dependencies of this module.The internal names of the services used by this module.The version of this module.从类继承的字段 cn.taketoday.bytecode.ModuleVisitor
mv -
构造器概要
构造器构造器说明ModuleNode(String name, int access, String version) Constructs aModuleNode.ModuleNode(String name, int access, String version, List<ModuleRequireNode> requires, List<ModuleExportNode> exports, List<ModuleOpenNode> opens, List<String> uses, List<ModuleProvideNode> provides) Constructs aModuleNode. -
方法概要
修饰符和类型方法说明voidaccept(ClassVisitor classVisitor) Makes the given class visitor visit this module.voidvisitEnd()Visits the end of the module.voidvisitExport(String packaze, int access, String... modules) Visit an exported package of the current module.voidvisitMainClass(String mainClass) Visit the main class of the current module.voidVisit an open package of the current module.voidvisitPackage(String packaze) Visit a package of the current module.voidvisitProvide(String service, String... providers) Visit an implementation of a service.voidvisitRequire(String module, int access, String version) Visits a dependence of the current module.voidVisit a service used by the current module.
-
字段详细资料
-
name
The fully qualified name (using dots) of this module. -
access
public int accessThe module's access flags, amongACC_OPEN,ACC_SYNTHETICandACC_MANDATED. -
version
The version of this module. May be null. -
mainClass
The internal name of the main class of this module. May be null. -
packages
The internal name of the packages declared by this module. May be null. -
requires
The dependencies of this module. May be null. -
exports
The packages exported by this module. May be null. -
opens
The packages opened by this module. May be null. -
uses
The internal names of the services used by this module. May be null. -
provides
The services provided by this module. May be null.
-
-
构造器详细资料
-
ModuleNode
Constructs aModuleNode.- 参数:
name- the fully qualified name (using dots) of the module.access- the module access flags, amongACC_OPEN,ACC_SYNTHETICandACC_MANDATED.version- the module version, or null.
-
ModuleNode
public ModuleNode(String name, int access, String version, List<ModuleRequireNode> requires, List<ModuleExportNode> exports, List<ModuleOpenNode> opens, List<String> uses, List<ModuleProvideNode> provides) Constructs aModuleNode.- 参数:
name- the fully qualified name (using dots) of the module.access- the module access flags, amongACC_OPEN,ACC_SYNTHETICandACC_MANDATED.version- the module version, or null.requires- The dependencies of this module. May be null.exports- The packages exported by this module. May be null.opens- The packages opened by this module. May be null.uses- The internal names of the services used by this module. May be null.provides- The services provided by this module. May be null.
-
-
方法详细资料
-
visitMainClass
从类复制的说明:ModuleVisitorVisit the main class of the current module.- 覆盖:
visitMainClass在类中ModuleVisitor- 参数:
mainClass- the internal name of the main class of the current module.
-
visitPackage
从类复制的说明:ModuleVisitorVisit a package of the current module.- 覆盖:
visitPackage在类中ModuleVisitor- 参数:
packaze- the internal name of a package.
-
visitRequire
从类复制的说明:ModuleVisitorVisits a dependence of the current module.- 覆盖:
visitRequire在类中ModuleVisitor- 参数:
module- the fully qualified name (using dots) of the dependence.access- the access flag of the dependence amongACC_TRANSITIVE,ACC_STATIC_PHASE,ACC_SYNTHETICandACC_MANDATED.version- the module version at compile time, or null.
-
visitExport
从类复制的说明:ModuleVisitorVisit an exported package of the current module.- 覆盖:
visitExport在类中ModuleVisitor- 参数:
packaze- the internal name of the exported package.access- the access flag of the exported package, valid values are amongACC_SYNTHETICandACC_MANDATED.modules- the fully qualified names (using dots) of the modules that can access the public classes of the exported package, or null.
-
visitOpen
从类复制的说明:ModuleVisitorVisit an open package of the current module.- 覆盖:
visitOpen在类中ModuleVisitor- 参数:
packaze- the internal name of the opened package.access- the access flag of the opened package, valid values are amongACC_SYNTHETICandACC_MANDATED.modules- the fully qualified names (using dots) of the modules that can use deep reflection to the classes of the open package, or null.
-
visitUse
从类复制的说明:ModuleVisitorVisit a service used by the current module. The name must be the internal name of an interface or a class.- 覆盖:
visitUse在类中ModuleVisitor- 参数:
service- the internal name of the service.
-
visitProvide
从类复制的说明:ModuleVisitorVisit an implementation of a service.- 覆盖:
visitProvide在类中ModuleVisitor- 参数:
service- the internal name of the service.providers- the internal names of the implementations of the service (there is at least one provider).
-
visitEnd
public void visitEnd()从类复制的说明:ModuleVisitorVisits the end of the module. This method, which is the last one to be called, is used to inform the visitor that everything have been visited.- 覆盖:
visitEnd在类中ModuleVisitor
-
accept
Makes the given class visitor visit this module.- 参数:
classVisitor- a class visitor.
-