Uses of Class
org.exolab.javasource.JAnnotation
Packages that use JAnnotation
Package
Description
This package contains classes that represent Java Source objects for Castor XML
code generator.
-
Uses of JAnnotation in org.exolab.castor.builder.printing
Methods in org.exolab.castor.builder.printing with parameters of type JAnnotationModifier and TypeMethodDescriptionTemplateHelper.printAnnotation
(JAnnotation annotation, String shift) Converts the givenJAnnotation
to a string representation. -
Uses of JAnnotation in org.exolab.javasource
Methods in org.exolab.javasource that return JAnnotationModifier and TypeMethodDescriptionJAnnotatedElement.getAnnotation
(JAnnotationType annotationType) Retrieves a JAnnotation for the given JAnnotationType, returns null if no annotation has been set.final JAnnotation
JAnnotatedElementHelper.getAnnotation
(JAnnotationType annotationType) Retrieves a JAnnotation for the given JAnnotationType, returns null if no annotation has been set.JMethod.getAnnotation
(JAnnotationType annotationType) Retrieves a JAnnotation for the given JAnnotationType, returns null if no annotation has been set.final JAnnotation
JStructure.getAnnotation
(JAnnotationType annotationType) Retrieves a JAnnotation for the given JAnnotationType, returns null if no annotation has been set.JAnnotatedElement.getAnnotations()
Returns a list of JAnnotation's already set on this source element.final JAnnotation[]
JAnnotatedElementHelper.getAnnotations()
Returns a list of JAnnotation's already set on this source element.JMethod.getAnnotations()
Returns a list of JAnnotation's already set on this source element.final JAnnotation[]
JStructure.getAnnotations()
Returns a list of JAnnotation's already set on this source element.JAnnotation.getElementValueAnnotation
(String elementName) For the provided element name, returns the annotation element value when it is a JAnnotation.JAnnotation.getElementValueAnnotationList
(String elementName) For the provided element name, returns the annotation element value when it is an array of JAnnotation.JAnnotation.getValueAnnotation()
Returns the annotation element value when it is an annotation.JAnnotatedElement.removeAnnotation
(JAnnotationType annotationType) Removes the JAnnotation from this source element for the given JAnnotationType.final JAnnotation
JAnnotatedElementHelper.removeAnnotation
(JAnnotationType annotationType) Removes the JAnnotation from this source element for the given JAnnotationType.JMethod.removeAnnotation
(JAnnotationType annotationType) Removes the JAnnotation from this source element for the given JAnnotationType.final JAnnotation
JStructure.removeAnnotation
(JAnnotationType annotationType) Removes the JAnnotation from this source element for the given JAnnotationType.Methods in org.exolab.javasource with parameters of type JAnnotationModifier and TypeMethodDescriptionvoid
JAnnotatedElement.addAnnotation
(JAnnotation annotation) Adds a JAnnotation to this source element.final void
JAnnotatedElementHelper.addAnnotation
(JAnnotation annotation) Adds a JAnnotation to this source element.void
JMethod.addAnnotation
(JAnnotation annotation) Adds a JAnnotation to this source element.final void
JStructure.addAnnotation
(JAnnotation annotation) Adds a JAnnotation to this source element.protected final void
JStructure.addImport
(JAnnotation annotation) Adds appropriate import for this JAnnotation.protected final void
JStructure.addImport
(JAnnotation[] annotations) Adds appropriate imports for each JAnnotation in the given Array.void
JAnnotation.setElementValue
(String elementName, JAnnotation annotationValue) Adds an annotation element name=annotation pair.void
JAnnotation.setElementValue
(String elementName, JAnnotation[] annotationValues) Adds an annotation element name=array of annotations.void
JAnnotation.setValue
(JAnnotation annotationValue) Sets the "value" annotation element value as an annotation.void
JAnnotation.setValue
(JAnnotation[] annotationValues) Sets the "value" annotation element value as a list of annotation values.