Package es.bsc.dataclay.util.tools.java
Class DataClayRemapper
- java.lang.Object
-
- org.objectweb.asm.commons.Remapper
-
- es.bsc.dataclay.util.tools.java.DataClayRemapper
-
public class DataClayRemapper extends org.objectweb.asm.commons.Remapper
ARemapper
using aMap
to define its mapping.
-
-
Constructor Summary
Constructors Constructor Description DataClayRemapper(String oldName, String newName)
Constructs a newSimpleRemapper
with the given mapping.DataClayRemapper(Map<String,String> mapping)
Constructs a newSimpleRemapper
with the given mapping.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
map(String key)
String
mapFieldName(String owner, String name, String descriptor)
String
mapInvokeDynamicMethodName(String name, String descriptor)
String
mapMethodName(String owner, String name, String descriptor)
String
mapType(String internalName)
-
-
-
Constructor Detail
-
DataClayRemapper
public DataClayRemapper(Map<String,String> mapping)
Constructs a newSimpleRemapper
with the given mapping.- Parameters:
mapping
- a map specifying a remapping as follows:- for method names, the key is the owner, name and descriptor of the method (in the form <owner>.<name><descriptor>), and the value is the new method name.
- for invokedynamic method names, the key is the name and descriptor of the method (in the form .<name><descriptor>), and the value is the new method name.
- for field names, the key is the owner and name of the field (in the form <owner>.<name>), and the value is the new field name.
- for internal names, the key is the old internal name, and the value is the new internal name.
-
DataClayRemapper
public DataClayRemapper(String oldName, String newName)
Constructs a newSimpleRemapper
with the given mapping.- Parameters:
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.
-
-
Method Detail
-
mapMethodName
public String mapMethodName(String owner, String name, String descriptor)
- Overrides:
mapMethodName
in classorg.objectweb.asm.commons.Remapper
-
mapInvokeDynamicMethodName
public String mapInvokeDynamicMethodName(String name, String descriptor)
- Overrides:
mapInvokeDynamicMethodName
in classorg.objectweb.asm.commons.Remapper
-
mapFieldName
public String mapFieldName(String owner, String name, String descriptor)
- Overrides:
mapFieldName
in classorg.objectweb.asm.commons.Remapper
-
mapType
public String mapType(String internalName)
- Overrides:
mapType
in classorg.objectweb.asm.commons.Remapper
-
-