org.exolab.javasource
public final class JField extends JAnnotatedElementHelper implements JMember
Version: $Revision: 6324 $ $Date: 2005-02-26 17:30:28 -0700 (Sat, 26 Feb 2005) $
Constructor Summary | |
---|---|
JField(JType type, String name)
Creates a new JField. |
Method Summary | |
---|---|
JDocComment | getComment()
Returns the JavaDoc comment describing this member.
|
JClass | getDeclaringClass()
Returns the class in which this JField has been declared.
|
String | getInitString()
Returns the initialization String for this JField.
|
JModifiers | getModifiers()
Returns the modifiers for this JField.
|
String | getName()
Returns the name of this JField.
|
JType | getType()
Returns the JType representing the type of this JField.
|
boolean | isDateTime()
Indicates whether this JField instance represents a field of type date/time. |
void | setComment(JDocComment comment)
Sets the JavaDoc comment describing this JField.
|
void | setComment(String comment)
Sets the JavaDoc comment describing this JField.
|
void | setDateTime(boolean isDateTime)
To indicate whether this JField instance represents a field of type date/time. |
protected void | setDeclaringClass(JClass declaringClass)
Sets the class that declares this JField.
|
void | setInitString(String init)
Sets the initialization string for this JField. |
void | setModifiers(JModifiers modifiers)
Sets the access modifiers on this JField.
|
void | setName(String name)
Sets the name of this JField.
|
String | toString() |
Parameters: type JType of this new field name name of this new field
Returns: the JavaDoc comment describing this member, or null if no comment has been set.
Returns: the class in which this JField has been declared.
Returns: the initialization String for this JField, or null if no initialization String was specified.
Returns: the modifiers for this JField.
Returns: the name of this JField.
Returns: the JType representing the type of this JField.
Returns: True if this field is of type date/time.
Parameters: comment the JavaDoc comment for this JField
Parameters: comment the JavaDoc comment for this JField
Parameters: isDateTime True if this field is of type date/time.
Parameters: declaringClass the class in which this Jfield is declared
Parameters: init the initialization string for this member
Parameters: modifiers the access modifiers to be used for this JField
Parameters: name the name of this JField
See Also: java.lang.Object#toString()
{@inheritDoc }