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-only
Returns an immutable map of the declarations actually given in the library.
bool isPrivate
read-only, inherited
Returns true if this declaration is considered private according to the Dart language specification. Always returns false if this declaration is a library. Otherwise return false.
bool isTopLevel
read-only, inherited
Is this declaration top-level?
List<LibraryDependencyMirror> libraryDependencies
read-only
Returns a list of the imports and exports in this library;
SourceLocation location
read-only, inherited
The source location of this Dart language entity, or null if the entity is synthetic.
List<InstanceMirror> metadata
read-only, inherited
A list of the metadata associated with this declaration.
DeclarationMirror owner
read-only, inherited
A mirror on the owner of this Dart language entity. This is the declaration immediately surrounding the reflectee.
Symbol qualifiedName
read-only, inherited
The fully-qualified name for this Dart language entity.
Symbol simpleName
read-only, inherited
The simple name for this Dart language entity.
Uri uri
read-only
The absolute uri of the library.

Constructors

LibraryMirror()

Operators

operator ==(other) → bool
Returns true if this mirror is equal to other. Otherwise returns false.

Methods

delegate(Invocation invocation) → dynamic
inherited
Perform invocation on reflectee. Equivalent to
getField(Symbol fieldName) → InstanceMirror
inherited
Invokes 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
inherited
Invokes the named function and returns a mirror on the result.
setField(Symbol fieldName, Object value) → InstanceMirror
inherited
Invokes 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.