|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.exolab.javasource.JAnnotationTypeElement
public final class JAnnotationTypeElement
Holds information about a given annotation type element.
| Constructor Summary | |
|---|---|
JAnnotationTypeElement(java.lang.String name,
JType type)
Constructs a JAnnotationTypeElement with a given name and type. |
|
| Method Summary | |
|---|---|
JDocComment |
getComment()
Returns the JavaDoc comment describing this member. |
java.lang.String |
getDefaultString()
Returns the initialization string for this JAnnotationTypeElement. |
JModifiers |
getModifiers()
Returns the modifiers for this JAnnotationTypeElement. |
java.lang.String |
getName()
Returns the name of this JAnnotationTypeElement. |
JType |
getType()
Returns the JType representing the type of this JAnnotationTypeElement. |
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(java.lang.String comment)
Sets the JavaDoc comment describing this member. |
void |
setDefaultString(java.lang.String defaultString)
Sets the initialization string for this JAnnotationTypeElement. |
void |
setName(java.lang.String name)
Sets the name of this JAnnotationTypeElement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JAnnotationTypeElement(java.lang.String name,
JType type)
name - Name of this new JAnnotatedTypeElement.type - Type of this new JAnnotatedTypeElement.| Method Detail |
|---|
public JModifiers getModifiers()
getModifiers in interface JMemberpublic void setName(java.lang.String name)
name - The name of this JAnnotationTypeElement.public java.lang.String getName()
getName in interface JMemberpublic JType getType()
public java.lang.String getDefaultString()
public void setDefaultString(java.lang.String defaultString)
defaultString - The default string for this member.public void setComment(JDocComment comment)
comment - The JDocComment for this member.public void setComment(java.lang.String comment)
comment - The JDocComment for this member.public JDocComment getComment()
public void print(JSourceWriter jsw)
jsw - the JSourceWriter to print this element to
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||