Package | Description |
---|---|
org.exolab.castor.builder.printing | |
org.exolab.javasource |
This package contains classes that represent Java Source objects for Castor XML
code generator.
|
Modifier and Type | Method and Description |
---|---|
String |
TemplateHelper.printAnnotation(JAnnotation annotation,
String shift)
Converts the given
JAnnotation to a string representation. |
Modifier and Type | Method and Description |
---|---|
JAnnotation |
JAnnotatedElement.getAnnotation(JAnnotationType annotationType)
Retrieves a JAnnotation for the given JAnnotationType, returns null if no
annotation has been set.
|
JAnnotation |
JMethod.getAnnotation(JAnnotationType annotationType)
Retrieves a JAnnotation for the given JAnnotationType, returns null if no
annotation has been set.
|
JAnnotation |
JStructure.getAnnotation(JAnnotationType annotationType)
Retrieves a JAnnotation for the given JAnnotationType, returns null if no
annotation has been set.
|
JAnnotation |
JAnnotatedElementHelper.getAnnotation(JAnnotationType annotationType)
Retrieves a JAnnotation for the given JAnnotationType, returns null if no
annotation has been set.
|
JAnnotation[] |
JAnnotatedElement.getAnnotations()
Returns a list of JAnnotation's already set on this source element.
|
JAnnotation[] |
JMethod.getAnnotations()
Returns a list of JAnnotation's already set on this source element.
|
JAnnotation[] |
JStructure.getAnnotations()
Returns a list of JAnnotation's already set on this source element.
|
JAnnotation[] |
JAnnotatedElementHelper.getAnnotations()
Returns a list of JAnnotation's already set on this source element.
|
JAnnotation |
JAnnotation.getElementValueAnnotation(String elementName)
For the provided element name, returns the annotation element value when
it is a JAnnotation.
|
JAnnotation[] |
JAnnotation.getElementValueAnnotationList(String elementName)
For the provided element name, returns the annotation element value when
it is an array of JAnnotation.
|
JAnnotation |
JAnnotation.getValueAnnotation()
Returns the annotation element value when it is an annotation.
|
JAnnotation |
JAnnotatedElement.removeAnnotation(JAnnotationType annotationType)
Removes the JAnnotation from this source element for the given
JAnnotationType.
|
JAnnotation |
JMethod.removeAnnotation(JAnnotationType annotationType)
Removes the JAnnotation from this source element for the given
JAnnotationType.
|
JAnnotation |
JStructure.removeAnnotation(JAnnotationType annotationType)
Removes the JAnnotation from this source element for the given
JAnnotationType.
|
JAnnotation |
JAnnotatedElementHelper.removeAnnotation(JAnnotationType annotationType)
Removes the JAnnotation from this source element for the given
JAnnotationType.
|
Modifier and Type | Method and Description |
---|---|
void |
JAnnotatedElement.addAnnotation(JAnnotation annotation)
Adds a JAnnotation to this source element.
|
void |
JMethod.addAnnotation(JAnnotation annotation)
Adds a JAnnotation to this source element.
|
void |
JStructure.addAnnotation(JAnnotation annotation)
Adds a JAnnotation to this source element.
|
void |
JAnnotatedElementHelper.addAnnotation(JAnnotation annotation)
Adds a JAnnotation to this source element.
|
protected void |
JStructure.addImport(JAnnotation annotation)
Adds appropriate import for this JAnnotation.
|
protected 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.
|
Copyright © 2018. All rights reserved.