public abstract class ModuleVisitor extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
api
The ASM API version implemented by this visitor.
|
protected ModuleVisitor |
mv
The module visitor to which this visitor must delegate method calls.
|
Constructor and Description |
---|
ModuleVisitor(int api) |
ModuleVisitor(int api,
ModuleVisitor mv)
Constructs a new
MethodVisitor . |
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.
|
protected final int api
Opcodes.ASM6
.protected ModuleVisitor mv
public ModuleVisitor(int api)
public ModuleVisitor(int api, ModuleVisitor mv)
MethodVisitor
.api
- the ASM API version implemented by this visitor. Must be Opcodes.ASM6
.mv
- the method visitor to which this visitor must delegate method
calls. May be null.public void visitRequire(String module, int access)
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)
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)
service
- the internal name of the service.public void visitProvide(String service, String impl)
service
- the internal name of the serviceimpl
- the internal name of the implementation
of the servicepublic void visitEnd()