+2003-06-20 Michael Koch <konqueror@gmx.de>
+
+ * java/io/ObjectStreamField.java
+ (unshared): new member variable.
+ (ObjectStreamField): New constructor.
+ (isUnshared): New method.
+
2003-06-20 Michael Koch <konqueror@gmx.de>
* java/net/URLStreamHandler.java
import gnu.java.lang.reflect.TypeSignature;
// XXX doc
-public class ObjectStreamField implements java.lang.Comparable
+public class ObjectStreamField implements Comparable
{
+ private String name;
+ private Class type;
+ private String typename;
+ private int offset = -1; // XXX make sure this is correct
+ private boolean unshared;
+
public ObjectStreamField (String name, Class type)
+ {
+ this (name, type, false);
+ }
+
+ public ObjectStreamField (String name, Class type, boolean unshared)
{
this.name = name;
this.type = type;
this.typename = TypeSignature.getEncodingOfClass(type);
+ this.unshared = unshared;
}
/**
offset = off;
}
+ public boolean isUnshared ()
+ {
+ return unshared;
+ }
+
public boolean isPrimitive ()
{
return type.isPrimitive ();
{
return "ObjectStreamField< " + type + " " + name + " >";
}
-
- private String name;
- private Class type;
- private String typename;
- private int offset = -1; // XXX make sure this is correct
}