B - The bean typeT - The return type@Internal public abstract class AbstractBeanMethod<B,T> extends java.lang.Object implements BeanMethod<B,T>
BeanMethod interface.EMPTY| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBeanMethod(BeanIntrospection<B> introspection,
Argument<T> returnType,
java.lang.String name,
AnnotationMetadata annotationMetadata,
Argument<?>... arguments)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationMetadata |
getAnnotationMetadata()
Supplies the metadata.
|
Argument<?>[] |
getArguments()
The required argument types.
|
BeanIntrospection<B> |
getDeclaringBean() |
java.lang.String |
getName() |
ReturnType<T> |
getReturnType() |
T |
invoke(B instance,
java.lang.Object... arguments)
Invokes the method.
|
protected abstract T |
invokeInternal(B instance,
java.lang.Object... arguments)
Abstract implementation implemented by generated byte code.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypegetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotationprotected AbstractBeanMethod(@NonNull BeanIntrospection<B> introspection, @NonNull Argument<T> returnType, @NonNull java.lang.String name, @Nullable AnnotationMetadata annotationMetadata, @Nullable Argument<?>... arguments)
introspection - The associated introspectionreturnType - The return typename - The name of the methodannotationMetadata - The annotation metadataarguments - The argument types@NonNull public BeanIntrospection<B> getDeclaringBean()
getDeclaringBean in interface BeanMethod<B,T>@NonNull public final ReturnType<T> getReturnType()
getReturnType in interface BeanMethod<B,T>@NonNull public final AnnotationMetadata getAnnotationMetadata()
AnnotationMetadataProviderAnnotationMetadata.EMPTY_METADATA.getAnnotationMetadata in interface AnnotationMetadataProviderAnnotationMetadata@NonNull public final java.lang.String getName()
public final Argument<?>[] getArguments()
ExecutablegetArguments in interface Executable<B,T>public T invoke(@NonNull B instance, java.lang.Object... arguments)
Executableinvoke in interface Executable<B,T>instance - The instancearguments - The arguments