Top Description Fields Constructors Methods
jdk.internal.org.objectweb.asm.commons

public Class ModuleRemapper

extends ModuleVisitor
Class Inheritance
Imports
jdk.internal.org.objectweb.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 jdk.internal.org.objectweb.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.
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 jdk.internal.org.objectweb.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.
mainClass
)

Overrides jdk.internal.org.objectweb.asm.ModuleVisitor.visitMainClass.

Visit the main class of the current module.
public void
visitOpen(final String
the internal name of the opened package.
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 jdk.internal.org.objectweb.asm.ModuleVisitor.visitOpen.

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

Overrides jdk.internal.org.objectweb.asm.ModuleVisitor.visitPackage.

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

Overrides jdk.internal.org.objectweb.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 jdk.internal.org.objectweb.asm.ModuleVisitor.visitRequire.

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

Overrides jdk.internal.org.objectweb.asm.ModuleVisitor.visitUse.

Visit a service used by the current module.
Inherited from jdk.internal.org.objectweb.asm.ModuleVisitor:
visitEnd

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 jdk.internal.org.objectweb.asm.ModuleVisitor.visitExport.

Doc from jdk.internal.org.objectweb.asm.ModuleVisitor.visitExport.

Visit an exported package of the current module.

Parameters
packaze:String

the internal name of the exported package.

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 jdk.internal.org.objectweb.asm.ModuleVisitor.visitMainClass.

Doc from jdk.internal.org.objectweb.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.

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

Overrides jdk.internal.org.objectweb.asm.ModuleVisitor.visitOpen.

Doc from jdk.internal.org.objectweb.asm.ModuleVisitor.visitOpen.

Visit an open package of the current module.

Parameters
packaze:String

the internal name of the opened package.

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 jdk.internal.org.objectweb.asm.ModuleVisitor.visitPackage.

Doc from jdk.internal.org.objectweb.asm.ModuleVisitor.visitPackage.

Visit a package of the current module.

Parameters
packaze:String

the internal name of a package.

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

Overrides jdk.internal.org.objectweb.asm.ModuleVisitor.visitProvide.

Doc from jdk.internal.org.objectweb.asm.ModuleVisitor.visitProvide.

Visit an implementation of a service.

Parameters
service:String

the internal name of the service.

providers:String[]

the internal names 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 jdk.internal.org.objectweb.asm.ModuleVisitor.visitRequire.

Doc from jdk.internal.org.objectweb.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 jdk.internal.org.objectweb.asm.ModuleVisitor.visitUse.

Doc from jdk.internal.org.objectweb.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.

Annotations
@Override