db4o 7.4

com.db4o.reflect.jdk
Class JdkClass

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

public class JdkClass
extends java.lang.Object
implements JavaReflectClass

Reflection implementation for Class to map to JDK reflection.


Constructor Summary
JdkClass(Reflector reflector, JdkReflector jdkReflector, java.lang.Class clazz)
           
 
Method Summary
 boolean ensureCanBeInstantiated()
          Calling this method may change the internal state of the class, even if a usable constructor has been found on earlier invocations.
 ReflectClass getComponentType()
           
 ReflectField getDeclaredField(java.lang.String name)
           
 ReflectField[] getDeclaredFields()
           
 ReflectClass getDelegate()
          Returns the ReflectClass instance being delegated to.
 java.lang.Class getJavaClass()
           
 ReflectMethod getMethod(java.lang.String methodName, ReflectClass[] paramClasses)
           
 java.lang.String getName()
           
 ReflectConstructor getSerializableConstructor()
           
 ReflectClass getSuperclass()
           
 boolean isAbstract()
           
 boolean isArray()
           
 boolean isAssignableFrom(ReflectClass type)
           
 boolean isCollection()
           
 boolean isInstance(java.lang.Object obj)
           
 boolean isInterface()
           
 boolean isPrimitive()
           
 java.lang.Object newInstance()
           
 java.lang.Object nullValue()
           
 Reflector reflector()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdkClass

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

getComponentType

public ReflectClass getComponentType()
Specified by:
getComponentType 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()
Description copied from interface: ReflectClass
Returns the ReflectClass instance being delegated to. If there's no delegation it should return this.

Specified by:
getDelegate in interface ReflectClass
Returns:
delegate or this

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

newInstance

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

getJavaClass

public java.lang.Class getJavaClass()
Specified by:
getJavaClass in interface JavaReflectClass

reflector

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

getSerializableConstructor

public ReflectConstructor getSerializableConstructor()
Specified by:
getSerializableConstructor in interface ConstructorAwareReflectClass

nullValue

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

ensureCanBeInstantiated

public boolean ensureCanBeInstantiated()
Description copied from interface: ReflectClass
Calling this method may change the internal state of the class, even if a usable constructor has been found on earlier invocations.

Specified by:
ensureCanBeInstantiated in interface ReflectClass
Returns:
true, if instances of this class can be created, false otherwise

db4o 7.4

Copyright 2007 db4objects Inc. All rights reserved.