org.objectweb.asm.commons

Class Remapper

public abstract class Remapper extends Object

A class responsible for remapping types and names. Subclasses can override the following methods:

Author: Eugene Kuleshov

Method Summary
protected SignatureVisitorcreateRemappingSignatureAdapter(SignatureVisitor v)
Stringmap(String typeName)
Map type name to the new name.
StringmapDesc(String desc)
StringmapFieldName(String owner, String name, String desc)
Map field name to the new name.
StringmapMethodDesc(String desc)
StringmapMethodName(String owner, String name, String desc)
Map method name to the new name.
StringmapSignature(String signature, boolean typeSignature)
StringmapType(String type)
String[]mapTypes(String[] types)
ObjectmapValue(Object value)

Method Detail

createRemappingSignatureAdapter

protected SignatureVisitor createRemappingSignatureAdapter(SignatureVisitor v)

map

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

mapDesc

public String mapDesc(String desc)

mapFieldName

public String mapFieldName(String owner, String name, String desc)
Map field name to the new name. Subclasses can override.

mapMethodDesc

public String mapMethodDesc(String desc)

mapMethodName

public String mapMethodName(String owner, String name, String desc)
Map method name to the new name. Subclasses can override.

mapSignature

public String mapSignature(String signature, boolean typeSignature)

Parameters: typeSignature true if signature is a FieldTypeSignature, such as the signature parameter of the ClassVisitor.visitField or MethodVisitor.visitLocalVariable methods

mapType

public String mapType(String type)

mapTypes

public String[] mapTypes(String[] types)

mapValue

public Object mapValue(Object value)