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.
Static Methods
-
getName(
Symbol symbol) → String -
Returns the name of
symbol
.… -
getSymbol(
String name, [LibraryMirror library]) → Symbol -
Returns a symbol for
name
. Iflibrary
is not a LibraryMirror or ifname
is a private identifier andlibrary
isnull
, throws an ArgumentError. Ifname
is a private identifier, the symbol returned is with respect tolibrary
.…
Properties
- dynamicType → TypeMirror
-
A mirror on the
dynamic
type.read-only - hashCode → int
-
Get a hash code for this object.…
read-only, inherited - isolate → IsolateMirror
-
A mirror on the isolate associated with this
MirrorSystem
. This may be null if this mirror system is not running.read-only - libraries → Map<Uri, LibraryMirror>
-
Returns an immutable map from URIs to mirrors for all libraries known to this mirror system. For a runtime mirror system, only libraries which are currently loaded are included, and repeated calls of this method may return different maps as libraries are loaded.
read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - voidType → TypeMirror
-
A mirror on the
void
type.read-only
Constructors
Operators
-
operator ==(
other) → bool -
The equality operator.…
inherited
Methods
-
findLibrary(
Symbol libraryName) → LibraryMirror -
Returns the unique library named
libraryName
if it exists.… -
noSuchMethod(
Invocation invocation) → dynamic -
noSuchMethod is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.…
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited