B
- The bean typeT
- The return type@Internal public abstract class AbstractBeanMethod<B,T> extends Object implements BeanMethod<B,T>
BeanMethod
interface.EMPTY
Modifier | Constructor and Description |
---|---|
protected |
AbstractBeanMethod(BeanIntrospection<B> introspection,
Argument<T> returnType,
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() |
String |
getName() |
ReturnType<T> |
getReturnType() |
T |
invoke(B instance,
Object... arguments)
Invokes the method.
|
protected abstract T |
invokeInternal(B instance,
Object... arguments)
Abstract implementation implemented by generated byte code.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeclaringType
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
protected AbstractBeanMethod(@NonNull BeanIntrospection<B> introspection, @NonNull Argument<T> returnType, @NonNull 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()
AnnotationMetadataProvider
AnnotationMetadata.EMPTY_METADATA
.getAnnotationMetadata
in interface AnnotationMetadataProvider
AnnotationMetadata
public final Argument<?>[] getArguments()
Executable
getArguments
in interface Executable<B,T>
public T invoke(@NonNull B instance, Object... arguments)
Executable
invoke
in interface Executable<B,T>
instance
- The instance. Nullable only if it's a static method call.arguments
- The arguments