Package | Description |
---|---|
es.uniovi.reflection.invokedynamic |
Provides a set of classes to allow dynamically linkage invocations using the invokedynamic bytecode
|
Modifier and Type | Field and Description |
---|---|
private Callable<T> |
MethodClass.call |
private Callable<T> |
MemberClass.call |
private Callable<T> |
MemberBSClass.call |
Modifier and Type | Field and Description |
---|---|
private static java.util.HashMap<MemberBSClass<?>,Callable<?>> |
ProxyFactory.invokedynamicClass |
private static java.util.HashMap<MemberClass<?>,Callable<?>> |
ProxyFactory.memberClass |
private static java.util.HashMap<java.lang.reflect.Method,Callable<?>> |
ProxyFactory.methodsClass |
Modifier and Type | Method and Description |
---|---|
static <T> Callable<T> |
ProxyFactory.generateCallable(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<T> returnType,
java.lang.Class<?>... parametersType)
Generates a Callable instance to perform dynamic invocations to an instance method, indicating its signature.
|
static <T> Callable<T> |
ProxyFactory.generateCallable(java.lang.reflect.Method method)
Generates a Callable instance to perform dynamic invocations to an instance method, indicating a Method instance.
|
static <T> Callable<T> |
ProxyFactory.generateCallable(java.lang.Object object,
java.lang.String methodName,
java.lang.Class<T> returnType,
java.lang.Class<?>... parametersType)
Generates a Callable instance to perform dynamic invocations to an instance method, indicating its signature.
|
static <T> Callable<T> |
ProxyFactory.generateCallable(java.lang.String clazzDescriptor,
java.lang.String methodName,
java.lang.Class<T> returnType,
java.lang.Class<?>... parametersType)
Generates a Callable instance to perform dynamic invocations to an instance method, indicating its signature.
|
static <T> Callable<T> |
ProxyFactory.generateInvokeDynamicCallable(Bootstrap bootstrap,
MethodSignature methodSignature)
Generates a Callable instance to perform dynamic invocations to methods, fields and constructors received as a parameter.
|
static <T> Callable<T> |
ProxyFactory.generateStaticCallable(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<T> returnType,
java.lang.Class<?>... parametersType)
Generates a Callable instance to perform dynamic invocations to a static method, indicating its signature.
|
static <T> Callable<T> |
ProxyFactory.generateStaticCallable(java.lang.Object object,
java.lang.String methodName,
java.lang.Class<T> returnType,
java.lang.Class<?>... parametersType)
Generates a Callable instance to perform dynamic invocations to a static method, indicating its signature.
|
static <T> Callable<T> |
ProxyFactory.generateStaticCallable(java.lang.String clazzDescriptor,
java.lang.String methodName,
java.lang.Class<T> returnType,
java.lang.Class<?>... parametersType)
Generates a Callable instance to perform dynamic invocations to a static method, indicating its signature.
|
Callable<T> |
MethodClass.getCallable()
Returns an instance of the generated class.
|
Callable<T> |
MemberClass.getCallable()
Returns an instance of the generated class.
|
Callable<T> |
MemberBSClass.getCallable()
Returns an instance of the generated class.
|
private static <T> Callable<T> |
ProxyFactory.getCallable(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.Class<?> rtype,
java.lang.Class<?>[] parametersType,
TypeModifier typeModifier)
Returns a Callable object.
|
private Callable<T> |
MethodClass.getInstance()
Gets the class to extend the Callable interface.
|
private Callable<T> |
MemberClass.getInstance()
Gets the class to extend the Callable interface.
|
private Callable<T> |
MemberBSClass.getInstance()
Gets the class to extend the Callable interface.
|
private static <T> Callable<T> |
ProxyFactory.getInvokedynamicCallable(Bootstrap bootstrap,
MethodSignature methodSignature)
Returns a Callable object.
|