|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by any class that wants to answer questions about serializable types.
Method Summary | |
JField[] |
applyFieldSerializationPolicy(JType type)
|
SerializedInstanceReference |
decodeSerializedInstanceReference(String encodedSerializedInstanceReference)
Decode a serialized instance reference into its components. |
String |
encodeSerializedInstanceReference(JType instanceType)
Creates a string that represents a serialized instance reference from a qualified type name. |
JMethod |
getCustomFieldSerializerInstantiateMethodForType(JType type)
Returns the instantiate method on a custom field serializer if there is one and it is valid or null if there is not. |
String |
getFieldSerializerName(JType type)
Return the name of the field serializer for a particular type. |
JType[] |
getSerializableTypes()
Returns the list of all types that are considered serializable. |
JType[] |
getSerializableTypesAssignableTo(JType type)
Get the set of serializable types that are assignable to the requested class, interface, primitive, parameterized, or array type. |
String |
getSerializationSignature(JType instanceType)
Generate a signature for a type from a fully qualified type name. |
String |
getSerializedTypeName(JType type)
Return the serialized name of a type. |
String |
getTypeSerializerQualifiedName(JClassType serviceIntf)
Return the qualified name of the type serializer class for the given service interface. |
String |
getTypeSerializerSimpleName(JClassType serviceIntf)
Return the simple name of the type serializer class for the given service interface interface. |
JClassType |
hasCustomFieldSerializer(JType type)
Return a custom field serializer if there is one associated with a type. |
boolean |
isSerializable(JType type)
Return true if the type is serializable. |
Method Detail |
public String encodeSerializedInstanceReference(JType instanceType)
public SerializedInstanceReference decodeSerializedInstanceReference(String encodedSerializedInstanceReference)
encodedSerializedInstanceReference
-
public String getSerializationSignature(JType instanceType)
public boolean isSerializable(JType type)
public String getSerializedTypeName(JType type)
Element Type | Serialized Name |
---|---|
Array | [Serialized Type Name of Component Type |
boolean | Z |
byte | B |
char | C |
class or interface | Binary name of class or interface see Class.getName() |
double | D |
float | F |
int | I |
long | J |
short | S |
type
-
public String getFieldSerializerName(JType type)
public JType[] getSerializableTypes()
public JType[] getSerializableTypesAssignableTo(JType type)
public String getTypeSerializerQualifiedName(JClassType serviceIntf)
public String getTypeSerializerSimpleName(JClassType serviceIntf)
public JClassType hasCustomFieldSerializer(JType type)
public JMethod getCustomFieldSerializerInstantiateMethodForType(JType type)
type
-
public JField[] applyFieldSerializationPolicy(JType type)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |