org.compass.core.util.asm.commons
Class Remapper

java.lang.Object
  extended by org.compass.core.util.asm.commons.Remapper
Direct Known Subclasses:
SimpleRemapper

public abstract class Remapper
extends Object

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

Author:
Eugene Kuleshov

Constructor Summary
Remapper()
           
 
Method Summary
protected  SignatureVisitor createRemappingSignatureAdapter(SignatureVisitor v)
           
 String map(String typeName)
          Map type name to the new name.
 String mapDesc(String desc)
           
 String mapFieldName(String owner, String name, String desc)
          Map field name to the new name.
 String mapMethodDesc(String desc)
           
 String mapMethodName(String owner, String name, String desc)
          Map method name to the new name.
 String mapSignature(String signature, boolean typeSignature)
           
 String mapType(String type)
           
 String[] mapTypes(String[] types)
           
 Object mapValue(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Remapper

public Remapper()
Method Detail

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)
Parameters:
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 name to the new name. Subclasses can override.


mapFieldName

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


map

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



Copyright (c) 2004-2008 The Compass Project.