public final class CheckModuleAdapter extends ModuleVisitor
api, mv
Constructor and Description |
---|
CheckModuleAdapter(ModuleVisitor mv) |
Modifier and Type | Method and Description |
---|---|
void |
visitEnd() |
void |
visitExport(String packaze,
String... modules)
Visit an exported package of the current module.
|
void |
visitProvide(String service,
String impl)
Visit an implementation of a service.
|
void |
visitRequire(String module,
int access)
Visits a dependence of the current module.
|
void |
visitUse(String service)
Visit a service used by the current module.
|
public CheckModuleAdapter(ModuleVisitor mv)
public void visitRequire(String module, int access)
ModuleVisitor
visitRequire
in class ModuleVisitor
module
- the module name of the dependenceaccess
- the access flag of the dependence among
ACC_PUBLIC, ACC_SYNTHETIC and ACC_MANDATED.public void visitExport(String packaze, String... modules)
ModuleVisitor
visitExport
in class ModuleVisitor
packaze
- the name of the exported package.modules
- names of the modules that can access to
the public classes of the exported package or
null.public void visitUse(String service)
ModuleVisitor
visitUse
in class ModuleVisitor
service
- the internal name of the service.public void visitProvide(String service, String impl)
ModuleVisitor
visitProvide
in class ModuleVisitor
service
- the internal name of the serviceimpl
- the internal name of the implementation
of the servicepublic void visitEnd()
visitEnd
in class ModuleVisitor