com.db4o.reflect
Interface ReflectClass
- 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
getComponentType
ReflectClass getComponentType()
getDeclaredConstructors
ReflectConstructor[] getDeclaredConstructors()
getDeclaredFields
ReflectField[] getDeclaredFields()
getDeclaredField
ReflectField getDeclaredField(java.lang.String name)
getDelegate
ReflectClass getDelegate()
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()
isSecondClass
boolean isSecondClass()
newInstance
java.lang.Object newInstance()
reflector
Reflector reflector()
skipConstructor
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
- 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
void useConstructor(ReflectConstructor constructor,
java.lang.Object[] params)
toArray
java.lang.Object[] toArray(java.lang.Object obj)