ClassInfo class

Provides unified access to class information based on ClassMirror

Constructors

ClassInfo(ClassMirror classMirror)
ClassInfo.fromCache(ClassMirror classMirror, Map<Type, ClassInfo>? cache)
factory

Properties

cachedClasses Map<Type, ClassInfo>?
getter/setter pair
classMirror ↔ ClassMirror
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
inheritedPublicFieldNames List<String>
no setter
publicFieldNames List<String>
no setter
reflectedType Type?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
superClass → ClassMirror?
no setter

Methods

enumerateJsonGetters(Function visitor, [dynamic scheme]) → void
getAllDeclarationMeta(DeclarationMirror dm, [dynamic scheme]) List<JsonProperty>
getDeclarationMeta(DeclarationMirror dm, [dynamic scheme]) JsonProperty?
getDeclarationMirror(String name) → DeclarationMirror?
getJsonAnyGetter([dynamic scheme]) → MethodMirror?
getJsonAnySetter([dynamic scheme]) → MethodMirror?
getJsonConstructor([dynamic scheme]) → MethodMirror?
getJsonSetter(String? name, [dynamic scheme]) → MethodMirror?
getLastDeclarationMeta(DeclarationMirror dm, [dynamic scheme]) JsonProperty?
getMeta([dynamic scheme]) Json?
getMetaWhere(Function whereFunction, [dynamic scheme]) Json?
hasConstructorMeta(DeclarationMirror dm, [dynamic scheme]) JsonConstructor?
isGetterOnly(String name) bool
lookupClassMetaData(ClassMirror? classMirror) List<Object>
lookupDeclarationMetaData(DeclarationMirror? declarationMirror) List<Object>
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

Static Methods

getAllSubTypes(Map<Type, ClassInfo> classes, ClassInfo classInfo) List<ClassInfo>
Returns all subtypes of classInfo, this is transitive