Module org.eclipse.persistence.moxy
Class JavaFieldImpl
- java.lang.Object
-
- org.eclipse.persistence.jaxb.javamodel.reflection.JavaFieldImpl
-
- All Implemented Interfaces:
JavaField,JavaHasAnnotations
public class JavaFieldImpl extends 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:
- Provide access to the underlying field's name, type, modifiers, annotations, etc.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisMetadataCompleteprotected FieldjField
-
Constructor Summary
Constructors Constructor Description JavaFieldImpl(Field javaField, JavaModelImpl javaModelImpl)JavaFieldImpl(Field javaField, JavaModelImpl javaModelImpl, Boolean isMetadataComplete)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(Object obj)AnnotatedElementgetAnnotatedElement()JavaAnnotationgetAnnotation(JavaClass arg0)CollectiongetAnnotations()JavaAnnotationgetDeclaredAnnotation(JavaClass arg0)CollectiongetDeclaredAnnotations()intgetModifiers()StringgetName()JavaClassgetOwningClass()JavaClassgetResolvedType()booleanisAbstract()booleanisEnumConstant()booleanisFinal()booleanisPrivate()booleanisProtected()booleanisPublic()booleanisStatic()booleanisSynthetic()
-
-
-
Field Detail
-
jField
protected Field jField
-
isMetadataComplete
protected boolean isMetadataComplete
-
-
Constructor Detail
-
JavaFieldImpl
public JavaFieldImpl(Field javaField, JavaModelImpl javaModelImpl)
-
JavaFieldImpl
public JavaFieldImpl(Field javaField, JavaModelImpl javaModelImpl, Boolean isMetadataComplete)
-
-
Method Detail
-
getAnnotation
public JavaAnnotation getAnnotation(JavaClass arg0)
- Specified by:
getAnnotationin interfaceJavaHasAnnotations
-
getAnnotations
public Collection getAnnotations()
- Specified by:
getAnnotationsin interfaceJavaHasAnnotations
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin interfaceJavaField
-
getOwningClass
public JavaClass getOwningClass()
-
getResolvedType
public JavaClass getResolvedType()
- Specified by:
getResolvedTypein interfaceJavaField
-
isSynthetic
public boolean isSynthetic()
- Specified by:
isSyntheticin interfaceJavaField
-
getAnnotatedElement
public AnnotatedElement getAnnotatedElement()
-
get
public Object get(Object obj) throws IllegalAccessException
- Throws:
IllegalAccessException
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin interfaceJavaField
-
isProtected
public boolean isProtected()
- Specified by:
isProtectedin interfaceJavaField
-
isEnumConstant
public boolean isEnumConstant()
- Specified by:
isEnumConstantin interfaceJavaField
-
getDeclaredAnnotation
public JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
- Specified by:
getDeclaredAnnotationin interfaceJavaHasAnnotations
-
getDeclaredAnnotations
public Collection getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceJavaHasAnnotations
-
-