public final class JAnnotationTypeElement extends Object implements JMember
Constructor and Description |
---|
JAnnotationTypeElement(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.
|
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.
|
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.
|
public JModifiers getModifiers()
getModifiers
in interface JMember
public void setName(String name)
name
- The name of this JAnnotationTypeElement.public String getName()
public JType getType()
public String getDefaultString()
public void setDefaultString(String defaultString)
defaultString
- The default string for this member.public void setComment(JDocComment comment)
comment
- The JDocComment for this member.public void setComment(String comment)
comment
- The JDocComment for this member.public JDocComment getComment()
public void print(JSourceWriter jsw)
jsw
- the JSourceWriter to print this element toCopyright © 2021. All rights reserved.