SimpleRemapper (ASM 5.0.4 Documentation)
Date: 2015-09-18

org.objectweb.asm.commons

## Class SimpleRemapper

- java.lang.Object
- - org.objectweb.asm.commons.Remapper
  - - org.objectweb.asm.commons.SimpleRemapper

-     public class SimpleRemapper
      extends Remapper

  A `Remapper` using a `Map` to define its mapping.
  Author:
    Eugene Kuleshov

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleRemapper(Map<String,String> mapping)`
    `SimpleRemapper(String oldName, String newName)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `map(String key)` Map type name to the new name.
    `String` | `mapFieldName(String owner, String name, String desc)` Map field name to the new name.
    `String` | `mapInvokeDynamicMethodName(String name, String desc)` Map invokedynamic method name to the new name.
    `String` | `mapMethodName(String owner, String name, String desc)` Map method name to the new name.

    - ### Methods inherited from class org.objectweb.asm.commons.Remapper

      `createRemappingSignatureAdapter, mapDesc, mapMethodDesc, mapSignature, mapType, mapTypes, mapValue`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SimpleRemapper

          public SimpleRemapper(Map<String,String> mapping)

    - #### SimpleRemapper

          public SimpleRemapper(String oldName,
                        String newName)

  - ### Method Detail

    - #### mapMethodName

          public String mapMethodName(String owner,
                             String name,
                             String desc)

      Description copied from class: `Remapper`
      Map method name to the new name. Subclasses can override.
      Overrides:
        `mapMethodName` in class `Remapper`
      Parameters:
        `owner` - owner of the method.
        `name` - name of the method.
        `desc` - descriptor of the method.
      Returns:
        new name of the method

    - #### mapInvokeDynamicMethodName

          public String mapInvokeDynamicMethodName(String name,
                                          String desc)

      Description copied from class: `Remapper`
      Map invokedynamic method name to the new name. Subclasses can override.
      Overrides:
        `mapInvokeDynamicMethodName` in class `Remapper`
      Parameters:
        `name` - name of the invokedynamic.
        `desc` - descriptor of the invokedynamic.
      Returns:
        new invokdynamic name.

    - #### mapFieldName

          public String mapFieldName(String owner,
                            String name,
                            String desc)

      Description copied from class: `Remapper`
      Map field name to the new name. Subclasses can override.
      Overrides:
        `mapFieldName` in class `Remapper`
      Parameters:
        `owner` - owner of the field.
        `name` - name of the field
        `desc` - descriptor of the field
      Returns:
        new name of the field.

    - #### map

          public String map(String key)

      Description copied from class: `Remapper`
      Map type name to the new name. Subclasses can override.
      Overrides:
        `map` in class `Remapper`