Class DataClayRemapper


  • public class DataClayRemapper
    extends org.objectweb.asm.commons.Remapper
    A Remapper using a Map to define its mapping.
    • Constructor Detail

      • DataClayRemapper

        public DataClayRemapper​(Map<String,​String> mapping)
        Constructs a new SimpleRemapper 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 new SimpleRemapper 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 class org.objectweb.asm.commons.Remapper
      • mapInvokeDynamicMethodName

        public String mapInvokeDynamicMethodName​(String name,
                                                 String descriptor)
        Overrides:
        mapInvokeDynamicMethodName in class org.objectweb.asm.commons.Remapper
      • mapFieldName

        public String mapFieldName​(String owner,
                                   String name,
                                   String descriptor)
        Overrides:
        mapFieldName in class org.objectweb.asm.commons.Remapper
      • mapType

        public String mapType​(String internalName)
        Overrides:
        mapType in class org.objectweb.asm.commons.Remapper
      • map

        public String map​(String key)
        Overrides:
        map in class org.objectweb.asm.commons.Remapper