EclipseLink 2.0.0, build 'v20091127-r5931' API Reference

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

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

public class JavaClassImpl
extends java.lang.Object
implements JavaClass

INTERNAL:

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

Responsibilities:

See Also:
JavaClass, Class
Since:
Oracle TopLink 11.1.1.0.0

Field Summary
protected  java.lang.Class jClass
           
protected  java.lang.reflect.ParameterizedType jType
           
 
Constructor Summary
JavaClassImpl(java.lang.Class javaClass)
           
JavaClassImpl(java.lang.reflect.ParameterizedType javaType, java.lang.Class javaClass)
           
 
Method Summary
 java.util.Collection getActualTypeArguments()
           
 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.Class getJavaClass()
           
 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()
           
 boolean hasActualTypeArguments()
           
 boolean isAbstract()
           
 boolean isAnnotation()
           
 boolean isArray()
           
 boolean isAssignableFrom(JavaClass arg0)
          Assumes JavaType is a JavaClassImpl instance
 boolean isEnum()
           
 boolean isFinal()
           
 boolean isInterface()
           
 boolean isMemberClass()
           
 boolean isPrimitive()
           
 boolean isPrivate()
           
 boolean isProtected()
           
 boolean isPublic()
           
 boolean isStatic()
           
 boolean isSynthetic()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jType

protected java.lang.reflect.ParameterizedType jType

jClass

protected java.lang.Class jClass
Constructor Detail

JavaClassImpl

public JavaClassImpl(java.lang.Class javaClass)

JavaClassImpl

public JavaClassImpl(java.lang.reflect.ParameterizedType javaType,
                     java.lang.Class javaClass)
Method Detail

getActualTypeArguments

public java.util.Collection getActualTypeArguments()
Specified by:
getActualTypeArguments in interface JavaClass

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getAnnotation

public JavaAnnotation getAnnotation(JavaClass arg0)
Assumes JavaType is a JavaClassImpl instance

Specified by:
getAnnotation in interface JavaHasAnnotations

getAnnotations

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

getDeclaredClasses

public java.util.Collection getDeclaredClasses()
Specified by:
getDeclaredClasses in interface JavaClass

getDeclaredField

public JavaField getDeclaredField(java.lang.String arg0)
Specified by:
getDeclaredField in interface JavaClass

getDeclaredFields

public java.util.Collection getDeclaredFields()
Specified by:
getDeclaredFields in interface JavaClass

getDeclaredMethod

public JavaMethod getDeclaredMethod(java.lang.String arg0,
                                    JavaClass[] arg1)
Assumes JavaType[] contains JavaClassImpl instances

Specified by:
getDeclaredMethod in interface JavaClass

getDeclaredMethods

public java.util.Collection getDeclaredMethods()
Specified by:
getDeclaredMethods in interface JavaClass

getConstructor

public JavaConstructor getConstructor(JavaClass[] paramTypes)
Specified by:
getConstructor in interface JavaClass

getDeclaredConstructor

public JavaConstructor getDeclaredConstructor(JavaClass[] paramTypes)
Specified by:
getDeclaredConstructor in interface JavaClass

getConstructors

public java.util.Collection getConstructors()
Specified by:
getConstructors in interface JavaClass

getDeclaredConstructors

public java.util.Collection getDeclaredConstructors()
Specified by:
getDeclaredConstructors in interface JavaClass

getField

public JavaField getField(java.lang.String arg0)

getFields

public java.util.Collection getFields()

getJavaClass

public java.lang.Class getJavaClass()

getMethod

public JavaMethod getMethod(java.lang.String arg0,
                            JavaClass[] arg1)
Assumes JavaType[] contains JavaClassImpl instances

Specified by:
getMethod in interface JavaClass

getMethods

public java.util.Collection getMethods()
Specified by:
getMethods in interface JavaClass

getName

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

getPackage

public JavaPackage getPackage()
Specified by:
getPackage in interface JavaClass

getPackageName

public java.lang.String getPackageName()
Specified by:
getPackageName in interface JavaClass

getQualifiedName

public java.lang.String getQualifiedName()
Specified by:
getQualifiedName in interface JavaClass

getRawName

public java.lang.String getRawName()
Specified by:
getRawName in interface JavaClass

getSuperclass

public JavaClass getSuperclass()
Specified by:
getSuperclass in interface JavaClass

hasActualTypeArguments

public boolean hasActualTypeArguments()
Specified by:
hasActualTypeArguments in interface JavaClass

getOwningClass

public JavaClass getOwningClass()

isAnnotation

public boolean isAnnotation()
Specified by:
isAnnotation in interface JavaClass

isArray

public boolean isArray()
Specified by:
isArray in interface JavaClass

isAssignableFrom

public boolean isAssignableFrom(JavaClass arg0)
Assumes JavaType is a JavaClassImpl instance

Specified by:
isAssignableFrom in interface JavaClass

isEnum

public boolean isEnum()
Specified by:
isEnum in interface JavaClass

isInterface

public boolean isInterface()
Specified by:
isInterface in interface JavaClass

isMemberClass

public boolean isMemberClass()
Specified by:
isMemberClass in interface JavaClass

isPrimitive

public boolean isPrimitive()
Specified by:
isPrimitive in interface JavaClass

isAbstract

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

isPrivate

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

isProtected

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

isPublic

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

isStatic

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

getModifiers

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

isFinal

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

isSynthetic

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

getComponentType

public JavaClass getComponentType()
Specified by:
getComponentType in interface JavaClass

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.0.0, build 'v20091127-r5931' API Reference