Package com.sun.corba.ee.impl.io
Class ObjectStreamField
java.lang.Object
com.sun.corba.ee.impl.io.ObjectStreamField
- All Implemented Interfaces:
Comparable
A description of a field in a serializable class.
A array of these is used to declare the persistent fields of
a class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompare this with another ObjectStreamField.getClazz()(package private) FieldgetField()longgetName()Get the name of this field.getType()Get the type of the field.charbooleantest if this field is a primitive or not.(package private) voidtoString()Return a string describing this field.booleantypeEquals(ObjectStreamField other) Compare the types of two class descriptors.
-
Field Details
-
bridge
private static final org.glassfish.pfl.basic.reflection.Bridge bridge -
name
-
type
private char type -
field
-
typeString
-
clazz
-
cinfo
-
signature
-
fieldID
private long fieldID
-
-
Constructor Details
-
ObjectStreamField
-
ObjectStreamField
-
-
Method Details
-
getName
Get the name of this field.- Returns:
- The field name
-
getClassInfo
-
getType
Get the type of the field.- Returns:
- The type of the field
-
getTypeCode
public char getTypeCode() -
getTypeString
-
getField
Field getField() -
setField
-
isPrimitive
public boolean isPrimitive()test if this field is a primitive or not.- Returns:
- if this field is primitive.
-
compareTo
Compare this with another ObjectStreamField. return -1 if this is smaller, 0 if equal, 1 if greater types that are primitives are "smaller" than objects. if equal, the names are compared.- Specified by:
compareToin interfaceComparable
-
typeEquals
Compare the types of two class descriptors. The match if they have the same primitive types. or if they are both objects and the object types match.- Parameters:
other- type to compare with- Returns:
- if the two types are equivalent
-
getSignature
-
toString
Return a string describing this field. -
getClazz
-
getFieldID
public long getFieldID()
-