public interface TargetResolver
| Modifier and Type | Method and Description |
|---|---|
default @NonNull Optional<Class<?>> |
lookupClass(@NonNull Class<? extends Shadow> shadowClass)
Attempts to find the corresponding target class for the given shadow class.
|
default @NonNull Optional<String> |
lookupField(@NonNull Method shadowMethod,
@NonNull Class<? extends Shadow> shadowClass,
@NonNull Class<?> targetClass)
Attempts to find the corresponding target field name for the given shadow method.
|
default @NonNull Optional<String> |
lookupMethod(@NonNull Method shadowMethod,
@NonNull Class<? extends Shadow> shadowClass,
@NonNull Class<?> targetClass)
Attempts to find the corresponding target method name for the given shadow method.
|
default @NonNull Optional<Class<?>> lookupClass(@NonNull Class<? extends Shadow> shadowClass) throws ClassNotFoundException
shadowClass - the shadow classClassNotFoundException - if the resultant target class cannot be loadeddefault @NonNull Optional<String> lookupMethod(@NonNull Method shadowMethod, @NonNull Class<? extends Shadow> shadowClass, @NonNull Class<?> targetClass)
shadowMethod - the shadow method to lookup a target method forshadowClass - the class defining the shadow methodtargetClass - the target class. the resultant method should resolve for this class.default @NonNull Optional<String> lookupField(@NonNull Method shadowMethod, @NonNull Class<? extends Shadow> shadowClass, @NonNull Class<?> targetClass)
shadowMethod - the shadow method to lookup a target field forshadowClass - the class defining the shadow methodtargetClass - the target class. the resultant method should resolve for this class.