public interface ITypeDescription
ITypeDescription
allows to examine a type
in detail (e.g. it is used for marshaling/unmarshaling).限定符和类型 | 方法和说明 |
---|---|
String |
getArrayTypeName()
已过时。
Gets the (Java) array type name.
|
ITypeDescription |
getComponentType()
已过时。
Gets the component
ITypeDescription if
this is an array type, otherwise returns null . |
IFieldDescription |
getFieldDescription(String name)
已过时。
Gets the
IFieldDescription for the
field with the name name , if it exists,
otherwise returns null . |
IFieldDescription[] |
getFieldDescriptions()
已过时。
Gets the
IFieldDescription for every
field, if this type is an interface. |
IMethodDescription |
getMethodDescription(int methodId)
已过时。
Gets the
IMethodDescription for the
method with index methodId, if it exists, otherwise
returns null . |
IMethodDescription |
getMethodDescription(String name)
已过时。
Gets the
IMethodDescription for the
method with the name name , if it exists,
otherwise returns null . |
IMethodDescription[] |
getMethodDescriptions()
已过时。
Gets the
IMethodDescription for every
method, if this type is an interface. |
ITypeDescription |
getSuperType()
已过时。
Gets the
ITypeDescription of the
super, if it exists. |
TypeClass |
getTypeClass()
已过时。
Gets the IDL
TypeClass of the type. |
String |
getTypeName()
已过时。
Gets the (UNO) type name.
|
Class<?> |
getZClass()
已过时。
Gets the corresponding java class for the type.
|
ITypeDescription getSuperType()
ITypeDescription
of the
super, if it exists.ITypeDescription
.IMethodDescription[] getMethodDescriptions()
IMethodDescription
for every
method, if this type is an interface. Otherwise
returns null
.IMethodDescription[]
.IMethodDescription getMethodDescription(int methodId)
IMethodDescription
for the
method with index methodId, if it exists, otherwise
returns null
.IMethodDescription
.IMethodDescription getMethodDescription(String name)
IMethodDescription
for the
method with the name name
, if it exists,
otherwise returns null
.IMethodDescription
.IFieldDescription[] getFieldDescriptions()
IFieldDescription
for every
field, if this type is an interface. Otherwise
returns null
.IFieldDescription[]
.IFieldDescription getFieldDescription(String name)
IFieldDescription
for the
field with the name name
, if it exists,
otherwise returns null
.IFieldDescription
.TypeClass getTypeClass()
TypeClass
of the type.TypeClass
.ITypeDescription getComponentType()
ITypeDescription
if
this is an array type, otherwise returns null
.ITypeDescription
String getTypeName()
UNO type | type name |
---|---|
VOID | "void" |
BOOLEAN | "boolean" |
CHAR | "char" |
BYTE | "byte" |
SHORT | "short" |
UNSIGNED SHORT | "unsigned short" |
LONG | "long" |
UNSIGNED LONG | "unsigned long" |
HYPER | "hyper" |
UNSIGNED HYPER | "unsigned hyper" |
FLOAT | "float" |
DOUBLE | "double" |
STRING | "string" |
TYPE | "type" |
ANY | "any" |
sequence type of base type T | "[]" followed by type name for T |
enum type named N | N (see below) |
struct type named N | N (see below) |
exception type named N | N (see below) |
interface type named N | N (see below) |
For a UNO type named N, consisting of a sequence of module
names M1, ..., Mn followed by
a simple name S, the corresponding type name consists of the
same sequence of module names and simple name, with "."
separating the individual elements.
String getArrayTypeName()
The array type name is defined to be the Java class name (as returned
by Class.forName
) of the Java array class that corresponds
to the UNO sequence type with this type (the UNO type represented by this
ITypeDescription
instance) as base type. For an
ITypeDescription
instance representing the UNO type VOID,
the array type name is defined to be
"[Ljava.lang.Void;"
.
Class<?> getZClass()