|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.javasource.JAnnotationTypeElement
public class JAnnotationTypeElement
A class that 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 comment describing this member. |
java.lang.String |
getDefaultString()
Gets 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 represting the type of this JAnnotationTypeElement |
static void |
main(java.lang.String[] args)
Test |
void |
print(JSourceWriter jsw)
Outputs the annotation type element |
void |
setComment(JDocComment comment)
Sets the comment describing this member. |
void |
setComment(java.lang.String comment)
Sets the comment describing this member. |
void |
setDefaultString(java.lang.String defaultString)
Sets the initialization string for this JAnnotationTypeElement; Allows some flexibility in declaring default values. |
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
- type
- Method Detail |
---|
public JModifiers getModifiers()
getModifiers
in interface JMember
public void setName(java.lang.String name) throws java.lang.IllegalArgumentException
name
- the name of this JAnnotationTypeElement
java.lang.IllegalArgumentException
- when the
name is not a valid Java member namepublic java.lang.String getName()
getName
in interface JMember
public 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 memberpublic void setComment(java.lang.String comment)
comment
- the JDocComment for this memberpublic JDocComment getComment()
public void print(JSourceWriter jsw)
jsw
- public static void main(java.lang.String[] args)
args
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |