Interface DefaultRulesReflectionProxy
- All Known Implementing Classes:
AbstractDefaultRulesReflectionProxy
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
public interface DefaultRulesReflectionProxy
Interface with all the methods needed for the default rules to function.
Since the proxy methods must all be static, ProxyGenerator should be used to generate a class with a static field holding an instance of your proxy, and static methods redirecting to that instance.
-
Method Summary
Modifier and TypeMethodDescriptionaltMetafactory(MethodHandles.Lookup caller, String interfaceMethodName, MethodType factoryType, Object... args) bind(MethodHandles.Lookup lookup, Object receiver, String name, MethodType type) fieldVarHandle(MethodHandles.Lookup lookup, String name, Class<VarHandle> type, Class<?> declaringClass, Class<?> fieldType) Class<?>findClass(MethodHandles.Lookup lookup, String targetName) findGetter(MethodHandles.Lookup lookup, Class<?> refc, String name, Class<?> type) findSetter(MethodHandles.Lookup lookup, Class<?> refc, String name, Class<?> type) findSpecial(MethodHandles.Lookup lookup, Class<?> refc, String name, MethodType type, Class<?> specialCaller) findStatic(MethodHandles.Lookup lookup, Class<?> refc, String name, MethodType type) findStaticGetter(MethodHandles.Lookup lookup, Class<?> refc, String name, Class<?> type) findStaticSetter(MethodHandles.Lookup lookup, Class<?> refc, String name, Class<?> type) findStaticVarHandle(MethodHandles.Lookup lookup, Class<?> decl, String name, Class<?> type) findVarHandle(MethodHandles.Lookup lookup, Class<?> recv, String name, Class<?> type) findVirtual(MethodHandles.Lookup lookup, Class<?> refc, String name, MethodType type) Class<?>Class<?>Class<?>forName(String name, boolean initialize, ClassLoader loader) fromMethodDescriptorString(String descriptor, ClassLoader loader) getDeclaredField(Class<?> clazz, String name) getDeclaredMethod(Class<?> clazz, String name, Class<?>... parameterTypes) getStaticFinal(MethodHandles.Lookup lookup, String name, Class<?> type) getStaticFinal(MethodHandles.Lookup lookup, String name, Class<?> type, Class<?> declaringClass) metafactory(MethodHandles.Lookup caller, String interfaceMethodName, MethodType factoryType, MethodType interfaceMethodType, MethodHandle implementation, MethodType dynamicMethodType) staticFieldVarHandle(MethodHandles.Lookup lookup, String name, Class<VarHandle> type, Class<?> declaringClass, Class<?> fieldType)
-
Method Details
-
forName
- Throws:
ClassNotFoundException
-
forName
- Throws:
ClassNotFoundException
-
forName
-
getField
-
getDeclaredField
-
getDeclaredMethod
Method getDeclaredMethod(Class<?> clazz, String name, Class<?>... parameterTypes) throws NoSuchMethodException, SecurityException -
getMethod
Method getMethod(Class<?> clazz, String name, Class<?>... parameterTypes) throws NoSuchMethodException, SecurityException -
findStatic
MethodHandle findStatic(MethodHandles.Lookup lookup, Class<?> refc, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException -
findVirtual
MethodHandle findVirtual(MethodHandles.Lookup lookup, Class<?> refc, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException -
findClass
Class<?> findClass(MethodHandles.Lookup lookup, String targetName) throws ClassNotFoundException, IllegalAccessException -
findSpecial
MethodHandle findSpecial(MethodHandles.Lookup lookup, Class<?> refc, String name, MethodType type, Class<?> specialCaller) throws NoSuchMethodException, IllegalAccessException -
findGetter
MethodHandle findGetter(MethodHandles.Lookup lookup, Class<?> refc, String name, Class<?> type) throws NoSuchFieldException, IllegalAccessException -
findSetter
MethodHandle findSetter(MethodHandles.Lookup lookup, Class<?> refc, String name, Class<?> type) throws NoSuchFieldException, IllegalAccessException -
findStaticGetter
MethodHandle findStaticGetter(MethodHandles.Lookup lookup, Class<?> refc, String name, Class<?> type) throws NoSuchFieldException, IllegalAccessException -
findStaticSetter
MethodHandle findStaticSetter(MethodHandles.Lookup lookup, Class<?> refc, String name, Class<?> type) throws NoSuchFieldException, IllegalAccessException -
bind
MethodHandle bind(MethodHandles.Lookup lookup, Object receiver, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException -
findVarHandle
VarHandle findVarHandle(MethodHandles.Lookup lookup, Class<?> recv, String name, Class<?> type) throws NoSuchFieldException, IllegalAccessException -
findStaticVarHandle
VarHandle findStaticVarHandle(MethodHandles.Lookup lookup, Class<?> decl, String name, Class<?> type) throws NoSuchFieldException, IllegalAccessException -
metafactory
CallSite metafactory(MethodHandles.Lookup caller, String interfaceMethodName, MethodType factoryType, MethodType interfaceMethodType, MethodHandle implementation, MethodType dynamicMethodType) throws LambdaConversionException - Throws:
LambdaConversionException
-
altMetafactory
CallSite altMetafactory(MethodHandles.Lookup caller, String interfaceMethodName, MethodType factoryType, Object... args) throws LambdaConversionException - Throws:
LambdaConversionException
-
getStaticFinal
Object getStaticFinal(MethodHandles.Lookup lookup, String name, Class<?> type, Class<?> declaringClass) -
getStaticFinal
-
fieldVarHandle
-
staticFieldVarHandle
-
fromMethodDescriptorString
MethodType fromMethodDescriptorString(String descriptor, ClassLoader loader) throws IllegalArgumentException, TypeNotPresentException
-