Save This Page
Home » jdo2-model-2.3-ea-src » » [javadoc | source]
public class: ReflectionJavaField [javadoc | source]

All Implemented Interfaces:
    JavaField, JavaMember

A reflection based JavaField implementation used at runtime. The implementation takes java.lang.reflect.Field instances to get Java related metadata about fields.
Fields inherited from
 public ReflectionJavaField(Field field,
    JavaType declaringClass) 
    Constructor for fields w/o JDO metadata.
    field - the reflection field representation.
    declaringClass - the JavaType of the class that declares the field.
 public ReflectionJavaField(String fieldName,
    JavaType type,
    JavaType declaringClass) 
    Constructor for fields having JDO metadata.
    fieldName - the name of the field.
    type - the field type.
    declaringClass - the JavaType of the class that declares the field.
Method from Summary:
getJavaTypeForClass,   getType
Methods from
ensureInitializedField,   getDeclaredFieldPrivileged,   getDeclaredFieldsPrivileged,   getField,   getModifiers,   getType,   getUnderlyingObject
Methods from
equals,   getComponentType,   getDeclaringClass,   getModifiers,   getName,   getType,   hashCode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from Detail:
 public JavaType getJavaTypeForClass(Class clazz) 
    Returns a JavaType instance for the specified Class object. This method provides a hook such that ReflectionJavaField subclasses can implement their own mapping of Class objects to JavaType instances.
 public JavaType getType() 
    Returns the JavaType representation of the field type.