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.- Author:
- Remi Forax
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RemapperThe remapper used to remap the types in the visited module.Fields inherited from class org.objectweb.asm.ModuleVisitor
api, mv -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedModuleRemapper(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 TypeMethodDescriptionvoidvisitExport(String packaze, int access, String... modules) voidvisitMainClass(String mainClass) voidvoidvisitPackage(String packaze) voidvisitProvide(String service, String... providers) voidvisitRequire(String module, int access, String version) voidMethods inherited from class org.objectweb.asm.ModuleVisitor
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 theASMx 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:
visitMainClassin classorg.objectweb.asm.ModuleVisitor
-
visitPackage
- Overrides:
visitPackagein classorg.objectweb.asm.ModuleVisitor
-
visitRequire
- Overrides:
visitRequirein classorg.objectweb.asm.ModuleVisitor
-
visitExport
- Overrides:
visitExportin classorg.objectweb.asm.ModuleVisitor
-
visitOpen
- Overrides:
visitOpenin classorg.objectweb.asm.ModuleVisitor
-
visitUse
- Overrides:
visitUsein classorg.objectweb.asm.ModuleVisitor
-
visitProvide
- Overrides:
visitProvidein classorg.objectweb.asm.ModuleVisitor
-