类 SimpleRemapper
java.lang.Object
cn.taketoday.bytecode.commons.Remapper
cn.taketoday.bytecode.commons.SimpleRemapper
- 作者:
- Eugene Kuleshov
-
字段概要
字段 -
构造器概要
构造器构造器说明SimpleRemapper(String oldName, String newName) Constructs a newSimpleRemapperwith the given mapping.SimpleRemapper(Map<String, String> mapping) Constructs a newSimpleRemapperwith the given mapping. -
方法概要
修饰符和类型方法说明Maps the internal name of a class to its new name.mapAnnotationAttributeName(String descriptor, String name) Maps an annotation attribute name.mapFieldName(String owner, String name, String descriptor) Maps a field name to its new name.mapInvokeDynamicMethodName(String name, String descriptor) Maps an invokedynamic or a constant dynamic method name to its new name.mapMethodName(String owner, String name, String descriptor) Maps a method name to its new name.从类继承的方法 cn.taketoday.bytecode.commons.Remapper
createSignatureRemapper, mapDesc, mapInnerClassName, mapMethodDesc, mapModuleName, mapPackageName, mapRecordComponentName, mapSignature, mapType, mapTypes, mapValue
-
字段详细资料
-
mapping
-
-
构造器详细资料
-
SimpleRemapper
Constructs a newSimpleRemapperwith the given mapping.- 参数:
mapping- a map specifying a remapping as follows:- for method names, the key is the owner, name and descriptor of the method (in the form <owner>.<name><descriptor>), and the value is the new method name.
- for invokedynamic method names, the key is the name and descriptor of the method (in the form .<name><descriptor>), and the value is the new method name.
- for field and attribute names, the key is the owner and name of the field or attribute (in the form <owner>.<name>), and the value is the new field name.
- for internal names, the key is the old internal name, and the value is the new internal name.
-
SimpleRemapper
Constructs a newSimpleRemapperwith the given mapping.- 参数:
oldName- the key corresponding to a method, field or internal name (seeSimpleRemapper(Map)for the format of these keys).newName- the new method, field or internal name.
-
-
方法详细资料
-
mapMethodName
从类复制的说明:RemapperMaps a method name to its new name. The default implementation of this method returns the given name, unchanged. Subclasses can override.- 覆盖:
mapMethodName在类中Remapper- 参数:
owner- the internal name of the owner class of the method.name- the name of the method.descriptor- the descriptor of the method.- 返回:
- the new name of the method.
-
mapInvokeDynamicMethodName
从类复制的说明:RemapperMaps an invokedynamic or a constant dynamic method name to its new name. The default implementation of this method returns the given name, unchanged. Subclasses can override.- 覆盖:
mapInvokeDynamicMethodName在类中Remapper- 参数:
name- the name of the method.descriptor- the descriptor of the method.- 返回:
- the new name of the method.
-
mapAnnotationAttributeName
从类复制的说明:RemapperMaps an annotation attribute name. The default implementation of this method returns the given name, unchanged. Subclasses can override.- 覆盖:
mapAnnotationAttributeName在类中Remapper- 参数:
descriptor- the descriptor of the annotation class.name- the name of the annotation attribute.- 返回:
- the new name of the annotation attribute.
-
mapFieldName
从类复制的说明:RemapperMaps a field name to its new name. The default implementation of this method returns the given name, unchanged. Subclasses can override.- 覆盖:
mapFieldName在类中Remapper- 参数:
owner- the internal name of the owner class of the field.name- the name of the field.descriptor- the descriptor of the field.- 返回:
- the new name of the field.
-
map
从类复制的说明:RemapperMaps the internal name of a class to its new name. The default implementation of this method returns the given name, unchanged. Subclasses can override.
-