Top Description Fields Constructors Methods
net.bytebuddy.jar.asm.commons

public Class ModuleRemapper

extends ModuleVisitor
Class Inheritance
Imports
net.bytebuddy.jar.asm.ModuleVisitor, .Opcodes

A ModuleVisitor that remaps types with a Remapper.
Author
Remi Forax

Field Summary

Modifier and TypeField and Description
protected final Remapper
remapper

The remapper used to remap the types in the visited module.

Inherited from net.bytebuddy.jar.asm.ModuleVisitor:
apimv

Constructor Summary

AccessConstructor and Description
public
ModuleRemapper(final ModuleVisitor
the module visitor this remapper must delegate to.
moduleVisitor
,
final Remapper
the remapper to use to remap the types in the visited module.
remapper
)

Constructs a new ModuleRemapper.

protected
ModuleRemapper(final int
the ASM API version supported by this remapper. Must be one of the ASMx values in Opcodes.
api
,
final ModuleVisitor
the module visitor this remapper must delegate to.
moduleVisitor
,
final Remapper
the remapper to use to remap the types in the visited module.
remapper
)

Constructs a new ModuleRemapper.

Method Summary

Modifier and TypeMethod and Description
public void
visitExport(final String
the internal name of the exported package (see Type#getInternalName()).
packaze
,
final int
the access flag of the exported package, valid values are among ACC_SYNTHETIC and ACC_MANDATED.
access
,
final String...
the fully qualified names (using dots) of the modules that can access the public classes of the exported package, or null.
modules
)

Overrides net.bytebuddy.jar.asm.ModuleVisitor.visitExport.

Visit an exported package of the current module.
public void
visitMainClass(final String
the internal name of the main class of the current module (see Type#getInternalName()).
mainClass
)

Overrides net.bytebuddy.jar.asm.ModuleVisitor.visitMainClass.

Visit the main class of the current module.
public void
visitOpen(final String
the internal name of the opened package (see Type#getInternalName()).
packaze
,
final int
the access flag of the opened package, valid values are among ACC_SYNTHETIC and ACC_MANDATED.
access
,
final String...
the fully qualified names (using dots) of the modules that can use deep reflection to the classes of the open package, or null.
modules
)

Overrides net.bytebuddy.jar.asm.ModuleVisitor.visitOpen.

Visit an open package of the current module.
public void
visitPackage(final String
the internal name of a package (see Type#getInternalName()).
packaze
)

Overrides net.bytebuddy.jar.asm.ModuleVisitor.visitPackage.

Visit a package of the current module.
public void
visitProvide(final String
the internal name of the service (see Type#getInternalName()).
service
,
final String...
the internal names (see Type#getInternalName()) of the implementations of the service (there is at least one provider).
providers
)

Overrides net.bytebuddy.jar.asm.ModuleVisitor.visitProvide.

Visit an implementation of a service.
public void
visitRequire(final String
the fully qualified name (using dots) of the dependence.
module
,
final int
the access flag of the dependence among ACC_TRANSITIVE, ACC_STATIC_PHASE, ACC_SYNTHETIC and ACC_MANDATED.
access
,
final String
the module version at compile time, or null.
version
)

Overrides net.bytebuddy.jar.asm.ModuleVisitor.visitRequire.

Visits a dependence of the current module.
public void
visitUse(final String
the internal name of the service (see Type#getInternalName()).
service
)

Overrides net.bytebuddy.jar.asm.ModuleVisitor.visitUse.

Visit a service used by the current module.
Inherited from net.bytebuddy.jar.asm.ModuleVisitor:
getDelegatevisitEnd

Field Detail

remapperback to summary
protected final Remapper remapper

The remapper used to remap the types in the visited module.

Constructor Detail

ModuleRemapperback to summary
public ModuleRemapper(final ModuleVisitor moduleVisitor, final Remapper remapper)

Constructs a new ModuleRemapper. Subclasses must not use this constructor. Instead, they must use the ModuleRemapper(int, ModuleVisitor, Remapper) version.

Parameters
moduleVisitor:ModuleVisitor

the module visitor this remapper must delegate to.

remapper:Remapper

the remapper to use to remap the types in the visited module.

ModuleRemapperback to summary
protected ModuleRemapper(final int api, final ModuleVisitor moduleVisitor, final Remapper remapper)

Constructs a new ModuleRemapper.

Parameters
api:int

the ASM API version supported by this remapper. Must be one of the ASMx values in Opcodes.

moduleVisitor:ModuleVisitor

the module visitor this remapper must delegate to.

remapper:Remapper

the remapper to use to remap the types in the visited module.

Method Detail

visitExportback to summary
public void visitExport(final String packaze, final int access, final String... modules)

Overrides net.bytebuddy.jar.asm.ModuleVisitor.visitExport.

Doc from net.bytebuddy.jar.asm.ModuleVisitor.visitExport.

Visit an exported package of the current module.

Parameters
packaze:String

the internal name of the exported package (see Type#getInternalName()).

access:int

the access flag of the exported package, valid values are among ACC_SYNTHETIC and ACC_MANDATED.

modules:String[]

the fully qualified names (using dots) of the modules that can access the public classes of the exported package, or null.

Annotations
@Override
visitMainClassback to summary
public void visitMainClass(final String mainClass)

Overrides net.bytebuddy.jar.asm.ModuleVisitor.visitMainClass.

Doc from net.bytebuddy.jar.asm.ModuleVisitor.visitMainClass.

Visit the main class of the current module.

Parameters
mainClass:String

the internal name of the main class of the current module (see Type#getInternalName()).

Annotations
@Override
visitOpenback to summary
public void visitOpen(final String packaze, final int access, final String... modules)

Overrides net.bytebuddy.jar.asm.ModuleVisitor.visitOpen.

Doc from net.bytebuddy.jar.asm.ModuleVisitor.visitOpen.

Visit an open package of the current module.

Parameters
packaze:String

the internal name of the opened package (see Type#getInternalName()).

access:int

the access flag of the opened package, valid values are among ACC_SYNTHETIC and ACC_MANDATED.

modules:String[]

the fully qualified names (using dots) of the modules that can use deep reflection to the classes of the open package, or null.

Annotations
@Override
visitPackageback to summary
public void visitPackage(final String packaze)

Overrides net.bytebuddy.jar.asm.ModuleVisitor.visitPackage.

Doc from net.bytebuddy.jar.asm.ModuleVisitor.visitPackage.

Visit a package of the current module.

Parameters
packaze:String

the internal name of a package (see Type#getInternalName()).

Annotations
@Override
visitProvideback to summary
public void visitProvide(final String service, final String... providers)

Overrides net.bytebuddy.jar.asm.ModuleVisitor.visitProvide.

Doc from net.bytebuddy.jar.asm.ModuleVisitor.visitProvide.

Visit an implementation of a service.

Parameters
service:String

the internal name of the service (see Type#getInternalName()).

providers:String[]

the internal names (see Type#getInternalName()) of the implementations of the service (there is at least one provider).

Annotations
@Override
visitRequireback to summary
public void visitRequire(final String module, final int access, final String version)

Overrides net.bytebuddy.jar.asm.ModuleVisitor.visitRequire.

Doc from net.bytebuddy.jar.asm.ModuleVisitor.visitRequire.

Visits a dependence of the current module.

Parameters
module:String

the fully qualified name (using dots) of the dependence.

access:int

the access flag of the dependence among ACC_TRANSITIVE, ACC_STATIC_PHASE, ACC_SYNTHETIC and ACC_MANDATED.

version:String

the module version at compile time, or null.

Annotations
@Override
visitUseback to summary
public void visitUse(final String service)

Overrides net.bytebuddy.jar.asm.ModuleVisitor.visitUse.

Doc from net.bytebuddy.jar.asm.ModuleVisitor.visitUse.

Visit a service used by the current module. The name must be the internal name of an interface or a class.

Parameters
service:String

the internal name of the service (see Type#getInternalName()).

Annotations
@Override