public class ModuleRemapper
extends org.objectweb.asm.ModuleVisitor
ModuleVisitor
that remaps types with a Remapper
.Modifier and Type | Field and Description |
---|---|
protected Remapper |
remapper
The remapper used to remap the types in the visited module.
|
Modifier | Constructor and Description |
---|---|
protected |
ModuleRemapper(int api,
org.objectweb.asm.ModuleVisitor moduleVisitor,
Remapper remapper)
Constructs a new
ModuleRemapper . |
|
ModuleRemapper(org.objectweb.asm.ModuleVisitor moduleVisitor,
Remapper remapper)
Constructs a new
ModuleRemapper . |
Modifier and Type | Method and Description |
---|---|
void |
visitExport(java.lang.String packaze,
int access,
java.lang.String... modules) |
void |
visitMainClass(java.lang.String mainClass) |
void |
visitOpen(java.lang.String packaze,
int access,
java.lang.String... modules) |
void |
visitPackage(java.lang.String packaze) |
void |
visitProvide(java.lang.String service,
java.lang.String... providers) |
void |
visitRequire(java.lang.String module,
int access,
java.lang.String version) |
void |
visitUse(java.lang.String service) |
protected final Remapper remapper
public ModuleRemapper(org.objectweb.asm.ModuleVisitor moduleVisitor, Remapper remapper)
ModuleRemapper
. Subclasses must not use this constructor.
Instead, they must use the ModuleRemapper(int,ModuleVisitor,Remapper)
version.moduleVisitor
- the module visitor this remapper must deleted to.remapper
- the remapper to use to remap the types in the visited module.protected ModuleRemapper(int api, org.objectweb.asm.ModuleVisitor moduleVisitor, Remapper remapper)
ModuleRemapper
.api
- the ASM API version supported by this remapper. Must be one of Opcodes.ASM4
, Opcodes.ASM5
or Opcodes.ASM6
.moduleVisitor
- the module visitor this remapper must deleted to.remapper
- the remapper to use to remap the types in the visited module.public void visitMainClass(java.lang.String mainClass)
visitMainClass
in class org.objectweb.asm.ModuleVisitor
public void visitPackage(java.lang.String packaze)
visitPackage
in class org.objectweb.asm.ModuleVisitor
public void visitRequire(java.lang.String module, int access, java.lang.String version)
visitRequire
in class org.objectweb.asm.ModuleVisitor
public void visitExport(java.lang.String packaze, int access, java.lang.String... modules)
visitExport
in class org.objectweb.asm.ModuleVisitor
public void visitOpen(java.lang.String packaze, int access, java.lang.String... modules)
visitOpen
in class org.objectweb.asm.ModuleVisitor
public void visitUse(java.lang.String service)
visitUse
in class org.objectweb.asm.ModuleVisitor
public void visitProvide(java.lang.String service, java.lang.String... providers)
visitProvide
in class org.objectweb.asm.ModuleVisitor