Package io.micronaut.core.type
Interface Executable<T,R>
- Type Parameters:
T
- The declaring typeR
- The result of the method call
- All Superinterfaces:
AnnotationMetadataProvider
,AnnotationSource
- All Known Subinterfaces:
BeanDefinitionMethodReference<T,
,R> BeanMethod<B,
,T> BoundExecutable<T,
,R> ConstructorInvocationContext<T>
,DelegatingExecutableMethod<T,
,R> ExecutableMethod<T,
,R> InvocationContext<T,
,R> MethodInvocationContext<T,
,R> UnsafeExecutable<T,
R>
- All Known Implementing Classes:
AbstractBeanMethod
,AbstractExecutableBeanMethod
,AbstractExecutableMethod
,ConstructorInterceptorChain
,InterceptorChain
,MethodInterceptorChain
Represents an executable reference. The reference could be implemented via reflection (slow) or via generated code
.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
Method Summary
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
Method Details
-
getDeclaringType
- Returns:
- The declaring type
- Since:
- 3.0.0
-
getArguments
The required argument types.- Returns:
- The arguments
-
invoke
Invokes the method.- Parameters:
instance
- The instance. Nullable only if it's a static method call.arguments
- The arguments- Returns:
- The result
-