org.exolab.javasource
public class JAnnotationType extends JStructure
Constructor Summary | |
---|---|
JAnnotationType(String name)
Creates a JAnnotationType of the given name |
Method Summary | |
---|---|
void | addElement(JAnnotationTypeElement jElement)
Adds the given JAnnotationTypeElement to this JAnnotationType
|
void | addField(JField jField)
Not implemented. |
void | addMember(JMember jMember)
Adds the given JMember to this JAnnotationType
|
JAnnotationTypeElement | getElement(String name)
Returns the member with the given name, or null if no member
was found with the given name |
JAnnotationTypeElement[] | getElements()
Returns an array of all the JAnnotationTypeElements of this JClass |
JField | getField(String name)
Not implemnted. |
JField[] | getFields()
Not implemented |
static void | main(String[] args)
Test |
void | print(JSourceWriter jsw)
Prints the source code for this JAnnotationType to the given JSourceWriter |
Parameters: name
Throws: IllegalArgumentException
Parameters: jElement, the element to add
Throws: IllegalArgumentException when the given JAnnotationTypeElement has the same name of an existing JAnnotationTypeElement.
Parameters: jField
Parameters: jMember, the JMember to add
Throws: IllegalArgumentException when the given JMember has the same name of an existing JAnnotationTypeElement or if the JMember is of an unrecognized class.
Parameters: name the name of the member to return
Returns: the member with the given name, or null if no member was found with the given name
Returns: an array of all the JAnnotationTypeElements of this JClass
Parameters: name
Returns: JField
Returns: JField[]
Parameters: args
Parameters: jsw the JSourceWriter to print to. [May not be null]