com.db4o.reflect.self
Class SelfClass
java.lang.Object
com.db4o.reflect.self.SelfClass
- All Implemented Interfaces:
- ReflectClass
public class SelfClass
- extends java.lang.Object
- implements ReflectClass
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelfClass
public SelfClass(Reflector parentReflector,
SelfReflectionRegistry registry,
java.lang.Class clazz)
getJavaClass
public java.lang.Class getJavaClass()
reflector
public Reflector reflector()
- Specified by:
reflector
in interface ReflectClass
getComponentType
public ReflectClass getComponentType()
- Specified by:
getComponentType
in interface ReflectClass
getDeclaredConstructors
public ReflectConstructor[] getDeclaredConstructors()
- Specified by:
getDeclaredConstructors
in interface ReflectClass
getDeclaredFields
public ReflectField[] getDeclaredFields()
- Specified by:
getDeclaredFields
in interface ReflectClass
getDeclaredField
public ReflectField getDeclaredField(java.lang.String name)
- Specified by:
getDeclaredField
in interface ReflectClass
getDelegate
public ReflectClass getDelegate()
- Specified by:
getDelegate
in interface ReflectClass
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
isSecondClass
public boolean isSecondClass()
- Specified by:
isSecondClass
in interface ReflectClass
newInstance
public java.lang.Object newInstance()
- Specified by:
newInstance
in interface ReflectClass
skipConstructor
public boolean skipConstructor(boolean flag)
- Description copied from interface:
ReflectClass
- instructs to install or uninstall a special constructor for the
respective platform that avoids calling the constructor for the
respective class
- Specified by:
skipConstructor
in interface ReflectClass
- 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
public void useConstructor(ReflectConstructor constructor,
java.lang.Object[] params)
- Specified by:
useConstructor
in interface ReflectClass
toArray
public java.lang.Object[] toArray(java.lang.Object obj)
- Specified by:
toArray
in interface ReflectClass