API: Mainly Java-Spec.
|
Public Member Functions |
| | Class (const dmi::ClazzInfo *clazzInfo) |
| | create Class with given clazzInfo
|
| virtual | ~Class () |
| virtual void | finalize () |
| | This is for java-compatibility.
|
| virtual dmi::MetaInfo * | getMetaInfo () |
| | internal should be implemented by Class, Method, Member, and so on
|
| void | resolve () |
| | load full metainfo from my_shared_lib_metainf.so/dll - Exceptions:
-
| exception | if full meta info cannot be resolved |
|
| RClassLoader | getClassLoader () |
| | different to Java this method always returns the system class loader.
|
| virtual RClass | getComponentType () |
| | if this class represends an array it returns the type of the elements of the array, otherwise Nil
|
| ::acdk::lang::reflect::RConstructor | getDeclaredConstructor (IN(RClassArray) parameterTypes) throw ( RNoSuchMethodException ) |
| | return a constructor with given parameter types - Exceptions:
-
|
| ::acdk::lang::reflect::RConstructorArray | getDeclaredConstructors () |
| | return all constructor of this class
|
| ::acdk::lang::reflect::RField | getDeclaredField (IN(RString) name) throw ( RNoSuchFieldException ) |
| | return the field declared in this class with given variable name - Exceptions:
-
|
| ::acdk::lang::reflect::RFieldArray | getDeclaredFields () |
| | return all fields declared in this class
|
| ::acdk::lang::reflect::RMethod | getDeclaredMethod (IN(RString) name, IN(RClassArray) parameterTypes) throw ( RNoSuchMethodException ) |
| | return the method with given name and parameter types.
|
| ::acdk::lang::reflect::RMethodArray | getDeclaredMethods () |
| | return all declared methods of this class
|
| ::acdk::lang::reflect::RField | getField (IN(RString) name) throw ( RNoSuchFieldException ) |
| | return field declared in this class or one of its parents - Exceptions:
-
|
| ::acdk::lang::reflect::RFieldArray | getFields () |
| | return all fields declared in this class or one of its parent classes
|
| ::acdk::lang::reflect::RMethod | getMethod (IN(RString) name, IN(RClassArray) parameterTypes, IN(RStringArray) namedargs=Nil) throw ( RNoSuchMethodException ) |
| | Java compatible reflection.
|
| ::acdk::lang::reflect::RMethodArray | getMethods () |
| | return all methods declared in this class or one of its parent classes
|
| RClass | getDeclaringClass () |
| RClassArray | getClasses () |
| RClassArray | getDeclaredClasses () |
| RClassArray | getInterfaces () |
| | returns the interface this class implements
|
| ::acdk::lang::reflect::RUnit | getUnit () |
| | returns the unit, this class resides.
|
| int | getModifiers () |
| | return the clazz flags of this class
|
| RString | getName () |
| RString | getClassName () |
| RPackage | getPackage () |
| | return the package in which this class is defined may return Nil
|
| RClass | getSuperclass () |
| | return the super class of this class.
|
| RClassArray | getSuperClasses () |
| | return all super classes (not including interfaces) at index 0 of the array always Object::GetClass()
|
| jlong | getSerialVersionUID () |
| | return the declared or calculated SerialVersionUID of this class
|
| bool | isArray () |
| | return true if this class is a BasicArray or a ObjectArray
|
| RClass | getArrayElementClass () |
| | return the Array class, if this class is array If called on a non-array it returns Nil;
|
| bool | isAssignableFrom (IN(RClass) cls) |
| | return true if this class is same as parameter or one of its super class or implemented interfaces
|
| bool | isInstance (IN(RObject) obj) |
| | return true if given obj is exactly type of this class
|
| bool | isInterface () |
| | return true if this class is an interface
|
| bool | isPrimitive () |
| | return true if this class is a primitive type (like bool, int, etc.)
|
| RObject | newInstance () throw ( RInstantiationException ) |
| | creates a new Instance of this Class Will only work if class has defined the method static acdk::lang::Object create_instance() or has a default .
|
| RString | toString () |
| | reimplemented from Object
|
| const dmi::ClazzInfo * | objectClazzInfo () |
| bool | equals (IN(RObject) obj) |
| | Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.
|
| bool | equals (IN(RClass) oclass) |
| bool | isSerializable () |
| | Returns true if this class directly implements the acdk::io::Serializable interface.
|
| bool | hasWriteObject () |
| | Returns true if given function is implemented in this class (not in any derivided).
|
| bool | hasReadObject () |
| | Returns true if given function is implemented in this class (not in any derivided).
|
| bool | hasWriteReplace () |
| | Returns true if given function is implemented in this class (not in any derivided).
|
| bool | hasReadResolve () |
| | Returns true if given function is implemented in this class (not in any derivided).
|
| bool | getDmiProxies (IN(RObjectArray) proxies, IN(RObject) dmiTarget, int flags) |
| | create proxy for dmi.
|
| RObject | createDmiProxy (IN(RObject) dmiTarget) |
| | creates a DmiProxy from this class.
|
| int | compareTo (IN(RClass) other) |
| int | compareTo (IN(RObject) other) |
| | compares t objects Object::compareTo() UnsupportedOperationException
|
| virtual RString | toTypeString (int format=acdk::lang::dmi::TpFtFormatStandard) |
| | print the information
|
Static Public Member Functions |
| RClass | forName (IN(RString) className) throw ( RClassNotFoundException ) |
| | find in in current loaded modules the given class by name
|
| RClass | forName (IN(RString) name, bool initialize) throw ( RClassNotFoundException ) |
| | try to find the given class.
|
| RClass | findClass (IN(RString) name) |
| | Same as forName, but not throws an exception if a class cannot be found just return Nil;.
|
| RClass | forName (IN(RString) name, bool initialize, IN(RClassLoader) loader) |
| | try to find the given class.
|
| RClass | _forName (IN(RString) name) |
| | find in in current loaded modules the given class by name.
|
| RObject | create_arrayInstance (IN(RClass) component, int length) |
| RClass | getSingeltonClass (const dmi::ClazzInfo *clazzInfo) |
| RClass | getSingeltonArrayClass (const dmi::ClazzInfo *elementinfo) |
| dmi::ClazzInfo * | getSingeltonArrayClazz (const dmi::ClazzInfo *elementinfo) |
| dmi::ClazzInfo * | getUnInitializedSingeltonArrayClazz (const dmi::ClazzInfo *elementinfo) |
| RClass | getClassByJType (IN(RString) sign) |
| | looking in ClazzInfo base for given Java-Signature API: ACDK
|
Protected Member Functions |
| RObject | _getInstance () |
| | returns the member _object if not Nil, otherwise try to create a new instance API: ACDK Status: not tested
|
Private Attributes |
| const dmi::ClazzInfo * | _objectClazzInfo |
| | Class is just a wrapper to acdk::lang::dmi::ClazzInfo.
|