hasReflectedType property

bool get hasReflectedType

Returns true if this mirror reflects dynamic, a non-generic class or typedef, or an instantiated generic class or typedef with support in the execution mode. Otherwise, returns false.

The notion of support in the execution mode reflects temporary restrictions arising from the lack of runtime support for certain operations. In particular, transformed code cannot produce the reflected type for an instantiated generic class when one or more type arguments are or contain type variables from an enclosing class. For instance, List<E> could be used as the type annotation on a variable in the class List itself, and a variable mirror for that method would then deliver a type mirror for the annotation where hasReflectedType is false, because of the lack of primitives to access the actual type argument of that list.

Required capabilities: hasReflectedType does not require any capabilities.

Implementation

bool get hasReflectedType;