LibraryMirror class - dart:mirrors library (original) (raw)

A LibraryMirror reflects a Dart language library, providing access to the variables, functions, and classes of the library.

Implemented types

Constructors

LibraryMirror()

Properties

declarationsMap<Symbol, DeclarationMirror>

Returns an immutable map of the declarations actually given in the library.

no setter

hashCodeint

The hash code for this object.

no setterinherited

isPrivatebool

Whether this declaration is library private.

no setterinherited

isTopLevelbool

Whether this declaration is top-level.

no setterinherited

libraryDependenciesList<LibraryDependencyMirror>

Returns a list of the imports and exports in this library;

no setter

locationSourceLocation?

The source location of this Dart language entity, or null if the entity is synthetic.

no setterinherited

metadataList<InstanceMirror>

A list of the metadata associated with this declaration.

no setterinherited

ownerDeclarationMirror?

A mirror on the owner of this Dart language entity.

no setterinherited

qualifiedNameSymbol

The fully-qualified name for this Dart language entity.

no setterinherited

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

simpleNameSymbol

The simple name for this Dart language entity.

no setterinherited

uriUri

The absolute uri of the library.

no setter

Methods

delegate(Invocation invocation)→ dynamic

Performs invocation on the reflectee of this ObjectMirror.

inherited

getField(Symbol fieldName)→ InstanceMirror

Invokes a getter and returns a mirror on the result.

inherited

invoke(Symbol memberName, List positionalArguments, [Map<Symbol, dynamic> namedArguments = const <Symbol, dynamic>{}])→ InstanceMirror

Invokes the named function and returns a mirror on the result.

inherited

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

setField(Symbol fieldName, dynamic value)→ InstanceMirror

Invokes a setter and returns a mirror on the result.

inherited

toString()→ String

A string representation of this object.

inherited

Operators

operator ==(Object other)→ bool

Whether this mirror is equal to other.

override