Package org.objectweb.asm.commons
Class ModuleRemapper
java.lang.Object
org.objectweb.asm.ModuleVisitor
org.objectweb.asm.commons.ModuleRemapper
public class ModuleRemapper
extends org.objectweb.asm.ModuleVisitor
A
ModuleVisitor
that remaps types with a Remapper
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Remapper
The remapper used to remap the types in the visited module.Fields inherited from class org.objectweb.asm.ModuleVisitor
api, mv
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ModuleRemapper
(int api, org.objectweb.asm.ModuleVisitor moduleVisitor, Remapper remapper) Constructs a newModuleRemapper
.ModuleRemapper
(org.objectweb.asm.ModuleVisitor moduleVisitor, Remapper remapper) Constructs a newModuleRemapper
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
visitExport
(String packaze, int access, String... modules) void
visitMainClass
(String mainClass) void
void
visitPackage
(String packaze) void
visitProvide
(String service, String... providers) void
visitRequire
(String module, int access, String version) void
Methods inherited from class org.objectweb.asm.ModuleVisitor
getDelegate, visitEnd
-
Field Details
-
remapper
The remapper used to remap the types in the visited module.
-
-
Constructor Details
-
ModuleRemapper
Constructs a newModuleRemapper
. Subclasses must not use this constructor. Instead, they must use theModuleRemapper(int,ModuleVisitor,Remapper)
version.- Parameters:
moduleVisitor
- the module visitor this remapper must delegate to.remapper
- the remapper to use to remap the types in the visited module.
-
ModuleRemapper
Constructs a newModuleRemapper
.- Parameters:
api
- the ASM API version supported by this remapper. Must be one of theASM
x values inOpcodes
.moduleVisitor
- the module visitor this remapper must delegate to.remapper
- the remapper to use to remap the types in the visited module.
-
-
Method Details
-
visitMainClass
- Overrides:
visitMainClass
in classorg.objectweb.asm.ModuleVisitor
-
visitPackage
- Overrides:
visitPackage
in classorg.objectweb.asm.ModuleVisitor
-
visitRequire
- Overrides:
visitRequire
in classorg.objectweb.asm.ModuleVisitor
-
visitExport
- Overrides:
visitExport
in classorg.objectweb.asm.ModuleVisitor
-
visitOpen
- Overrides:
visitOpen
in classorg.objectweb.asm.ModuleVisitor
-
visitUse
- Overrides:
visitUse
in classorg.objectweb.asm.ModuleVisitor
-
visitProvide
- Overrides:
visitProvide
in classorg.objectweb.asm.ModuleVisitor
-