A ClassMirror reflects a Dart language class.
- Implements
- Implemented by
Constructors
Properties
- declarations → Map<Symbol, DeclarationMirror>
-
Returns an immutable map of the declarations actually given in the class declaration.
read-only - instanceMembers → Map<Symbol, MethodMirror>
-
Returns a map of the methods, getters and setters of an instance of the class.
read-only - isAbstract → bool
-
Is the reflectee abstract?
read-only - isEnum → bool
-
Is the reflectee an enum?
read-only - mixin → ClassMirror
-
The mixin of this class.
read-only - staticMembers → Map<Symbol, MethodMirror>
-
Returns a map of the static methods, getters and setters of the class.
read-only - superclass → ClassMirror
-
A mirror on the superclass on the reflectee.
read-only - superinterfaces → List<ClassMirror>
-
A list of mirrors on the superinterfaces of the reflectee.
read-only - hashCode → int
-
The hash code for this object.
read-only, inherited - hasReflectedType → bool
-
Returns true if this mirror reflects dynamic, a non-generic class or typedef, or an instantiated generic class or typedef in the current isolate. Otherwise, returns false.
read-only, inherited - isOriginalDeclaration → bool
-
Is this the original declaration of this type?
read-only, inherited - isPrivate → bool
-
Whether this declaration is library private.
read-only, inherited - isTopLevel → bool
-
Whether this declaration is top-level.
read-only, inherited - location → SourceLocation
-
The source location of this Dart language entity, or
null
if the entity is synthetic.read-only, inherited - metadata → List<InstanceMirror>
-
A list of the metadata associated with this declaration.
read-only, inherited - originalDeclaration → TypeMirror
-
A mirror on the original declaration of this type.
read-only, inherited - owner → DeclarationMirror
-
A mirror on the owner of this Dart language entity.
read-only, inherited - qualifiedName → Symbol
-
The fully-qualified name for this Dart language entity.
read-only, inherited - reflectedType → Type
-
If
hasReflectedType
returns true, returns the correspondingType
. Otherwise, anUnsupportedError
is thrown.read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - simpleName → Symbol
-
The simple name for this Dart language entity.
read-only, inherited - typeArguments → List<TypeMirror>
-
An immutable list with mirrors for all type arguments for this type.
read-only, inherited - typeVariables → List<TypeVariableMirror>
-
An immutable list with mirrors for all type variables for this type.
read-only, inherited
Operators
-
operator ==(
other) → bool -
Whether this mirror is equal to
other
.
Methods
-
isSubclassOf(
ClassMirror other) → bool -
Returns whether the class denoted by the receiver is a subclass of the class denoted by the argument.
-
newInstance(
Symbol constructorName, List positionalArguments, [ Map<Symbol, dynamic> namedArguments ]) → InstanceMirror -
Invokes the named constructor and returns a mirror on the result.
-
delegate(
Invocation invocation) → dynamic -
Performs
invocation
onreflectee
.inherited -
getField(
Symbol fieldName) → InstanceMirror -
Invokes a getter and returns a mirror on the result.
inherited -
invoke(
Symbol memberName, List positionalArguments, [ Map<Symbol, dynamic> namedArguments ]) → InstanceMirror -
Invokes the named function and returns a mirror on the result.
inherited -
isAssignableTo(
TypeMirror other) → bool -
Checks the assignability relationship, denoted by
<=>
in the language specification.inherited -
isSubtypeOf(
TypeMirror other) → bool -
Checks the subtype relationship, denoted by
<:
in the language specification.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
setField(
Symbol fieldName, Object value) → InstanceMirror -
Invokes a setter and returns a mirror on the result.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited