MirrorFunction<T, A extends MAnnotation, R> class
扫描到的函数信息
Constructors
-
MirrorFunction(A annotation, String name, List<
MirrorParam< params, MirrorFunctionInvoker<MAnnotation, dynamic> >T, R> invoker, MirrorFunctionInstance<T> function, bool returnTypeIsNonNullable) -
const
Properties
- annotation → A
-
扫描时的注解信息
final
-
annotationType
→ TypeToken<
A> -
扫描时的注解类型
no setter
-
function
→ MirrorFunctionInstance<
T> -
函数对象的获取器
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
invoker
→ MirrorFunctionInvoker<
T, R> -
函数的代理执行器
final
- key → String
-
获取key信息 优先从注解中获取 当注解为空时返回扫描时的name
no setter
- name → String
-
扫描时的函数名
final
-
params
→ List<
MirrorParam< MAnnotation, dynamic> > -
函数所需要的参数信息
final
-
returnType
→ TypeToken<
R> -
函数的返回类型
no setter
- returnTypeIsNonNullable → bool
-
返回类型是否为非空类型
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getFunction(
T bean) → Function - 获取具体函数
-
invoke(
T bean, [Map< String, dynamic> params = const {}]) → R? - 执行函数
-
invoke2(
T bean, [List positional = const [], Map< String, dynamic> named = const {}]) → R? - 执行函数
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited