#include <coherence/io/pof/annotation/PortableProperty.hpp>
Inherits Object, and Annotation.
Whilst the PortableProperty::getIndex() and PortableProperty::getCodec() can be explicitly specified they can be determined by classes that use this annotation. Hence these attributes serve as hints to the underlying parser.
Public Types | |
typedef spec::Handle | Handle |
PortableProperty Handle definition. | |
typedef spec::View | View |
PortableProperty View definition. | |
typedef spec::Holder | Holder |
PortableProperty Holder definition. | |
Public Member Functions | |
virtual Class::View | annotationType () const |
Return the annotation type of this annotation. | |
virtual int32_t | getIndex () const |
The index of this property. | |
virtual Class::View | getCodec () const |
A codec to use to short-circuit determining the type via the method return type. | |
Static Public Member Functions | |
static Class::View | getStaticClass () |
A convenience static method to return a reference to the Class definition for this PortableProperty annotation class. |
virtual int32_t getIndex | ( | ) | const [virtual] |
virtual Class::View getCodec | ( | ) | const [virtual] |
A codec to use to short-circuit determining the type via the method return type.
This could be used to determine concrete implementations of interfaces, i.e. when the method return is a Map this type definition could instruct the code to utilize a LinkedHashMap.