ClassRemapper is a ClassTransform, FieldTransform,
MethodTransform and CodeTransform
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.
| Modifier and Type | Method and Description |
|---|---|
| public CodeTransform | |
| public FieldTransform | |
| public MethodTransform | |
| public ClassDesc | |
| public static ClassRemapper | |
| public static ClassRemapper | |
| public default byte[] | Returns: re-mapped class file bytesClassFile context context, ClassModel class model to re-map clm)Remaps the whole ClassModel into a new class file, including the class name. |
| asCodeTransform | back to summary |
|---|---|
| public CodeTransform asCodeTransform() Returns this
| |
| asFieldTransform | back to summary |
|---|---|
| public FieldTransform asFieldTransform() Returns this
| |
| asMethodTransform | back to summary |
|---|---|
| public MethodTransform asMethodTransform() Returns this
| |
| map | back to summary |
|---|---|
| public ClassDesc map(ClassDesc desc) Access method to internal class mapping function. | |
| of | back to summary |
|---|---|
| public static ClassRemapper of(Map<ClassDesc, ClassDesc> classMap) Creates new instance of
| |
| of | back to summary |
|---|---|
| public static ClassRemapper of(Function<ClassDesc, ClassDesc> mapFunction) Creates new instance of
| |
| remapClass | back to summary |
|---|---|
| public default byte[] remapClass(ClassFile context, ClassModel clm) Remaps the whole ClassModel into a new class file, including the class name.
| |