A LibraryMirror reflects a Dart language library, providing
access to the variables, functions, and classes of the
library.
Properties
-
Uri
uri
-
read-only
The absolute uri of the library.
-
Map<Symbol,DeclarationMirror>
declarations
-
read-only
Returns an immutable map of the declarations actually given in the library.
-
List<LibraryDependencyMirror>
libraryDependencies
-
read-only
Returns a list of the imports and exports in this library;
-
Symbol
simpleName
-
read-only
, inherited
The simple name for this Dart language entity.
-
List<InstanceMirror>
metadata
-
read-only
, inherited
A list of the metadata associated with this declaration.
-
bool
isTopLevel
-
read-only
, inherited
Is this declaration top-level?
-
DeclarationMirror
owner
-
read-only
, inherited
A mirror on the owner of this Dart language entity. This is the declaration
immediately surrounding the reflectee.
-
SourceLocation
location
-
read-only
, inherited
The source location of this Dart language entity, or null if the
entity is synthetic.
-
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.
-
Symbol
qualifiedName
-
read-only
, inherited
The fully-qualified name for this Dart language entity.
Operators
-
operator ==(other)
→
bool
-
Returns true if this mirror is equal to other.
Otherwise returns false.
Methods
-
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.
-
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.
-
invoke(Symbol memberName, List positionalArguments, [Map<Symbol> namedArguments])
→
InstanceMirror
-
inherited
Invokes the named function and returns a mirror on the result.