public final class JAnnotationTypeElement extends java.lang.Object implements JMember
Constructor and Description |
---|
JAnnotationTypeElement(java.lang.String name,
JType type)
Constructs a JAnnotationTypeElement with a given name and type.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public JAnnotationTypeElement(java.lang.String name, JType type)
name
- Name of this new JAnnotatedTypeElement.type
- Type of this new JAnnotatedTypeElement.public JModifiers getModifiers()
getModifiers
in interface JMember
public void setName(java.lang.String name)
name
- The name of this JAnnotationTypeElement.public java.lang.String getName()
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 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 toIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com