summaryrefslogtreecommitdiff
path: root/ridljar
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-06-04 01:51:58 +0000
committerOliver Bolte <obo@openoffice.org>2004-06-04 01:51:58 +0000
commit1e2d55691c4302e7ef802b162765031480ad477d (patch)
tree7b1b4f1c9a0db95caa4927e94f48324707cf027c /ridljar
parent40f2b40ecd5198e0c94ffc5b13bd97056e63bac0 (diff)
INTEGRATION: CWS sb18 (1.1.142); FILE MERGED
2004/05/11 16:50:48 sb 1.1.142.1: #i21150# Adapted to instantiated polymorphic struct types.
Diffstat (limited to 'ridljar')
-rw-r--r--ridljar/com/sun/star/lib/uno/typeinfo/MethodTypeInfo.java46
1 files changed, 41 insertions, 5 deletions
diff --git a/ridljar/com/sun/star/lib/uno/typeinfo/MethodTypeInfo.java b/ridljar/com/sun/star/lib/uno/typeinfo/MethodTypeInfo.java
index 7741c50af28f..4d75312d6a8d 100644
--- a/ridljar/com/sun/star/lib/uno/typeinfo/MethodTypeInfo.java
+++ b/ridljar/com/sun/star/lib/uno/typeinfo/MethodTypeInfo.java
@@ -2,9 +2,9 @@
*
* $RCSfile: MethodTypeInfo.java,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: jsc $ $Date: 2000-11-08 15:38:23 $
+ * last change: $Author: obo $ $Date: 2004-06-04 02:51:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -60,16 +60,38 @@
************************************************************************/
package com.sun.star.lib.uno.typeinfo;
+import com.sun.star.uno.Type;
public class MethodTypeInfo extends TypeInfo
{
protected int m_index;
+ private final Type m_unoType; // @since UDK 3.2
- public MethodTypeInfo(String name, int index, int flags)
- {
- super(name, flags);
+ /**
+ Create a method type info with a UNO return type that cannot
+ unambiguously be represented as a Java&nbsp;1.2 type.
+
+ @param name the name of this method; must not be <code>null</code>
+ @param index the index among the direct members
+
+ @param flags any flags (<code>ONEWAY</code>, <code>UNSIGNED</code>,
+ <code>ANY</code>, <code>INTERFACE</code>)
+
+ @param unoType the exact UNO return type; or <code>null</code> if the UNO
+ type is already unambiguously represented by the Java&nbsp;1.2 type
+
+ @since UDK 3.2
+ */
+ public MethodTypeInfo(String name, int index, int flags, Type unoType) {
+ super(name, flags);
m_index = index;
+ m_unoType = unoType;
+ }
+
+ public MethodTypeInfo(String name, int index, int flags)
+ {
+ this(name, index, flags, null);
}
public int getIndex()
@@ -91,6 +113,20 @@ public class MethodTypeInfo extends TypeInfo
{
return (m_flags & TypeInfo.CONST) != 0;
}
+
+ /**
+ Get the exact UNO return type of this method type info, in case it cannot
+ unambiguously be represented as a Java&nbsp;1.2 type.
+
+ @return the exact UNO return type of this method type info, or
+ <code>null</code> if the UNO type is already unambiguously represented by
+ the Java&nbsp;1.2 type
+
+ @since UDK 3.2
+ */
+ public final Type getUnoType() {
+ return m_unoType;
+ }
}