summaryrefslogtreecommitdiffstats
path: root/ridljar
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-06-04 01:50:36 +0000
committerOliver Bolte <obo@openoffice.org>2004-06-04 01:50:36 +0000
commit356017af5d95b6940f0efa4a60415dcb1c40cb56 (patch)
tree3c8049b88f827d883d07cb4eeb45cf2606170559 /ridljar
parentINTEGRATION: CWS sb18 (1.3.4); FILE MERGED (diff)
downloadcore-356017af5d95b6940f0efa4a60415dcb1c40cb56.tar.gz
core-356017af5d95b6940f0efa4a60415dcb1c40cb56.zip
INTEGRATION: CWS sb18 (1.3.18); FILE MERGED
2004/05/11 16:51:25 sb 1.3.18.1: #i21150# Adapted to instantiated polymorphic struct types.
Diffstat (limited to 'ridljar')
-rw-r--r--ridljar/com/sun/star/lib/uno/typedesc/FieldDescription.java20
1 files changed, 16 insertions, 4 deletions
diff --git a/ridljar/com/sun/star/lib/uno/typedesc/FieldDescription.java b/ridljar/com/sun/star/lib/uno/typedesc/FieldDescription.java
index bc8c3450406d..ea0a0137d759 100644
--- a/ridljar/com/sun/star/lib/uno/typedesc/FieldDescription.java
+++ b/ridljar/com/sun/star/lib/uno/typedesc/FieldDescription.java
@@ -2,9 +2,9 @@
*
* $RCSfile: FieldDescription.java,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: hr $ $Date: 2004-02-03 13:23:38 $
+ * last change: $Author: obo $ $Date: 2004-06-04 02:50:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -65,12 +65,19 @@ import com.sun.star.uno.IFieldDescription;
import com.sun.star.uno.ITypeDescription;
import java.lang.reflect.Field;
-final class FieldDescription implements IFieldDescription {
+// Conceptually, this class would not be public, but would only be accessed
+// through its IFieldDescription interface. However, since FieldDescription has
+// been extended with a type parameter index, it is no longer fully covered by
+// the deprecated IFieldDescription interface, and instead directly accessed by
+// code in com.sun.star.lib.uno.protocols.urp.
+public final class FieldDescription implements IFieldDescription {
public FieldDescription(
- String name, int index, ITypeDescription typeDescription, Field field)
+ String name, int index, int typeParameterIndex,
+ ITypeDescription typeDescription, Field field)
{
this.name = name;
this.index = index;
+ this.typeParameterIndex = typeParameterIndex;
this.typeDescription = typeDescription;
this.field = field;
}
@@ -95,6 +102,10 @@ final class FieldDescription implements IFieldDescription {
return index;
}
+ public int getTypeParameterIndex() {
+ return typeParameterIndex;
+ }
+
public ITypeDescription getTypeDescription() {
return typeDescription;
}
@@ -105,6 +116,7 @@ final class FieldDescription implements IFieldDescription {
private final String name;
private final int index;
+ private final int typeParameterIndex;
private final ITypeDescription typeDescription;
private final Field field;
}