public interface JavaField
Different environments (runtime, enhancer, development) will have different JavaType implementations to provide answers to the various methods.
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.