Interface MethodHolder
- All Known Implementing Classes:
MethodHolder.Binding
,MethodHolder.NonBinding
public interface MethodHolder
An interface for managing invocations of methods whose arguments may need to be augmented, by
binding in certain parameters ahead of time.
Implementations may use various invocation mechanisms, including:
- direct method invocation on an held object
- calling a method pointer
- calling a MethodHandle bound to the known arguments
- calling a MethodHandle without binding to the known arguments
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static class
This implementation ofMethodHolder
is not thread safe. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault MethodHolder
default MethodHolder
static Object
doInvoke
(MethodHandle methodHandle, Object... args) static MethodHolder
from
(MethodHandle methodHandle) static MethodHolder
from
(MethodHandle methodHandle, boolean binding) default Class
<?> parameterType
(int idx) default Class
<?>
-
Field Details
-
METHOD_HOLDER_BINDING_PROPERTY
- See Also:
-
IS_BINDING
static final boolean IS_BINDING
-
-
Method Details
-
from
-
from
-
invoke
-
bindTo
-
bindTo
-
parameterType
-
returnType
-
doInvoke
- Throws:
Throwable
-