com.db4o.reflect.jdk
Class JdkClass
java.lang.Object
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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdkClass
public JdkClass(Reflector reflector,
JdkReflector jdkReflector,
java.lang.Class clazz)
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
Copyright 2007 db4objects Inc. All rights reserved.