/[classpath]/classpath/java/io/ObjectStreamField.java
ViewVC logotype

Diff of /classpath/java/io/ObjectStreamField.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by arenn, Sun Mar 9 21:54:36 2003 UTC revision 1.10 by mkoch, Sat Jun 21 11:43:41 2003 UTC
# Line 41  package java.io; Line 41  package java.io;
41  import gnu.java.lang.reflect.TypeSignature;  import gnu.java.lang.reflect.TypeSignature;
42    
43  // XXX doc  // XXX doc
44  public class ObjectStreamField implements java.lang.Comparable  public class ObjectStreamField implements Comparable
45  {  {
46      private String name;
47      private Class type;
48      private String typename;
49      private int offset = -1; // XXX make sure this is correct
50      private boolean unshared;
51      
52    public ObjectStreamField (String name, Class type)    public ObjectStreamField (String name, Class type)
53    {    {
54        this (name, type, false);
55      }
56    
57      public ObjectStreamField (String name, Class type, boolean unshared)
58      {
59      this.name = name;      this.name = name;
60      this.type = type;      this.type = type;
61      this.typename = TypeSignature.getEncodingOfClass(type);      this.typename = TypeSignature.getEncodingOfClass(type);
62        this.unshared = unshared;
63    }    }
64    
65    /**    /**
# Line 99  public class ObjectStreamField implement Line 111  public class ObjectStreamField implement
111      offset = off;      offset = off;
112    }    }
113    
114      public boolean isUnshared ()
115      {
116        return unshared;
117      }
118    
119    public boolean isPrimitive ()    public boolean isPrimitive ()
120    {    {
121      return type.isPrimitive ();      return type.isPrimitive ();
# Line 123  public class ObjectStreamField implement Line 140  public class ObjectStreamField implement
140    {    {
141      return "ObjectStreamField< " + type + " " + name + " >";      return "ObjectStreamField< " + type + " " + name + " >";
142    }    }
   
   private String name;  
   private Class type;  
   private String typename;  
   private int offset = -1; // XXX make sure this is correct  
143  }  }
144    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26