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

A FunctionTypeMirror represents the type of a function in the Dart language.

Implemented types

Constructors

FunctionTypeMirror()

Properties

callMethodMethodMirror

A mirror on the call method for the reflectee.

no setter

declarationsMap<Symbol, DeclarationMirror>

Returns an immutable map of the declarations actually given in the class declaration.

no setterinherited

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 setterinherited

instanceMembersMap<Symbol, MethodMirror>

Returns a map of the methods, getters and setters of an instance of the class.

no setterinherited

isAbstractbool

Is the reflectee abstract?

no setterinherited

isEnumbool

Is the reflectee an enum?

no setterinherited

isOriginalDeclarationbool

Is this the original declaration of this type?

no setterinherited

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

mixinClassMirror

The mixin of this class.

no setterinherited

originalDeclarationTypeMirror

A mirror on the original declaration of this type.

no setterinherited

ownerDeclarationMirror?

A mirror on the owner of this Dart language entity.

no setterinherited

parametersList<ParameterMirror>

Returns a list of the parameter types of the reflectee.

no setter

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 setterinherited

returnTypeTypeMirror

Returns the return type of the reflectee.

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

staticMembersMap<Symbol, MethodMirror>

Returns a map of the static methods, getters and setters of the class.

no setterinherited

superclassClassMirror?

A mirror on the superclass on the reflectee.

no setterinherited

superinterfacesList<ClassMirror>

A list of mirrors on the superinterfaces of the reflectee.

no setterinherited

typeArgumentsList<TypeMirror>

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

no setterinherited

typeVariablesList<TypeVariableMirror>

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

no setterinherited

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

isAssignableTo(TypeMirror other)→ bool

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

inherited

isSubclassOf(ClassMirror other)→ bool

Returns whether the class denoted by the receiver is a subclass of the class denoted by the argument.

inherited

isSubtypeOf(TypeMirror other)→ bool

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

inherited

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

Invokes the named constructor 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

The equality operator.

inherited