public class MethodHandleInfo
extends java.lang.Object
AbstractMethodMap.
Contains all the relevant information about the underlying method that is invokable via the
contained method or methodhandle.| Constructor and Description |
|---|
MethodHandleInfo(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.invoke.MethodHandles.Lookup lookup) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.invoke.MethodHandles.Lookup |
getLookup()
Retrieves the underlying lookup.
|
java.lang.reflect.Method |
getMethod()
Retrieves the underlying method.
|
java.lang.invoke.MethodHandle |
getMethodHandle()
Retrieves the underlying methodhandle.
|
int |
getModifiers()
Retrieves the access modifier value of the underlying method.
|
java.lang.Object |
getTarget()
Retrieves the target object to which the methodhandle is bound if it is non-static.
|
java.lang.Object |
invoke(java.lang.Object... args) |
public MethodHandleInfo(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.invoke.MethodHandles.Lookup lookup)
throws java.lang.IllegalAccessException
target - the target object to which the methodhandle will be bound if
it is non-staticmethod - the java method represented by this methodhandleinfolookup - the lookup used to produce the methodhandle for this
methodhandleinfojava.lang.IllegalAccessException - See the documentation for
MethodHandles.Lookup.unreflect(Method)public java.lang.Object getTarget()
public java.lang.reflect.Method getMethod()
public java.lang.invoke.MethodHandles.Lookup getLookup()
public java.lang.invoke.MethodHandle getMethodHandle()
public int getModifiers()
public java.lang.Object invoke(java.lang.Object... args)
throws java.lang.Throwable
java.lang.Throwable