A LibraryMirror reflects a Dart language library, providing access to the variables, functions, and classes of the library.
- Implements
Properties
- Map<Symbol,DeclarationMirror> declarations
-
read-onlyReturns an immutable map of the declarations actually given in the library.
- bool isPrivate
-
read-only, inheritedReturns
true
if this declaration is considered private according to the Dart language specification. Always returnsfalse
if this declaration is a library. Otherwise returnfalse
. - bool isTopLevel
-
read-only, inheritedIs this declaration top-level?
- List<LibraryDependencyMirror> libraryDependencies
-
read-onlyReturns a list of the imports and exports in this library;
- SourceLocation location
-
read-only, inheritedThe source location of this Dart language entity, or
null
if the entity is synthetic. - List<InstanceMirror> metadata
-
read-only, inheritedA list of the metadata associated with this declaration.
- DeclarationMirror owner
-
read-only, inheritedA mirror on the owner of this Dart language entity. This is the declaration immediately surrounding the reflectee.
- Symbol qualifiedName
-
read-only, inheritedThe fully-qualified name for this Dart language entity.
- Symbol simpleName
-
read-only, inheritedThe simple name for this Dart language entity.
- Uri uri
-
read-onlyThe absolute uri of the library.
Constructors
Operators
-
operator ==(
other) → bool -
Returns
true
if this mirror is equal toother
. Otherwise returnsfalse
.
Methods
-
delegate(
Invocation invocation) → dynamic -
inheritedPerform
invocation
onreflectee
. Equivalent to -
getField(
Symbol fieldName) → InstanceMirror -
inheritedInvokes a getter and returns a mirror on the result. The getter can be the implicit getter for a field or a user-defined getter method.
-
invoke(
Symbol memberName, List positionalArguments, [Map<Symbol> namedArguments]) → InstanceMirror -
inheritedInvokes the named function and returns a mirror on the result.
-
setField(
Symbol fieldName, Object value) → InstanceMirror -
inheritedInvokes a setter and returns a mirror on the result. The setter may be either the implicit setter for a non-final field or a user-defined setter method.