public class SimpleRemapper extends Remapper
Constructor and Description |
---|
SimpleRemapper(Map<String,String> mapping)
Constructs a new
SimpleRemapper with the given mapping. |
SimpleRemapper(String oldName,
String newName)
Constructs a new
SimpleRemapper with the given mapping. |
Modifier and Type | Method and Description |
---|---|
String |
map(String key)
Maps the internal name of a class to its new name.
|
String |
mapFieldName(String owner,
String name,
String descriptor)
Maps a field name to its new name.
|
String |
mapInvokeDynamicMethodName(String name,
String descriptor)
Maps an invokedynamic or a constant dynamic method name to its new name.
|
String |
mapMethodName(String owner,
String name,
String descriptor)
Maps a method name to its new name.
|
createRemappingSignatureAdapter, createSignatureRemapper, mapDesc, mapInnerClassName, mapMethodDesc, mapModuleName, mapPackageName, mapSignature, mapType, mapTypes, mapValue
public SimpleRemapper(Map<String,String> mapping)
SimpleRemapper
with the given mapping.mapping
- a map specifying a remapping as follows:
public SimpleRemapper(String oldName, String newName)
SimpleRemapper
with the given mapping.oldName
- the key corresponding to a method, field or internal name (see SimpleRemapper(Map)
for the format of these keys).newName
- the new method, field or internal name.public String mapMethodName(String owner, String name, String descriptor)
Remapper
mapMethodName
in class Remapper
owner
- the internal name of the owner class of the method.name
- the name of the method.descriptor
- the descriptor of the method.public String mapInvokeDynamicMethodName(String name, String descriptor)
Remapper
mapInvokeDynamicMethodName
in class Remapper
name
- the name of the method.descriptor
- the descriptor of the method.public String mapFieldName(String owner, String name, String descriptor)
Remapper
mapFieldName
in class Remapper
owner
- the internal name of the owner class of the field.name
- the name of the field.descriptor
- the descriptor of the field.Copyright © 2023. All rights reserved.