Oracle Coherence for C++ API
Release 3.7.1.0
E22845-01
#include <coherence/lang/AnnotatedElement.hpp>
Inherits Object.
Inherited by Class, and Method.
AnnotatedElement represents an annotated element.
Public Types |
|
| typedef spec::Handle | Handle |
| AnnotatedElement Handle definition. | |
| typedef spec::View | View |
| AnnotatedElement View definition. | |
| typedef spec::Holder | Holder |
| AnnotatedElement Holder definition. | |
Public Member Functions |
|
| virtual Annotation::View | getAnnotation (TypedHandle< const Class > vClassAnnotation) const |
| Returns this element's annotation for the specified type if such an annotation is present, else NULL. | |
| virtual ObjectArray::View | getAnnotations () const |
| Returns all annotations present on this element. | |
| virtual ObjectArray::View | getDeclaredAnnotations () const |
| Returns all annotations directly present on this element. | |
| virtual bool | isAnnotationPresent (TypedHandle< const Class > vClassAnnotation) const |
| Return true the specified annotation is present on this element. | |
| virtual AnnotatedElement::Handle |
addAnnotation (Annotation::View vAnnotation) |
| Add the specified Annotation to this element. | |
| virtual AnnotatedElement::View |
getSuperelement () const |
| Return the parent of this AnnotationElement or NULL if there is none. | |
Protected Member Functions |
|
| AnnotatedElement () | |
| Construct an AnnotatedElement. | |
Protected Attributes |
|
| MemberHandle< Object > | m_hMapAnnotations |
| The map of resolved annotations, key'd by annotation type Class. | |
| MemberHandle< Object > | m_hListAnnotationsDeclared |
| The list of declared annotations. | |
| virtual Annotation::View getAnnotation | ( | TypedHandle< const Class > | vClassAnnotation | ) | const [virtual] |
Returns this element's annotation for the specified type if such an annotation is present, else NULL.
| vClassAnnotation | the annotation type |
| virtual ObjectArray::View getAnnotations | ( | ) | const [virtual] |
Returns all annotations present on this element.
| virtual ObjectArray::View getDeclaredAnnotations | ( | ) | const [virtual] |
Returns all annotations directly present on this element.
| virtual bool isAnnotationPresent | ( | TypedHandle< const Class > | vClassAnnotation | ) | const [virtual] |
Return true the specified annotation is present on this element.
| virtual AnnotatedElement::Handle addAnnotation | ( | Annotation::View | vAnnotation | ) | [virtual] |
Add the specified Annotation to this element.
| vAnnotation | the annotation |
| virtual AnnotatedElement::View getSuperelement | ( | ) | const [virtual] |
Return the parent of this AnnotationElement or NULL if there is none.
The default implementation always returns NULL.
Reimplemented in Class.
The documentation for this class was generated from the following file: