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:
BeanMethod<B,T>
,BoundExecutable<T,R>
- All Known Implementing Classes:
AbstractBeanMethod
public interface Executable<T,R> extends AnnotationMetadataProvider
Represents an executable reference. The reference could be implemented via reflection (slow) or via generated code
.- Since:
- 1.0
-
-
Field Summary
-
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Argument<?>[]
getArguments()
The required argument types.java.lang.Class<T>
getDeclaringType()
R
invoke(T instance, java.lang.Object... arguments)
Invokes the method.-
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, 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
-
-