Interface ReflectiveAccess.NameResolver
- Enclosing class:
ReflectiveAccess
public static interface ReflectiveAccess.NameResolver
Maps source names from an external namespace to names visible in the current runtime.
-
Method Summary
Modifier and TypeMethodDescriptionmapClassName(String namespace, String className) Maps a class name from the supplied namespace.mapFieldName(String namespace, String ownerClassName, String fieldName, String descriptor) Maps a field name from the supplied namespace.mapMethodName(String namespace, String ownerClassName, String methodName, String descriptor) Maps a method name from the supplied namespace.
-
Method Details
-
mapClassName
-
mapMethodName
default Optional<String> mapMethodName(String namespace, String ownerClassName, String methodName, String descriptor) Maps a method name from the supplied namespace.- Parameters:
namespace- source namespace for the provided nameownerClassName- fully qualified source owner class namemethodName- source method namedescriptor- JVM descriptor in the source namespace, when available- Returns:
- mapped runtime method name, or empty when unsupported
-
mapFieldName
default Optional<String> mapFieldName(String namespace, String ownerClassName, String fieldName, String descriptor) Maps a field name from the supplied namespace.- Parameters:
namespace- source namespace for the provided nameownerClassName- fully qualified source owner class namefieldName- source field namedescriptor- JVM descriptor in the source namespace, when available- Returns:
- mapped runtime field name, or empty when unsupported
-