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 |
mapAnnotationAttributeName(String descriptor,
String name)
Maps an annotation attribute 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, mapRecordComponentName, mapSignature, mapType, mapTypes, mapValuepublic 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)
RemappermapMethodName in class Remapperowner - 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)
RemappermapInvokeDynamicMethodName in class Remappername - the name of the method.descriptor - the descriptor of the method.public String mapAnnotationAttributeName(String descriptor, String name)
RemappermapAnnotationAttributeName in class Remapperdescriptor - the descriptor of the annotation class.name - the name of the annotation attribute.public String mapFieldName(String owner, String name, String descriptor)
RemappermapFieldName in class Remapperowner - the internal name of the owner class of the field.name - the name of the field.descriptor - the descriptor of the field.Copyright © 2021. All rights reserved.