public interface MappingResolver
Note: The target namespace (the one being mapped to) for mapping (or the source one for unmapping) is always implied to be the one Loader is currently operating in.
All the className used in this resolver are in binary names,
such as "mypackage.MyClass$Inner".
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentRuntimeNamespace()
Get the current namespace being used at runtime.
|
Collection<String> |
getNamespaces()
Get the list of all available mapping namespaces in the loaded instance.
|
String |
mapClassName(String namespace,
String className)
Map a class name to the mapping currently used at runtime.
|
String |
mapFieldName(String namespace,
String owner,
String name,
String descriptor)
Map a field name to the mapping currently used at runtime.
|
String |
mapMethodName(String namespace,
String owner,
String name,
String descriptor)
Map a method name to the mapping currently used at runtime.
|
String |
unmapClassName(String targetNamespace,
String className)
Unmap a class name to the mapping currently used at runtime.
|
Collection<String> getNamespaces()
String getCurrentRuntimeNamespace()
String mapClassName(String namespace, String className)
namespace - the namespace of the provided class nameclassName - the provided binary class nameclassName if no such mapping is presentString unmapClassName(String targetNamespace, String className)
targetNamespace - The target namespace for unmapping.className - the provided binary class name of the mapping form currently used at runtimeclassName if no such mapping is presentString mapFieldName(String namespace, String owner, String name, String descriptor)
namespace - the namespace of the provided field name and descriptorowner - the binary name of the owner class of the fieldname - the name of the fielddescriptor - the descriptor of the fieldname if no such mapping is presentString mapMethodName(String namespace, String owner, String name, String descriptor)
namespace - the namespace of the provided method name and descriptorowner - the binary name of the owner class of the methodname - the name of the methoddescriptor - the descriptor of the methodname if no such mapping is present