RuntimeInspector

An inspector that accepts a component with erased type for inspecting.

An inspector that accepts a component with erased type for inspecting. It will attempt to downcast the component to rightful type, if Type is rooted into Object or it will attempt to downcast to object implementing Placeholder!Type interface that effectively is storage for inspected component.

Constructors

this
this(Inspector!(Type, KeyType) inspector)

Constructor for RuntimeInspector

Members

Functions

guess
TypeInfo guess(Object serialized)

Guess the D type of serialized based on information available in it.

has
bool has(Object wrapped, KeyType property)

Check if component has a field or a property.

properties
KeyType[] properties(Object wrapped)

Return a list of properties that component holds.

typeOf
TypeInfo typeOf(Object wrapped, KeyType property)

Identify the type of child field of component.

typeOf
TypeInfo typeOf(Object component)

Identify the type of component itself.

Properties

inspector
Inspector!(Type, KeyType) inspector [@property setter]

Set inspector

inspector
inout(Inspector!(Type, KeyType)) inspector [@property getter]

Get inspector

Meta