org.mvel2.asm.commons
Class SimpleRemapper
java.lang.Object
org.mvel2.asm.commons.Remapper
org.mvel2.asm.commons.SimpleRemapper
public class SimpleRemapper
- extends Remapper
A Remapper using a Map to define its mapping.
- Author:
- Eugene Kuleshov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleRemapper
public SimpleRemapper(Map<String,String> mapping)
SimpleRemapper
public SimpleRemapper(String oldName,
String newName)
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
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 fielddesc - 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
Copyright © 2014. All Rights Reserved.