|
Syntax
- sequence< com::sun::star::reflection::XIdlClass > getClasses
();
Description
-
Returns
-
all types and modules which are declared in this class.
Syntax
- com::sun::star::reflection::XIdlClass getClass
(
- string aName );
Description
-
Returns
-
a type or module with the given name that is declared in this
class.
Syntax
- boolean equals
(
- com::sun::star::reflection::XIdlClass Type );
Description
-
Returns
-
true>
if the instances describe the same type,
otherwise false
.
Syntax
- boolean isAssignableFrom
(
- com::sun::star::reflection::XIdlClass xType );
Description
tests if the parameter xType is a subclass of this
class.
Syntax
- com::sun::star::uno::TypeClass getTypeClass
();
Description
-
Returns
-
the type that this instance represents.
Syntax
- string getName
();
Description
-
Returns
-
the fully-qualified name of the type of object
(class, interface, array, sequence, struct, union, enum or
primitive) represented by this XIdlClass .
Syntax
- com::sun::star::uno::Uik getUik
();
Description
-
Returns
-
the UIK from this type. If the type has no UIK, then the
returned UIK is zero.
Syntax
- sequence< com::sun::star::reflection::XIdlClass > getSuperclasses
();
Description
* If this object represents an interface or a class,
* then the objects that represents the superclasses or superinterfaces
* of that class are returned.
*
* If this object is the one that represents the topmost class
* or interface, an empty sequence is returned.
*
*
Returns
- the superclass or interface of the type represented by this object.
Syntax
- sequence< com::sun::star::reflection::XIdlClass > getInterfaces
();
Description
* Determines the interfaces implemented by the class or interface
* represented by this object.
*
* If the class or interface implements no interfaces, the method
* returns a sequence of length 0.
*
*
Returns
- a sequence of interfaces implemented by this class.
Syntax
- com::sun::star::reflection::XIdlClass getComponentType
();
Description
If this class represents an array or sequence type, this method
returns the XIdlClass object representing the
component type of the array or sequence; otherwise it returns
NULL
.
Syntax
- com::sun::star::reflection::XIdlField getField
(
- string aName );
Description
-
Returns
-
an XIdlField that reflects the specified member
field of the class, interface, struct, union, enum or
exception represented by this XIdlClass object.
If a field with the specified name is not found, 0 is returned.
The field to be reflected is located by searching all the
member fields of the class, interface, struct, union, enum or
exception represented by this XIdlClass object
for a field with the specified name or for NULL, if a field
with the specified name is not found.
Parameter aName
-
specifies the simple name of the desired field.
Syntax
- sequence< com::sun::star::reflection::XIdlField > getFields
();
Description
* Returns a sequence containing Field objects reflecting all the
* accessible fields of the class, interface, struct, union or enum represented
* by this XIdlClass object. Returns a sequence of length 0 if the
* class or interface has no accessible fields, or if it
* represents an array, a sequence or a primitive type.
*
*
Specifically, if this XIdlClass object represents a class,
* returns the fields of this class and of all its
* superclasses. If this XIdlClass object represents an interface,
* returns the fields of this interface and of all its
* superinterfaces. If this XIdlClass object represents an array,
* sequence or primitive type, returns a sequence of length 0.
Syntax
- com::sun::star::reflection::XIdlMethod getMethod
(
- string aName );
Description
-
Returns
-
an XIdlMethod that reflects the specified
member method of the interface represented by this
XIdlClass object. If a method with the specified
name is not found, "0" is returned.
The method to be reflected is located by searching all the
member methods of the interface represented by this
XIdlClass object for a method with the specified
name.
Parameter aName
-
specifies the simple name of the desired method.
Syntax
- sequence< com::sun::star::reflection::XIdlMethod > getMethods
();
Description
* Returns a sequence containing XIdlMethod objects reflecting all the
* member methods of the class or interface
* represented by this XIdlClass object, including those declared by
* the class or interface and and those inherited from
* superclasses and superinterfaces. Returns a sequence of length 0
* if the class or interface has no member methods.
*
Syntax
- com::sun::star::reflection::XIdlArray getArray
();
Description
-
Returns
-
the XIdlArray interface to get and set the
elements by index if the represented type is an array or
sequence.
Syntax
- void createObject
(
- any obj );
Description
creates an instance of the type represented by this
XIdlClass object if the represented type is a
basic type, struct, enum, or sequence.
|