ClosureMirror abstract class
A ClosureMirror reflects a closure.
A ClosureMirror provides the ability to execute its reflectee and introspect its function.
- Implements
Constructors
Properties
- function → MethodMirror read-only
-
A mirror on the function associated with this closure.
- hashCode → int read-only, inherited
-
The hash code for this object.
- hasReflectee → bool read-only, inherited
-
Whether
reflectee
will return the instance reflected by this mirror. - reflectee → dynamic read-only, inherited
-
If the
InstanceMirror
reflects an instance it is meaningful to have a local reference to, we provide access to the actual instance here. - runtimeType → Type read-only, inherited
-
A representation of the runtime type of the object.
- type → ClassMirror read-only, inherited
-
A mirror on the type of the reflectee.
Operators
- operator ==(
other) → bool inherited -
The equality operator.
Methods
- apply(
List positionalArguments, [ Map<Symbol, dynamic> namedArguments ]) → InstanceMirror -
Executes the closure and returns a mirror on the result.
- delegate(
Invocation invocation) → dynamic inherited -
Performs
invocation
onreflectee
. - getField(
Symbol fieldName) → InstanceMirror inherited -
Invokes a getter and returns a mirror on the result.
- invoke(
Symbol memberName, List positionalArguments, [ Map<Symbol, dynamic> namedArguments ]) → InstanceMirror inherited -
Invokes the named function and returns a mirror on the result.
- noSuchMethod(
Invocation invocation) → dynamic inherited -
Invoked when a non-existent method or property is accessed.
- setField(
Symbol fieldName, Object value) → InstanceMirror inherited -
Invokes a setter and returns a mirror on the result.
- toString(
) → String inherited -
Returns a string representation of this object.
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-mirrors/ClosureMirror-class.html