org.exolab.javasource
public final class JAnnotationTypeElement extends Object implements JMember
Constructor Summary | |
---|---|
JAnnotationTypeElement(String name, JType type)
Constructs a JAnnotationTypeElement with a given name and type.
|
Method Summary | |
---|---|
JDocComment | getComment()
Returns the JavaDoc comment describing this member.
|
String | getDefaultString()
Returns the initialization string for this JAnnotationTypeElement.
|
JModifiers | getModifiers()
Returns the modifiers for this JAnnotationTypeElement.
|
String | getName()
Returns the name of this JAnnotationTypeElement.
|
JType | getType()
Returns the JType representing the type of this JAnnotationTypeElement.
|
static void | main(String[] args)
Test. |
void | print(JSourceWriter jsw)
Outputs the annotation type element to the provided JSourceWriter.
|
void | setComment(JDocComment comment)
Sets the JavaDoc comment describing this member.
|
void | setComment(String comment)
Sets the JavaDoc comment describing this member.
|
void | setDefaultString(String defaultString)
Sets the initialization string for this JAnnotationTypeElement. |
void | setName(String name)
Sets the name of this JAnnotationTypeElement.
|
Parameters: name name of this new JAnnotatedTypeElement type type of this new JAnnotatedTypeElement
Returns: the comment describing this member, or null if no comment has been set.
Returns: the initialization string for this JAnnotationTypeElement.
Returns: the modifiers for this JAnnotationTypeElement.
Returns: the name of this JAnnotationTypeElement.
Returns: the JType representing the type of this JAnnotationTypeElement.
Parameters: args command-line arguments
Parameters: jsw the JSourceWriter to print this element to
Parameters: comment the JDocComment for this member.
Parameters: comment the JDocComment for this member.
Parameters: defaultString the default string for this member
Parameters: name the name of this JAnnotationTypeElement.