EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.jaxb.javamodel.reflection
Class JavaFieldImpl

java.lang.Object
  extended by org.eclipse.persistence.jaxb.javamodel.reflection.JavaFieldImpl
All Implemented Interfaces:
JavaField, JavaHasAnnotations

public class JavaFieldImpl
extends java.lang.Object
implements JavaField

INTERNAL:

Purpose:A wrapper class for a JDK Field. This implementation of the TopLink JAXB 2.0 Java model simply makes reflective calls on the underlying JDK object.

Responsibilities:

See Also:
JavaField, Field
Since:
Oracle TopLink 11.1.1.0.0

Field Summary
protected  java.lang.Boolean isMetadataComplete
           
protected  java.lang.reflect.Field jField
           
 
Constructor Summary
JavaFieldImpl(java.lang.reflect.Field javaField, JavaModelImpl javaModelImpl)
           
JavaFieldImpl(java.lang.reflect.Field javaField, JavaModelImpl javaModelImpl, java.lang.Boolean isMetadataComplete)
           
 
Method Summary
 java.lang.Object get(java.lang.Object obj)
           
 java.lang.reflect.AnnotatedElement getAnnotatedElement()
           
 JavaAnnotation getAnnotation(JavaClass arg0)
           
 java.util.Collection getAnnotations()
           
 JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
           
 java.util.Collection getDeclaredAnnotations()
           
 int getModifiers()
           
 java.lang.String getName()
           
 JavaClass getOwningClass()
           
 JavaClass getResolvedType()
           
 boolean isAbstract()
           
 boolean isEnumConstant()
           
 boolean isFinal()
           
 boolean isPrivate()
           
 boolean isProtected()
           
 boolean isPublic()
           
 boolean isStatic()
           
 boolean isSynthetic()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jField

protected java.lang.reflect.Field jField

isMetadataComplete

protected java.lang.Boolean isMetadataComplete
Constructor Detail

JavaFieldImpl

public JavaFieldImpl(java.lang.reflect.Field javaField,
                     JavaModelImpl javaModelImpl)

JavaFieldImpl

public JavaFieldImpl(java.lang.reflect.Field javaField,
                     JavaModelImpl javaModelImpl,
                     java.lang.Boolean isMetadataComplete)
Method Detail

getAnnotation

public JavaAnnotation getAnnotation(JavaClass arg0)
Specified by:
getAnnotation in interface JavaHasAnnotations

getAnnotations

public java.util.Collection getAnnotations()
Specified by:
getAnnotations in interface JavaHasAnnotations

getModifiers

public int getModifiers()
Specified by:
getModifiers in interface JavaField

getName

public java.lang.String getName()
Specified by:
getName in interface JavaField

getOwningClass

public JavaClass getOwningClass()

getResolvedType

public JavaClass getResolvedType()
Specified by:
getResolvedType in interface JavaField

isFinal

public boolean isFinal()
Specified by:
isFinal in interface JavaField

isSynthetic

public boolean isSynthetic()
Specified by:
isSynthetic in interface JavaField

getAnnotatedElement

public java.lang.reflect.AnnotatedElement getAnnotatedElement()

get

public java.lang.Object get(java.lang.Object obj)
                     throws java.lang.IllegalAccessException
Throws:
java.lang.IllegalAccessException

isAbstract

public boolean isAbstract()
Specified by:
isAbstract in interface JavaField

isPrivate

public boolean isPrivate()
Specified by:
isPrivate in interface JavaField

isProtected

public boolean isProtected()
Specified by:
isProtected in interface JavaField

isPublic

public boolean isPublic()
Specified by:
isPublic in interface JavaField

isStatic

public boolean isStatic()
Specified by:
isStatic in interface JavaField

isEnumConstant

public boolean isEnumConstant()
Specified by:
isEnumConstant in interface JavaField

getDeclaredAnnotation

public JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
Specified by:
getDeclaredAnnotation in interface JavaHasAnnotations

getDeclaredAnnotations

public java.util.Collection getDeclaredAnnotations()
Specified by:
getDeclaredAnnotations in interface JavaHasAnnotations

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference