ChainingConvertor

A convertor tries to build a chain of convertors from source to destination.

Constructors

this
this(PricingStrategy appraiser, Convertor[] convertors)

Default constructor for AggregateConvertor

Members

Functions

convert
Object convert(Object from, TypeInfo to, RCIAllocator allocator)

Convert from component to component.

converts
bool converts(TypeInfo from, TypeInfo to)
bool converts(TypeInfo from, Object to)
bool converts(Object from, TypeInfo to)
bool converts(Object from, Object to)

Check whether convertor is able to convert from type to type.

opEquals
bool opEquals(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(ChainingConvertor convertor)
Undocumented in source. Be warned that the author may not have intended to support it.
range
auto range(TypeInfo from, TypeInfo to, PricingStrategy appraiser)
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin ToStringMixin!()
Undocumented in source.
__anonymous
mixin OpCmpMixin!()
Undocumented in source.

Inherited Members

From CombinedConvertorImpl

convertors
typeof(this) convertors(Convertor[] convertors)

Set convertors

convertors
inout(Convertor[]) convertors()

Get convertors

add
typeof(this) add(Convertor convertor)

Add a convertor to existing list

remove
typeof(this) remove(Convertor convertor)

Remove a convertor from existing list

from
const(TypeInfo)[] from [@property getter]

Get the type info of component that convertor can convert from.

to
const(TypeInfo)[] to [@property getter]

Get the type info of component that convertor is able to convert to.

convertsFrom
bool convertsFrom(TypeInfo from)
bool convertsFrom(Object from)

Check whether convertor is able to convert from.

convertsTo
bool convertsTo(TypeInfo to)
bool convertsTo(Object to)

Check whether convertor is able to convert to.

converts
bool converts(TypeInfo from, TypeInfo to)
bool converts(TypeInfo from, Object to)
bool converts(Object from, TypeInfo to)
bool converts(Object from, Object to)

Check whether convertor is able to convert from type to type.

destroys
bool destroys(TypeInfo from, TypeInfo to)
bool destroys(Object from, TypeInfo to)
bool destroys(TypeInfo from, Object to)
bool destroys(Object from, Object to)

Check whether this convertor is able to destroy to component.

convert
Object convert(Object from, TypeInfo to, RCIAllocator allocator)

Convert from component to component.

destruct
void destruct(TypeInfo from, Object converted, RCIAllocator allocator)

Destroy component created using this convertor.

__anonymous
mixin EqualToHashToStringOpCmpMixin!()
Undocumented in source.

Meta