ClassMirror class

A ClassMirror reflects a Dart language class.

A ClassMirror reflects a Dart language class.

Implements
Implemented by

Constructors

ClassMirror()

Instance Properties

superclass ClassMirror
read-only
superinterfaces List<ClassMirror>
read-only
isAbstract bool
read-only
isEnum bool
read-only
declarations Map<Symbol,DeclarationMirror>
read-only
instanceMembers Map<Symbol,MethodMirror>
read-only
staticMembers Map<Symbol,MethodMirror>
read-only
mixin ClassMirror
read-only
reflectedType Type Inherited
read-only
originalDeclaration TypeMirror Inherited
read-only
typeVariables List<TypeVariableMirror> Inherited
read-only
simpleName Symbol Inherited
read-only
metadata List<InstanceMirror> Inherited
read-only
isTopLevel bool Inherited
read-only
owner DeclarationMirror Inherited
read-only
location SourceLocation Inherited
read-only
isPrivate bool Inherited
read-only
hasReflectedType bool Inherited
read-only
typeArguments List<TypeMirror> Inherited
read-only
isOriginalDeclaration bool Inherited
read-only
qualifiedName Symbol Inherited
read-only

Instance Methods

newInstance(Symbol constructorName, List positionalArguments, [Map<Symbol> namedArguments]) → InstanceMirror
Invokes the named constructor and returns a mirror on the result.
isSubclassOf(ClassMirror other) → bool
Returns whether the class denoted by the receiver is a subclass of the class denoted by the argument.
getField(Symbol fieldName) → InstanceMirror Inherited
Invokes a getter and returns a mirror on the result. The getter can be the implicit getter for a field or a user-defined getter method.
isAssignableTo(TypeMirror other) → bool Inherited
Checks the assignability relationship, denoted by <=> in the language specification. This is the type relationship tested on assignment in checked mode.
setField(Symbol fieldName, Object value) → InstanceMirror Inherited
Invokes a setter and returns a mirror on the result. The setter may be either the implicit setter for a non-final field or a user-defined setter method.
invoke(Symbol memberName, List positionalArguments, [Map<Symbol> namedArguments]) → InstanceMirror Inherited
Invokes the named function and returns a mirror on the result.
isSubtypeOf(TypeMirror other) → bool Inherited
Checks the subtype relationship, denoted by <: in the language specification. This is the type relationship used in is test checks.

Operators

operator ==(other) → bool
Returns true if this mirror is equal to other. Otherwise returns false.