Class JavaClassImpl
java.lang.Object
org.eclipse.persistence.jaxb.javamodel.reflection.JavaClassImpl
- All Implemented Interfaces:
JavaClass
,JavaHasAnnotations
INTERNAL:
Purpose:A wrapper class for a JDK Class. This implementation of the EclipseLink JAXB 2.X Java model simply makes reflective calls on the underlying JDK object.
Responsibilities:
- Provide access to the underlying JDK Class' name, package, method/field names and parameters, annotations, etc.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected JavaModelImpl
protected Class
protected ParameterizedType
protected JavaClass
protected static final String
-
Constructor Summary
ConstructorDescriptionJavaClassImpl
(Class javaClass, JavaModelImpl javaModelImpl) JavaClassImpl
(ParameterizedType javaType, Class javaClass, JavaModelImpl javaModelImpl) -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation
(JavaClass arg0) Assumes JavaType is a JavaClassImpl instancegetConstructor
(JavaClass[] paramTypes) getDeclaredConstructor
(JavaClass[] paramTypes) getDeclaredField
(String arg0) getDeclaredMethod
(String arg0, JavaClass[] arg1) Assumes JavaType[] contains JavaClassImpl instancesType[]
getJavaField
(Field field) getJavaMethod
(Method method) Assumes JavaType[] contains JavaClassImpl instancesint
getName()
boolean
boolean
boolean
boolean
isArray()
boolean
isAssignableFrom
(JavaClass arg0) boolean
isEnum()
boolean
isFinal()
boolean
boolean
boolean
boolean
boolean
boolean
isPublic()
boolean
isStatic()
boolean
void
setJavaModelImpl
(JavaModelImpl javaModel) void
setSuperClassOverride
(JavaClass superClassOverride) toString()
-
Field Details
-
jType
-
jClass
-
javaModelImpl
-
isMetadataComplete
protected boolean isMetadataComplete -
superClassOverride
-
XML_REGISTRY_CLASS_NAME
- See Also:
-
-
Constructor Details
-
JavaClassImpl
-
JavaClassImpl
-
-
Method Details
-
setJavaModelImpl
-
getActualTypeArguments
- Specified by:
getActualTypeArguments
in interfaceJavaClass
-
toString
-
getAnnotation
Assumes JavaType is a JavaClassImpl instance- Specified by:
getAnnotation
in interfaceJavaHasAnnotations
-
getAnnotations
- Specified by:
getAnnotations
in interfaceJavaHasAnnotations
-
getDeclaredClasses
- Specified by:
getDeclaredClasses
in interfaceJavaClass
-
getDeclaredField
- Specified by:
getDeclaredField
in interfaceJavaClass
-
getDeclaredFields
- Specified by:
getDeclaredFields
in interfaceJavaClass
-
getDeclaredMethod
Assumes JavaType[] contains JavaClassImpl instances- Specified by:
getDeclaredMethod
in interfaceJavaClass
-
getDeclaredMethods
- Specified by:
getDeclaredMethods
in interfaceJavaClass
-
getConstructor
- Specified by:
getConstructor
in interfaceJavaClass
-
getDeclaredConstructor
- Specified by:
getDeclaredConstructor
in interfaceJavaClass
-
getConstructors
- Specified by:
getConstructors
in interfaceJavaClass
-
getDeclaredConstructors
- Specified by:
getDeclaredConstructors
in interfaceJavaClass
-
getField
-
getFields
-
getJavaClass
-
getMethod
Assumes JavaType[] contains JavaClassImpl instances -
getMethods
- Specified by:
getMethods
in interfaceJavaClass
-
getName
-
getPackage
- Specified by:
getPackage
in interfaceJavaClass
-
getPackageName
- Specified by:
getPackageName
in interfaceJavaClass
-
getQualifiedName
- Specified by:
getQualifiedName
in interfaceJavaClass
-
getRawName
- Specified by:
getRawName
in interfaceJavaClass
-
getSuperclass
- Specified by:
getSuperclass
in interfaceJavaClass
-
getGenericInterfaces
- Specified by:
getGenericInterfaces
in interfaceJavaClass
-
getGenericSuperclass
- Specified by:
getGenericSuperclass
in interfaceJavaClass
-
hasActualTypeArguments
public boolean hasActualTypeArguments()- Specified by:
hasActualTypeArguments
in interfaceJavaClass
-
getJavaField
-
getJavaMethod
-
getOwningClass
-
isAnnotation
public boolean isAnnotation()- Specified by:
isAnnotation
in interfaceJavaClass
-
isArray
public boolean isArray() -
getAnnotatedElement
-
isAssignableFrom
- Specified by:
isAssignableFrom
in interfaceJavaClass
-
isEnum
public boolean isEnum() -
isInterface
public boolean isInterface()- Specified by:
isInterface
in interfaceJavaClass
-
isMemberClass
public boolean isMemberClass()- Specified by:
isMemberClass
in interfaceJavaClass
-
isPrimitive
public boolean isPrimitive()- Specified by:
isPrimitive
in interfaceJavaClass
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstract
in interfaceJavaClass
-
isPrivate
public boolean isPrivate() -
isProtected
public boolean isProtected()- Specified by:
isProtected
in interfaceJavaClass
-
isPublic
public boolean isPublic() -
isStatic
public boolean isStatic() -
getModifiers
public int getModifiers()- Specified by:
getModifiers
in interfaceJavaClass
-
isFinal
public boolean isFinal() -
isSynthetic
public boolean isSynthetic()- Specified by:
isSynthetic
in interfaceJavaClass
-
instanceOf
- Specified by:
instanceOf
in interfaceJavaClass
-
getComponentType
- Specified by:
getComponentType
in interfaceJavaClass
-
getSuperClassOverride
-
setSuperClassOverride
-
getDeclaredAnnotation
- Specified by:
getDeclaredAnnotation
in interfaceJavaHasAnnotations
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceJavaHasAnnotations
-