类 CheckModuleAdapter
java.lang.Object
cn.taketoday.bytecode.ModuleVisitor
cn.taketoday.bytecode.util.CheckModuleAdapter
A
ModuleVisitor that checks that its methods are properly used.- 作者:
- Remi Forax
-
字段概要
从类继承的字段 cn.taketoday.bytecode.ModuleVisitor
mv -
构造器概要
构造器构造器说明CheckModuleAdapter(ModuleVisitor moduleVisitor, boolean isOpen) Constructs a newCheckModuleAdapter. -
方法概要
修饰符和类型方法说明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.
-
构造器详细资料
-
CheckModuleAdapter
Constructs a newCheckModuleAdapter.- 参数:
moduleVisitor- the module visitor to which this adapter must delegate calls.isOpen- whether the visited module is open. Open modules have theirOpcodes.ACC_OPENaccess flag set inClassVisitor.visitModule(java.lang.String, int, java.lang.String).
-
-
方法详细资料
-
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
-