JAnnotatedElement, JMemberpublic class AbstractJField extends JAnnotatedElementHelper implements JMember
| Constructor | Description | 
|---|---|
AbstractJField(JType type,
              java.lang.String name) | 
 Creates a new JField. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
JDocComment | 
getComment() | 
 Returns the JavaDoc comment describing this member. 
 | 
JClass | 
getDeclaringClass() | 
 Returns the class in which this JField has been declared. 
 | 
java.lang.String | 
getInitString() | 
 Returns the initialization String for this JField. 
 | 
JModifiers | 
getModifiers() | 
 Returns the modifiers for this JField. 
 | 
java.lang.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(java.lang.String comment) | 
 Sets the JavaDoc comment describing this JField. 
 | 
void | 
setComment(JDocComment 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(java.lang.String init) | 
 Sets the initialization string for this JField. 
 | 
void | 
setModifiers(JModifiers modifiers) | 
 Sets the access modifiers on this JField. 
 | 
void | 
setName(java.lang.String name) | 
 Sets the name of this JField. 
 | 
java.lang.String | 
toString() | 
addAnnotation, getAnnotation, getAnnotations, hasAnnotations, isAnnotationPresent, printAnnotations, removeAnnotationpublic AbstractJField(JType type, java.lang.String name)
type - JType of this new field.name - Name of this new field.public JDocComment getComment()
public JClass getDeclaringClass()
public java.lang.String getInitString()
public JModifiers getModifiers()
getModifiers in interface JMemberpublic java.lang.String getName()
public JType getType()
public void setComment(JDocComment comment)
comment - The JavaDoc comment for this JField.public void setComment(java.lang.String comment)
comment - The JavaDoc comment for this JField.public void setInitString(java.lang.String init)
init - The initialization string for this member.public void setName(java.lang.String name)
name - The name of this JField.public void setModifiers(JModifiers modifiers)
modifiers - The access modifiers to be used for this JField.protected void setDeclaringClass(JClass declaringClass)
declaringClass - The class in which this Jfield is declared.public boolean isDateTime()
public void setDateTime(boolean isDateTime)
isDateTime - True if this field is of type date/time.public java.lang.String toString()
toString in class java.lang.ObjectIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com