T
- R
- public interface BoundExecutable<T,R> extends Executable<T,R>
Executable
is an executable who argument values have been pre-bound to
values using a ArgumentBinderRegistry
.
Unlike a normal Executable
zero arguments are expected and an exception will
be thrown if the underlying target Executable
cannot be invoked with the current stateEMPTY
Modifier and Type | Method and Description |
---|---|
default AnnotationMetadata |
getAnnotationMetadata()
Supplies the metadata.
|
default Argument[] |
getArguments()
The required argument types.
|
java.lang.Object[] |
getBoundArguments()
That arguments that will be used to invoke the method.
|
Executable<T,R> |
getTarget() |
default java.util.List<Argument<?>> |
getUnboundArguments()
If the executable can only be partially bound then this method will return the arguments that have not been bound.
|
R |
invoke(T instance)
Invoke the bound
Executable . |
default R |
invoke(T instance,
java.lang.Object... arguments)
Invokes the method.
|
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation
Executable<T,R> getTarget()
R invoke(T instance)
Executable
.instance
- The target instancejava.lang.Object[] getBoundArguments()
default java.util.List<Argument<?>> getUnboundArguments()
default R invoke(T instance, java.lang.Object... arguments)
Executable
invoke
in interface Executable<T,R>
instance
- The instancearguments
- The argumentsdefault Argument[] getArguments()
Executable
getArguments
in interface Executable<T,R>
default AnnotationMetadata getAnnotationMetadata()
AnnotationMetadataProvider
AnnotationMetadata.EMPTY_METADATA
.getAnnotationMetadata
in interface AnnotationMetadataProvider
AnnotationMetadata