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.
|
Object[] |
getBoundArguments()
That arguments that will be used to invoke the method.
|
default Class<T> |
getDeclaringType() |
Executable<T,R> |
getTarget() |
default 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,
Object... arguments)
Invokes the method.
|
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
Executable<T,R> getTarget()
R invoke(T instance)
Executable
.instance
- The target instanceObject[] getBoundArguments()
default Class<T> getDeclaringType()
getDeclaringType
in interface Executable<T,R>
default List<Argument<?>> getUnboundArguments()
default R invoke(T instance, 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