Module java.base

Interface ClassRemapper

All Superinterfaces:
ClassFileTransformPREVIEW<ClassTransformPREVIEW,ClassElementPREVIEW,ClassBuilderPREVIEW>, ClassTransformPREVIEW

public sealed interface ClassRemapper extends ClassTransformPREVIEW
ClassRemapper is a preview API of the Java platform.
Programs can only use ClassRemapper when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
ClassRemapper is a ClassTransformPREVIEW, FieldTransformPREVIEW, MethodTransformPREVIEW and CodeTransformPREVIEW deeply re-mapping all class references in any form, according to given map or map function.

The re-mapping is applied to superclass, interfaces, all kinds of descriptors and signatures, all attributes referencing classes in any form (including all types of annotations), and to all instructions referencing to classes.

Primitive types and arrays are never subjects of mapping and are not allowed targets of mapping.

Arrays of reference types are always decomposed, mapped as the base reference types and composed back to arrays.

Since:
22