public class JavaFieldImpl extends java.lang.Object implements JavaField
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:
JavaField
,
Field
Modifier and Type | Field and Description |
---|---|
protected boolean |
isMetadataComplete |
protected java.lang.reflect.Field |
jField |
Constructor and Description |
---|
JavaFieldImpl(java.lang.reflect.Field javaField,
JavaModelImpl javaModelImpl) |
JavaFieldImpl(java.lang.reflect.Field javaField,
JavaModelImpl javaModelImpl,
java.lang.Boolean isMetadataComplete) |
Modifier and Type | Method and Description |
---|---|
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() |
protected java.lang.reflect.Field jField
protected boolean isMetadataComplete
public JavaFieldImpl(java.lang.reflect.Field javaField, JavaModelImpl javaModelImpl)
public JavaFieldImpl(java.lang.reflect.Field javaField, JavaModelImpl javaModelImpl, java.lang.Boolean isMetadataComplete)
public JavaAnnotation getAnnotation(JavaClass arg0)
getAnnotation
in interface JavaHasAnnotations
public java.util.Collection getAnnotations()
getAnnotations
in interface JavaHasAnnotations
public int getModifiers()
getModifiers
in interface JavaField
public JavaClass getOwningClass()
public JavaClass getResolvedType()
getResolvedType
in interface JavaField
public boolean isSynthetic()
isSynthetic
in interface JavaField
public java.lang.reflect.AnnotatedElement getAnnotatedElement()
public java.lang.Object get(java.lang.Object obj) throws java.lang.IllegalAccessException
java.lang.IllegalAccessException
public boolean isAbstract()
isAbstract
in interface JavaField
public boolean isProtected()
isProtected
in interface JavaField
public boolean isEnumConstant()
isEnumConstant
in interface JavaField
public JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
getDeclaredAnnotation
in interface JavaHasAnnotations
public java.util.Collection getDeclaredAnnotations()
getDeclaredAnnotations
in interface JavaHasAnnotations