MirrorSystem class
A MirrorSystem is the main interface used to reflect on a set of associated libraries.
At runtime each running isolate has a distinct MirrorSystem.
It is also possible to have a MirrorSystem which represents a set of libraries which are not running -- perhaps at compile-time. In this case, all available reflective functionality would be supported, but runtime functionality (such as invoking a function or inspecting the contents of a variable) would fail dynamically.
Constructors
Properties
- dynamicType → TypeMirror
-
A mirror on the
dynamic
type.read-only - isolate → IsolateMirror
-
A mirror on the isolate associated with this MirrorSystem. [...]
read-only
-
libraries
→ Map<
Uri, LibraryMirror> -
All libraries known to the mirror system, indexed by their URI. [...]
read-only
- voidType → TypeMirror
-
A mirror on the
void
type.read-only - hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
findLibrary(
Symbol libraryName ) → LibraryMirror -
Returns the unique library named
libraryName
if it exists. [...] -
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other ) → bool -
The equality operator. [...]
inherited