org.exolab.javasource

Class JAnnotatedElementHelper

public class JAnnotatedElementHelper extends Object implements JAnnotatedElement

Implements JAnnotatedElement interface on behalf of other classes in this package that implement this interface.

Author: Andrew Fawcett

Constructor Summary
JAnnotatedElementHelper()
Creates a JAnnodatedElementHelper.
Method Summary
voidaddAnnotation(JAnnotation annotation)
JAnnotationgetAnnotation(JAnnotationType annotationType)
JAnnotation[]getAnnotations()
booleanhasAnnotations()
booleanisAnnotationPresent(JAnnotationType annotationType)
static voidmain(String[] args)
Test.
booleanprintAnnotations(JSourceWriter jsw)
Outputs the list of annotations maintained by this object.
JAnnotationremoveAnnotation(JAnnotationType annotationType)

Constructor Detail

JAnnotatedElementHelper

public JAnnotatedElementHelper()
Creates a JAnnodatedElementHelper.

Method Detail

addAnnotation

public final void addAnnotation(JAnnotation annotation)

See Also: #addAnnotation(org.exolab.javasource.JAnnotation) {@inheritDoc }

getAnnotation

public final JAnnotation getAnnotation(JAnnotationType annotationType)

See Also: #getAnnotation(org.exolab.javasource.JAnnotationType) {@inheritDoc }

getAnnotations

public final JAnnotation[] getAnnotations()

See Also: {@inheritDoc }

hasAnnotations

public final boolean hasAnnotations()

See Also: {@inheritDoc }

isAnnotationPresent

public final boolean isAnnotationPresent(JAnnotationType annotationType)

See Also: #isAnnotationPresent(org.exolab.javasource.JAnnotationType) {@inheritDoc }

main

public static void main(String[] args)
Test.

Parameters: args Command-line arguments

printAnnotations

public final boolean printAnnotations(JSourceWriter jsw)
Outputs the list of annotations maintained by this object.

Parameters: jsw the JSourceWriter to print the annotations to

Returns: true if at least one annotation was printed, false otherwise.

removeAnnotation

public final JAnnotation removeAnnotation(JAnnotationType annotationType)

See Also: #removeAnnotation(org.exolab.javasource.JAnnotationType) {@inheritDoc }

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com