org.exolab.javasource
Class JAnnotationTypeElement
java.lang.Objectorg.exolab.javasource.JAnnotationTypeElement
- JMember
public final class JAnnotationTypeElement
extends java.lang.Object
Holds information about a given annotation type element.
$Revision: 6669 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
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(String comment)- Sets the JavaDoc comment describing this member.
|
void | setComment(JDocComment 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.
|
JAnnotationTypeElement
public JAnnotationTypeElement(String name,
JType type) Constructs a JAnnotationTypeElement with a given name and type.
name - Name of this new JAnnotatedTypeElement.type - Type of this new JAnnotatedTypeElement.
getComment
public JDocComment getComment()
Returns the JavaDoc comment describing this member.
- The comment describing this member, or null if no comment has
been set.
getDefaultString
public String getDefaultString()
Returns the initialization string for this JAnnotationTypeElement.
- The initialization string for this JAnnotationTypeElement.
getModifiers
public JModifiers getModifiers()
Returns the modifiers for this JAnnotationTypeElement.
- getModifiers in interface JMember
- The modifiers for this JAnnotationTypeElement.
getName
public String getName()
Returns the name of this JAnnotationTypeElement.
- getName in interface JMember
- The name of this JAnnotationTypeElement.
getType
public JType getType()
Returns the JType representing the type of this JAnnotationTypeElement.
- The JType representing the type of this JAnnotationTypeElement.
print
public void print(JSourceWriter jsw)
Outputs the annotation type element to the provided JSourceWriter.
jsw - the JSourceWriter to print this element to
setComment
public void setComment(String comment)
Sets the JavaDoc comment describing this member.
comment - The JDocComment for this member.
setComment
public void setComment(JDocComment comment)
Sets the JavaDoc comment describing this member.
comment - The JDocComment for this member.
setDefaultString
public void setDefaultString(String defaultString)
Sets the initialization string for this JAnnotationTypeElement. This
method allows some flexibility in declaring default values.
defaultString - The default string for this member.
setName
public void setName(String name)
Sets the name of this JAnnotationTypeElement.
name - The name of this JAnnotationTypeElement.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com