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