public abstract class Interceptor extends Object
Constructor and Description |
---|
Interceptor(MethodRef... methodRefs) |
Modifier and Type | Method and Description |
---|---|
abstract MethodHandle |
getMethodHandle(String methodName,
MethodType type) |
MethodRef[] |
getMethodRefs() |
abstract Function<Object,Object> |
handle(MethodSignature methodSignature) |
protected static Function<Object,Object> |
returnDefaultValue(MethodSignature methodSignature) |
public Interceptor(MethodRef... methodRefs)
public MethodRef[] getMethodRefs()
public abstract Function<Object,Object> handle(MethodSignature methodSignature)
public abstract MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException
@Nonnull protected static Function<Object,Object> returnDefaultValue(MethodSignature methodSignature)