|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.exolab.javasource.JAnnotatedElementHelper
org.exolab.javasource.AbstractJField
public class AbstractJField
A (abstract) base class which holds information about fields. Modeled closely after the Java Reflection API. This class is part of package which is used to create source code in memory.
| Constructor Summary | |
|---|---|
AbstractJField(JType type,
java.lang.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. |
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(JDocComment comment)
Sets the JavaDoc comment describing this JField. |
void |
setComment(java.lang.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(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()
|
| Methods inherited from class org.exolab.javasource.JAnnotatedElementHelper |
|---|
addAnnotation, getAnnotation, getAnnotations, hasAnnotations, isAnnotationPresent, printAnnotations, removeAnnotation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractJField(JType type,
java.lang.String name)
type - JType of this new field.name - Name of this new field.| Method Detail |
|---|
public JDocComment getComment()
public JClass getDeclaringClass()
public java.lang.String getInitString()
public JModifiers getModifiers()
getModifiers in interface JMemberpublic java.lang.String getName()
getName in interface JMemberpublic 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.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||