org.exolab.javasource
public 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 comment describing this member. |
| String | getDefaultString()
Gets 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 represting the type of this JAnnotationTypeElement |
| static void | main(String[] args)
Test |
| void | print(JSourceWriter jsw)
Outputs the annotation type element |
| void | setComment(JDocComment comment)
Sets the comment describing this member. |
| void | setComment(String comment)
Sets the comment describing this member. |
| void | setDefaultString(String defaultString)
Sets the initialization string for this JAnnotationTypeElement;
Allows some flexibility in declaring default values. |
| void | setName(String name)
Sets the name of this JAnnotationTypeElement |
Parameters: name type
Returns: the comment describing this member, or null if no comment has been set.
Returns: Gets the initialization string for this JAnnotationTypeElement
Returns: the modifiers for this JAnnotationTypeElement
Returns: the name of this JAnnotationTypeElement
Returns: the JClass represting the type of this JAnnotationTypeElement
Parameters: args
Parameters: jsw
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
Throws: IllegalArgumentException when the name is not a valid Java member name