Package com.db4o.reflect
Interface ReflectClass
-
- All Known Subinterfaces:
ConstructorAwareReflectClass
,JavaReflectClass
- All Known Implementing Classes:
GenericArrayClass
,GenericClass
,JdkClass
public interface ReflectClass
representation for java.lang.Class.
See the respective documentation in the JDK API.- See Also:
Reflector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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()
boolean
isSimple()
We need this for replication, to find out if a class needs to be traversed or if it simply can be copied across.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
-
isSimple
boolean isSimple()
We need this for replication, to find out if a class needs to be traversed or if it simply can be copied across. For now we will simply return the classes that areisPrimitive()
andPlatform4.isSimple(Class)
We can think about letting users add an Immutable annotation.
-
-