db4o 7.4

com.db4o.reflect
Interface ReflectClass

All Known Subinterfaces:
ConstructorAwareReflectClass, JavaReflectClass
All Known Implementing Classes:
JdkClass, SelfClass

public interface ReflectClass

representation for java.lang.Class.

See the respective documentation in the JDK API.

See Also:
Reflector

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.
 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()
           
 java.lang.Object newInstance()
           
 java.lang.Object nullValue()
           
 Reflector reflector()
           
 

Method Detail

getComponentType

ReflectClass getComponentType()

getDeclaredFields

ReflectField[] getDeclaredFields()

getDeclaredField

ReflectField getDeclaredField(java.lang.String name)

getDelegate

ReflectClass getDelegate()
Returns the ReflectClass instance being delegated to. If there's no delegation it should return this.

Returns:
delegate or this

getMethod

ReflectMethod getMethod(java.lang.String methodName,
                        ReflectClass[] paramClasses)

getName

java.lang.String getName()

getSuperclass

ReflectClass getSuperclass()

isAbstract

boolean isAbstract()

isArray

boolean isArray()

isAssignableFrom

boolean isAssignableFrom(ReflectClass type)

isCollection

boolean isCollection()

isInstance

boolean isInstance(java.lang.Object obj)

isInterface

boolean isInterface()

isPrimitive

boolean isPrimitive()

newInstance

java.lang.Object newInstance()

reflector

Reflector reflector()

nullValue

java.lang.Object nullValue()

ensureCanBeInstantiated

boolean ensureCanBeInstantiated()
Calling this method may change the internal state of the class, even if a usable constructor has been found on earlier invocations.

Returns:
true, if instances of this class can be created, false otherwise

db4o 7.4

Copyright 2007 db4objects Inc. All rights reserved.