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.RemapperARemapperusing aMapto define its mapping.
-
-
Constructor Summary
Constructors Constructor Description DataClayRemapper(String oldName, String newName)Constructs a newSimpleRemapperwith the given mapping.DataClayRemapper(Map<String,String> mapping)Constructs a newSimpleRemapperwith the given mapping.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmap(String key)StringmapFieldName(String owner, String name, String descriptor)StringmapInvokeDynamicMethodName(String name, String descriptor)StringmapMethodName(String owner, String name, String descriptor)StringmapType(String internalName)
-
-
-
Constructor Detail
-
DataClayRemapper
public DataClayRemapper(Map<String,String> mapping)
Constructs a newSimpleRemapperwith 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 newSimpleRemapperwith 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:
mapMethodNamein classorg.objectweb.asm.commons.Remapper
-
mapInvokeDynamicMethodName
public String mapInvokeDynamicMethodName(String name, String descriptor)
- Overrides:
mapInvokeDynamicMethodNamein classorg.objectweb.asm.commons.Remapper
-
mapFieldName
public String mapFieldName(String owner, String name, String descriptor)
- Overrides:
mapFieldNamein classorg.objectweb.asm.commons.Remapper
-
mapType
public String mapType(String internalName)
- Overrides:
mapTypein classorg.objectweb.asm.commons.Remapper
-
-