|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaField
A JavaField instance represents a field declared by a class. It allows to get detailed information about the field such as name, modifiers, type, declaring class and the JDO meta data for the field (if available).
Different environments (runtime, enhancer, development) will have different JavaType implementations to provide answers to the various methods.
Method Summary | |
---|---|
JavaType |
getDeclaringClass()
Returns the JavaType instance representing the class or interface that declares the field represented by this JavaField instance. |
JDOField |
getJDOField()
Returns the corresponding JDOField instance, if the JDOModel provides any JDO metadata for the field represented by this JavaField. |
int |
getModifiers()
Returns the Java language modifiers for the field represented by this JavaField, as an integer. |
java.lang.String |
getName()
Returns the name of the field. |
JavaType |
getType()
Returns the JavaType representation of the field type. |
Method Detail |
---|
java.lang.String getName()
int getModifiers()
Modifier
JavaType getType()
JavaType getDeclaringClass()
JDOField getJDOField()
null
.
A null
result means the declaring class is not
persistence capable or the field represented by this JavaField is
not managed. Note, a non-null
result does not
necessarily mean the field is managed. The JDO metadata might define
the persistence-modifier of this field as none
. Then
the JDOModel provides a JDOField instance which is returned by this
method. You can call method
JDOField.isManaged()
on a
non-null
result to verify that this JavaField
represents a managed field.
null
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |