| java.lang.Object java.io.ObjectStreamField
ObjectStreamField | public ObjectStreamField(String name, Class> cl)(Code) | | Constructs an ObjectStreamField with the given name and the given type
Parameters: name - a String, the name of the field Parameters: cl - A Class object representing the type of the field |
ObjectStreamField | public ObjectStreamField(String name, Class> cl, boolean unshared)(Code) | | Constructs an ObjectStreamField with the given name and the given type
Parameters: name - a String, the name of the field Parameters: cl - A Class object representing the type of the field Parameters: unshared - write and read the field unshared |
ObjectStreamField | ObjectStreamField(String signature, String name)(Code) | | Constructs an ObjectStreamField with the given name and the given type.
The type may be null.
Parameters: signature - A String representing the type of the field Parameters: name - a String, the name of the field, or null |
compareTo | public int compareTo(Object o)(Code) | | Comparing the receiver to the parameter, according to the Comparable
interface.
Parameters: o - The object to compare against -1 if the receiver is "smaller" than the parameter. 0 if thereceiver is "equal" to the parameter. 1 if the receiver is"greater" than the parameter. |
getName | public String getName()(Code) | | Return the name of the field the receiver represents
a String, the name of the field |
getOffset | public int getOffset()(Code) | | Return the offset of this field in the object
an int, the offset |
getType | public Class> getType()(Code) | | Return the type of the field the receiver represents
A Class object representing the type of the field |
getTypeCode | public char getTypeCode()(Code) | | Return the type code that corresponds to the class the receiver
represents
A char, the typecode of the class |
getTypeString | public String getTypeString()(Code) | | Return the type signature used by the VM to represent the type for this
field.
A String, the signature for the class of this field. |
hashCode | public int hashCode()(Code) | | |
isPrimitive | public boolean isPrimitive()(Code) | | Return a boolean indicating whether the class of this field is a
primitive type or not
true if the type of this field is a primitive type false if thetype of this field is a regular class. |
isUnshared | public boolean isUnshared()(Code) | | Answers whether this serialized field is unshared.
true if the field is unshared, false otherwise. |
setOffset | protected void setOffset(int newValue)(Code) | | Set the offset this field represents in the object
Parameters: newValue - an int, the offset |
setUnshared | void setUnshared(boolean unshared)(Code) | | |
sortFields | static void sortFields(ObjectStreamField[] fields)(Code) | | Sorts the fields for dumping. Primitive types come first, then regular
types.
Parameters: fields - ObjectStreamField[] fields to be sorted |
toString | public String toString()(Code) | | Answers a string containing a concise, human-readable description of the
receiver.
a printable representation for the receiver. |
|
|