public class JavaClassImpl extends java.lang.Object implements JavaClass
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:
JavaClass
,
Class
Modifier and Type | Field and Description |
---|---|
protected boolean |
isMetadataComplete |
protected JavaModelImpl |
javaModelImpl |
protected java.lang.Class |
jClass |
protected java.lang.reflect.ParameterizedType |
jType |
protected JavaClass |
superClassOverride |
protected static java.lang.String |
XML_REGISTRY_CLASS_NAME |
Constructor and Description |
---|
JavaClassImpl(java.lang.Class javaClass,
JavaModelImpl javaModelImpl) |
JavaClassImpl(java.lang.reflect.ParameterizedType javaType,
java.lang.Class javaClass,
JavaModelImpl javaModelImpl) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection |
getActualTypeArguments() |
java.lang.reflect.AnnotatedElement |
getAnnotatedElement() |
JavaAnnotation |
getAnnotation(JavaClass arg0)
Assumes JavaType is a JavaClassImpl instance
|
java.util.Collection |
getAnnotations() |
JavaClass |
getComponentType() |
JavaConstructor |
getConstructor(JavaClass[] paramTypes) |
java.util.Collection |
getConstructors() |
JavaAnnotation |
getDeclaredAnnotation(JavaClass arg0) |
java.util.Collection |
getDeclaredAnnotations() |
java.util.Collection |
getDeclaredClasses() |
JavaConstructor |
getDeclaredConstructor(JavaClass[] paramTypes) |
java.util.Collection |
getDeclaredConstructors() |
JavaField |
getDeclaredField(java.lang.String arg0) |
java.util.Collection |
getDeclaredFields() |
JavaMethod |
getDeclaredMethod(java.lang.String arg0,
JavaClass[] arg1)
Assumes JavaType[] contains JavaClassImpl instances
|
java.util.Collection |
getDeclaredMethods() |
JavaField |
getField(java.lang.String arg0) |
java.util.Collection |
getFields() |
java.lang.reflect.Type[] |
getGenericInterfaces() |
java.lang.reflect.Type |
getGenericSuperclass() |
java.lang.Class |
getJavaClass() |
JavaField |
getJavaField(java.lang.reflect.Field field) |
JavaMethod |
getJavaMethod(java.lang.reflect.Method method) |
JavaMethod |
getMethod(java.lang.String arg0,
JavaClass[] arg1)
Assumes JavaType[] contains JavaClassImpl instances
|
java.util.Collection |
getMethods() |
int |
getModifiers() |
java.lang.String |
getName() |
JavaClass |
getOwningClass() |
JavaPackage |
getPackage() |
java.lang.String |
getPackageName() |
java.lang.String |
getQualifiedName() |
java.lang.String |
getRawName() |
JavaClass |
getSuperclass() |
JavaClass |
getSuperClassOverride() |
boolean |
hasActualTypeArguments() |
boolean |
isAbstract() |
boolean |
isAnnotation() |
boolean |
isArray() |
boolean |
isAssignableFrom(JavaClass arg0) |
boolean |
isEnum() |
boolean |
isFinal() |
boolean |
isInterface() |
boolean |
isMemberClass() |
boolean |
isPrimitive() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
boolean |
isSynthetic() |
void |
setJavaModelImpl(JavaModelImpl javaModel) |
void |
setSuperClassOverride(JavaClass superClassOverride) |
java.lang.String |
toString() |
protected java.lang.reflect.ParameterizedType jType
protected java.lang.Class jClass
protected JavaModelImpl javaModelImpl
protected boolean isMetadataComplete
protected JavaClass superClassOverride
protected static java.lang.String XML_REGISTRY_CLASS_NAME
public JavaClassImpl(java.lang.Class javaClass, JavaModelImpl javaModelImpl)
public JavaClassImpl(java.lang.reflect.ParameterizedType javaType, java.lang.Class javaClass, JavaModelImpl javaModelImpl)
public void setJavaModelImpl(JavaModelImpl javaModel)
public java.util.Collection getActualTypeArguments()
getActualTypeArguments
in interface JavaClass
public java.lang.String toString()
toString
in class java.lang.Object
public JavaAnnotation getAnnotation(JavaClass arg0)
getAnnotation
in interface JavaHasAnnotations
public java.util.Collection getAnnotations()
getAnnotations
in interface JavaHasAnnotations
public java.util.Collection getDeclaredClasses()
getDeclaredClasses
in interface JavaClass
public JavaField getDeclaredField(java.lang.String arg0)
getDeclaredField
in interface JavaClass
public java.util.Collection getDeclaredFields()
getDeclaredFields
in interface JavaClass
public JavaMethod getDeclaredMethod(java.lang.String arg0, JavaClass[] arg1)
getDeclaredMethod
in interface JavaClass
public java.util.Collection getDeclaredMethods()
getDeclaredMethods
in interface JavaClass
public JavaConstructor getConstructor(JavaClass[] paramTypes)
getConstructor
in interface JavaClass
public JavaConstructor getDeclaredConstructor(JavaClass[] paramTypes)
getDeclaredConstructor
in interface JavaClass
public java.util.Collection getConstructors()
getConstructors
in interface JavaClass
public java.util.Collection getDeclaredConstructors()
getDeclaredConstructors
in interface JavaClass
public JavaField getField(java.lang.String arg0)
public java.util.Collection getFields()
public java.lang.Class getJavaClass()
public JavaMethod getMethod(java.lang.String arg0, JavaClass[] arg1)
public java.util.Collection getMethods()
getMethods
in interface JavaClass
public JavaPackage getPackage()
getPackage
in interface JavaClass
public java.lang.String getPackageName()
getPackageName
in interface JavaClass
public java.lang.String getQualifiedName()
getQualifiedName
in interface JavaClass
public java.lang.String getRawName()
getRawName
in interface JavaClass
public JavaClass getSuperclass()
getSuperclass
in interface JavaClass
public java.lang.reflect.Type[] getGenericInterfaces()
getGenericInterfaces
in interface JavaClass
public java.lang.reflect.Type getGenericSuperclass()
getGenericSuperclass
in interface JavaClass
public boolean hasActualTypeArguments()
hasActualTypeArguments
in interface JavaClass
public JavaField getJavaField(java.lang.reflect.Field field)
public JavaMethod getJavaMethod(java.lang.reflect.Method method)
public JavaClass getOwningClass()
public boolean isAnnotation()
isAnnotation
in interface JavaClass
public java.lang.reflect.AnnotatedElement getAnnotatedElement()
public boolean isAssignableFrom(JavaClass arg0)
isAssignableFrom
in interface JavaClass
public boolean isInterface()
isInterface
in interface JavaClass
public boolean isMemberClass()
isMemberClass
in interface JavaClass
public boolean isPrimitive()
isPrimitive
in interface JavaClass
public boolean isAbstract()
isAbstract
in interface JavaClass
public boolean isProtected()
isProtected
in interface JavaClass
public int getModifiers()
getModifiers
in interface JavaClass
public boolean isSynthetic()
isSynthetic
in interface JavaClass
public JavaClass getComponentType()
getComponentType
in interface JavaClass
public JavaClass getSuperClassOverride()
public void setSuperClassOverride(JavaClass superClassOverride)
public JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
getDeclaredAnnotation
in interface JavaHasAnnotations
public java.util.Collection getDeclaredAnnotations()
getDeclaredAnnotations
in interface JavaHasAnnotations