Interface MethodHolder
- All Known Implementing Classes:
 MethodHolder.Binding, MethodHolder.NonBinding, MethodHolder.Wrapper
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 classstatic classThis implementation ofMethodHolderis not thread safe.static class - 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptiondefault MethodHolderdefault MethodHolderstatic ObjectdoInvoke(MethodHandle methodHandle, Object... args) static MethodHolderfrom(MethodHandle methodHandle) static MethodHolderfrom(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
 
 -