JAnnotatedElementAbstractJField, JConstructor, JEnumConstant, JMethodSignature, JParameterpublic class JAnnotatedElementHelper extends java.lang.Object implements JAnnotatedElement
| Constructor | Description | 
|---|---|
JAnnotatedElementHelper() | 
 Creates a JAnnodatedElementHelper. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
void | 
addAnnotation(JAnnotation annotation) | 
 Adds a JAnnotation to this source element. 
 | 
JAnnotation | 
getAnnotation(JAnnotationType annotationType) | 
 Retrieves a JAnnotation for the given JAnnotationType, returns null if no
 annotation has been set. 
 | 
JAnnotation[] | 
getAnnotations() | 
 Returns a list of JAnnotation's already set on this source element. 
 | 
boolean | 
hasAnnotations() | 
 Returns true if this source element has any annotations. 
 | 
boolean | 
isAnnotationPresent(JAnnotationType annotationType) | 
 Returns true if a JAnnotation exists for the given JAnnotationType. 
 | 
boolean | 
printAnnotations(JSourceWriter jsw) | 
 Outputs the list of annotations maintained by this object. 
 | 
JAnnotation | 
removeAnnotation(JAnnotationType annotationType) | 
 Removes the JAnnotation from this source element for the given
 JAnnotationType. 
 | 
public JAnnotatedElementHelper()
public final JAnnotation getAnnotation(JAnnotationType annotationType)
getAnnotation in interface JAnnotatedElementannotationType - Annotation type to retrieve.public final JAnnotation[] getAnnotations()
getAnnotations in interface JAnnotatedElementpublic final boolean isAnnotationPresent(JAnnotationType annotationType)
isAnnotationPresent in interface JAnnotatedElementannotationType - Annotation type to check for presence or absense.public final void addAnnotation(JAnnotation annotation)
addAnnotation in interface JAnnotatedElementannotation - A JAnnotation to add to this source element.public final JAnnotation removeAnnotation(JAnnotationType annotationType)
removeAnnotation in interface JAnnotatedElementannotationType - Annotation type to remove.public final boolean hasAnnotations()
hasAnnotations in interface JAnnotatedElementpublic final boolean printAnnotations(JSourceWriter jsw)
jsw - the JSourceWriter to print the annotations toIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com