#include <coherence/lang/AnnotatedElement.hpp>
Inherits Object.
Inherited by Class, and Method.
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 | |
FinalHandle< Object > | f_hMapAnnotations |
The map of resolved annotations, key'd by annotation type Class. | |
FinalHandle< Object > | f_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] |
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.