MirrorClass<T, A extends MReflectionEnable> class
扫描到的类信息
- Available Extensions
Constructors
-
MirrorClass(String key, A annotation, String name, List<
MirrorConstructor< constructors, List<T, MAnnotation> >MirrorField< fields, List<T, MAnnotation, dynamic> >MirrorFunction< functions)T, MAnnotation, dynamic> > -
const
Properties
- annotation → A
-
扫描时的注解信息
final
-
annotationType
→ TypeToken<
A> -
扫描时的注解类型
no setter
-
constructors
→ List<
MirrorConstructor< T, MAnnotation> > -
所有的扫描到的构造函数
final
-
fields
→ List<
MirrorField< T, MAnnotation, dynamic> > -
所有的扫描到的属性
final
-
functions
→ List<
MirrorFunction< T, MAnnotation, dynamic> > -
所有的扫描到的函数 不包含构造函数 和 get set
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
依据的key uri类型
final
- name → String
-
类名 不包含所在的lib路径
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
type
→ TypeToken<
T> -
类的具体type
no setter
Methods
-
getConstructor(
String? constructorName) → MirrorConstructor< T, MAnnotation> - 根据命名构造函数的key来查找可用的构造函数
-
getField(
String fieldName) → MirrorField< T, MAnnotation, dynamic> - 根据属性的key 来查找可用的属性
-
getFunction(
String functionName) → MirrorFunction< T, MAnnotation, dynamic> - 根据函数的key 来查找可用的函数
-
newInstance(
[String? constructorName, Map< String, dynamic> params = const {}]) → T - 根据map内的参数来生成一个类的实例
-
newInstance1(
{String? constructorName, Map< String, dynamic> params = const {}}) → T - 根据map内的参数来生成一个类的实例
-
newInstance2(
{String? constructorName, required List positional, Map< String, dynamic> params = const {}}) → T - 根据参数定位 和 命名参数 来生成实例
-
newInstance3(
{String? constructorName, Map< String, String> uriParams = const {}, dynamic objParam}) → T - 根据uri参数 和 不确定类型的参数 来生成实例
-
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