Class SerializationCodeGenerator
- java.lang.Object
-
- es.bsc.dataclay.logic.classmgr.bytecode.java.SerializationCodeGenerator
-
public final class SerializationCodeGenerator extends Object
Serialization code generator for stubs and execution classes.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DESERIALIZE_DESCRIPTOR
Deserialize signature.static String
DESERIALIZE_NAME
Deserialize name.static String
DESERIALIZE_SIGNATURE
Partial deserialize signature.static String
PARTIAL_DESERIALIZE_DESCRIPTOR
Partial deserialize descriptor.static String
PARTIAL_DESERIALIZE_SIGNATURE
Partial deserialize signature.static String
PARTIAL_SERIALIZE_DESCRIPTOR
Partial serialize descriptor.static String
PARTIAL_SERIALIZE_SIGNATURE
Partial serialize signature.static String
SERIALIZE_DESCRIPTOR
Serialize signature.static String
SERIALIZE_NAME
Serialize name.static String
SERIALIZE_SIGNATURE
Serialize signature.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Tuple<org.objectweb.asm.Type,org.objectweb.asm.Type>
findWrapperType(String javaTypeName, String javaTypeDescriptor)
Find wrapper type that must wrap the type with name providedstatic void
generateDeserializeMethod(org.objectweb.asm.ClassVisitor cv, org.objectweb.asm.Type classType, String parentInternalName, Set<Property> fields)
Generate deserialize methodstatic void
generateSerializeMethod(org.objectweb.asm.ClassVisitor cv, org.objectweb.asm.Type classType, String parentInternalName, Set<Property> fields)
Generate serialize method
-
-
-
Field Detail
-
DESERIALIZE_NAME
public static final String DESERIALIZE_NAME
Deserialize name.- See Also:
- Constant Field Values
-
DESERIALIZE_DESCRIPTOR
public static final String DESERIALIZE_DESCRIPTOR
Deserialize signature.
-
DESERIALIZE_SIGNATURE
public static final String DESERIALIZE_SIGNATURE
Partial deserialize signature. Extracted from ASMifier.- See Also:
- Constant Field Values
-
PARTIAL_DESERIALIZE_DESCRIPTOR
public static final String PARTIAL_DESERIALIZE_DESCRIPTOR
Partial deserialize descriptor.
-
PARTIAL_DESERIALIZE_SIGNATURE
public static final String PARTIAL_DESERIALIZE_SIGNATURE
Partial deserialize signature. Extracted from ASMifier.- See Also:
- Constant Field Values
-
SERIALIZE_NAME
public static final String SERIALIZE_NAME
Serialize name.- See Also:
- Constant Field Values
-
SERIALIZE_DESCRIPTOR
public static final String SERIALIZE_DESCRIPTOR
Serialize signature.
-
SERIALIZE_SIGNATURE
public static final String SERIALIZE_SIGNATURE
Serialize signature. Extracted from ASMifier.- See Also:
- Constant Field Values
-
PARTIAL_SERIALIZE_DESCRIPTOR
public static final String PARTIAL_SERIALIZE_DESCRIPTOR
Partial serialize descriptor.
-
PARTIAL_SERIALIZE_SIGNATURE
public static final String PARTIAL_SERIALIZE_SIGNATURE
Partial serialize signature. Extracted from ASMifier.- See Also:
- Constant Field Values
-
-
Method Detail
-
generateSerializeMethod
public static void generateSerializeMethod(org.objectweb.asm.ClassVisitor cv, org.objectweb.asm.Type classType, String parentInternalName, Set<Property> fields)
Generate serialize method- Parameters:
classType
- Class type being createdparentInternalName
- Internal name of parent classcv
- Class visitor used for method generation.fields
- Fields to serialize
-
generateDeserializeMethod
public static void generateDeserializeMethod(org.objectweb.asm.ClassVisitor cv, org.objectweb.asm.Type classType, String parentInternalName, Set<Property> fields)
Generate deserialize method- Parameters:
classType
- Class type being createdparentInternalName
- Internal name of parent classcv
- Class visitor used for method generation.fields
- Fields to deserialize
-
findWrapperType
public static Tuple<org.objectweb.asm.Type,org.objectweb.asm.Type> findWrapperType(String javaTypeName, String javaTypeDescriptor)
Find wrapper type that must wrap the type with name provided- Parameters:
javaTypeName
- Java type name to wrapjavaTypeDescriptor
- Java type descriptor- Returns:
- Wrapper type and 'actual' java type for constructor
-
-