W3cubDocs

/Dart 2

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

MirrorSystem()

Properties

dynamicTypeTypeMirror
read-only
A mirror on the dynamic type.
isolateIsolateMirror
read-only
A mirror on the isolate associated with this MirrorSystem. [...]
librariesMap<Uri, LibraryMirror>
read-only
All libraries known to the mirror system, indexed by their URI. [...]
voidTypeTypeMirror
read-only
A mirror on the void type.
hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

findLibrary(Symbol libraryName) → LibraryMirror
Returns the unique library named libraryName if it exists. [...]
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

Static Methods

getName(Symbol symbol) → String
Returns the name of symbol. [...]
getSymbol(String name, [ LibraryMirror library ]) → Symbol
Returns a symbol for name. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-mirrors/MirrorSystem-class.html