类 Remapper

java.lang.Object
org.beetl.ow2.asm.commons.Remapper
直接已知子类:
SimpleRemapper

public abstract class Remapper extends Object
A class responsible for remapping types and names. Subclasses can override the following methods:
作者:
Eugene Kuleshov
  • 构造器详细资料

    • Remapper

      public Remapper()
  • 方法详细资料

    • mapDesc

      public String mapDesc(String desc)
    • mapType

      public String mapType(String type)
    • mapTypes

      public String[] mapTypes(String[] types)
    • mapMethodDesc

      public String mapMethodDesc(String desc)
    • mapValue

      public Object mapValue(Object value)
    • mapSignature

      public String mapSignature(String signature, boolean typeSignature)
      参数:
      typeSignature - true if signature is a FieldTypeSignature, such as the signature parameter of the ClassVisitor.visitField or MethodVisitor.visitLocalVariable methods
    • createRemappingSignatureAdapter

      protected SignatureVisitor createRemappingSignatureAdapter(SignatureVisitor v)
    • mapMethodName

      public String mapMethodName(String owner, String name, String desc)
      Map method className to the new className. Subclasses can override.
      参数:
      owner - owner of the method.
      name - className of the method.
      desc - descriptor of the method.
      返回:
      new className of the method
    • mapInvokeDynamicMethodName

      public String mapInvokeDynamicMethodName(String name, String desc)
      Map invokedynamic method className to the new className. Subclasses can override.
      参数:
      name - className of the invokedynamic.
      desc - descriptor of the invokedynamic.
      返回:
      new invokdynamic className.
    • mapFieldName

      public String mapFieldName(String owner, String name, String desc)
      Map field className to the new className. Subclasses can override.
      参数:
      owner - owner of the field.
      name - className of the field
      desc - descriptor of the field
      返回:
      new className of the field.
    • map

      public String map(String typeName)
      Map type className to the new className. Subclasses can override.