NoOpConvertor

A convertor that simply doesn't do any conversion and returns existing object

Members

Functions

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

Convert from component to component.

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.

destruct
void destruct(Object converted, RCIAllocator allocator)

Does not destruct anything since it is not allocating anything.

Properties

from
TypeInfo from [@property getter]

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

to
TypeInfo to [@property getter]

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

Inherited Members

From Convertor

from
TypeInfo from [@property getter]

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

to
TypeInfo to [@property getter]

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

convertsFrom
bool convertsFrom(TypeInfo from)

Check whether convertor is able to convert from.

convertsFrom
bool convertsFrom(Object from)

Check whether convertor is able to convert from.

convertsTo
bool convertsTo(TypeInfo to)

Check whether convertor is able to convert to.

convertsTo
bool convertsTo(Object to)

Check whether convertor is able to convert to.

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

Convert from component to component.

destruct
void destruct(Object converted, RCIAllocator allocator)

Destroy component created using this convertor.

Meta