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

A TypeMirror reflects a Dart language class, typedef, function type or type variable.

Implemented types

Implementers

Constructors

TypeMirror()

Properties

hashCodeint

The hash code for this object.

no setterinherited

hasReflectedTypebool

Returns true if this mirror reflects dynamic, a non-generic class or typedef, or an instantiated generic class or typedef in the current isolate. Otherwise, returns false.

no setter

isOriginalDeclarationbool

Is this the original declaration of this type?

no setter

isPrivatebool

Whether this declaration is library private.

no setterinherited

isTopLevelbool

Whether this declaration is top-level.

no setterinherited

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

originalDeclarationTypeMirror

A mirror on the original declaration of this type.

no setter

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

reflectedTypeType

If hasReflectedType returns true, returns the corresponding Type. Otherwise, an UnsupportedError is thrown.

no setter

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

simpleNameSymbol

The simple name for this Dart language entity.

no setterinherited

typeArgumentsList<TypeMirror>

An immutable list with mirrors for all type arguments for this type.

no setter

typeVariablesList<TypeVariableMirror>

An immutable list with mirrors for all type variables for this type.

no setter

Methods

isAssignableTo(TypeMirror other)→ bool

Checks the assignability relationship, denoted by <=> in the language specification.

isSubtypeOf(TypeMirror other)→ bool

Checks the subtype relationship, denoted by <: in the language specification.

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

toString()→ String

A string representation of this object.

inherited

Operators

operator ==(Object other)→ bool

The equality operator.

inherited