db4o 6.1

com.db4o.reflect.jdk
Class JdkClass

java.lang.Object
  extended by com.db4o.reflect.jdk.JdkClass
All Implemented Interfaces:
ReflectClass

public class JdkClass
extends java.lang.Object
implements ReflectClass

Reflection implementation for Class to map to JDK reflection.


Constructor Summary
JdkClass(Reflector reflector, java.lang.Class clazz)
           
 
Method Summary
 ReflectClass getComponentType()
           
 ReflectConstructor[] getDeclaredConstructors()
           
 ReflectField getDeclaredField(java.lang.String name)
           
 ReflectField[] getDeclaredFields()
           
 ReflectClass getDelegate()
           
 ReflectMethod getMethod(java.lang.String methodName, ReflectClass[] paramClasses)
           
 java.lang.String getName()
           
 ReflectClass getSuperclass()
           
 boolean isAbstract()
           
 boolean isArray()
           
 boolean isAssignableFrom(ReflectClass type)
           
 boolean isCollection()
           
 boolean isInstance(java.lang.Object obj)
           
 boolean isInterface()
           
 boolean isPrimitive()
           
 boolean isSecondClass()
           
 java.lang.Object newInstance()
           
 Reflector reflector()
           
 boolean skipConstructor(boolean flag)
          instructs to install or uninstall a special constructor for the respective platform that avoids calling the constructor for the respective class
 java.lang.Object[] toArray(java.lang.Object obj)
           
 void useConstructor(ReflectConstructor constructor, java.lang.Object[] params)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdkClass

public JdkClass(Reflector reflector,
                java.lang.Class clazz)
Method Detail

getComponentType

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

getDeclaredConstructors

public ReflectConstructor[] getDeclaredConstructors()
Specified by:
getDeclaredConstructors in interface ReflectClass

getDeclaredField

public ReflectField getDeclaredField(java.lang.String name)
Specified by:
getDeclaredField in interface ReflectClass

getDeclaredFields

public ReflectField[] getDeclaredFields()
Specified by:
getDeclaredFields in interface ReflectClass

getDelegate

public ReflectClass getDelegate()
Specified by:
getDelegate in interface ReflectClass

getMethod

public ReflectMethod getMethod(java.lang.String methodName,
                               ReflectClass[] paramClasses)
Specified by:
getMethod in interface ReflectClass

getName

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

getSuperclass

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

isAbstract

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

isArray

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

isAssignableFrom

public boolean isAssignableFrom(ReflectClass type)
Specified by:
isAssignableFrom in interface ReflectClass

isCollection

public boolean isCollection()
Specified by:
isCollection in interface ReflectClass

isInstance

public boolean isInstance(java.lang.Object obj)
Specified by:
isInstance in interface ReflectClass

isInterface

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

isPrimitive

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

isSecondClass

public boolean isSecondClass()
Specified by:
isSecondClass in interface ReflectClass

newInstance

public java.lang.Object newInstance()
Specified by:
newInstance in interface ReflectClass

reflector

public Reflector reflector()
Specified by:
reflector in interface ReflectClass

skipConstructor

public boolean skipConstructor(boolean flag)
Description copied from interface: ReflectClass
instructs to install or uninstall a special constructor for the respective platform that avoids calling the constructor for the respective class

Specified by:
skipConstructor in interface ReflectClass
Parameters:
flag - true to try to install a special constructor, false if such a constructor is to be removed if present
Returns:
true if the special constructor is in place after the call

useConstructor

public void useConstructor(ReflectConstructor constructor,
                           java.lang.Object[] params)
Specified by:
useConstructor in interface ReflectClass

toArray

public java.lang.Object[] toArray(java.lang.Object obj)
Specified by:
toArray in interface ReflectClass

db4o 6.1