it.imolinfo.jbi4corba.webservice.generator.bcm
Class SerializableDecorationAdapter

java.lang.Object
  extended by org.objectweb.asm.ClassAdapter
      extended by it.imolinfo.jbi4corba.webservice.generator.bcm.SerializableInspectorAdapter
          extended by it.imolinfo.jbi4corba.webservice.generator.bcm.SerializableDecorationAdapter
All Implemented Interfaces:
org.objectweb.asm.ClassVisitor

public class SerializableDecorationAdapter
extends SerializableInspectorAdapter

This adapter makes a class serializable and add a serial version UID.


Field Summary
protected  Long newSerialVersionUid
          The new serial version UID for the class inspected.
 
Fields inherited from class it.imolinfo.jbi4corba.webservice.generator.bcm.SerializableInspectorAdapter
classMetaInfo, FIELDNAME_SERIAL_VERSION_UID, INTERNAL_NAME_OF_SERIALIZABLE
 
Fields inherited from class org.objectweb.asm.ClassAdapter
cv
 
Constructor Summary
SerializableDecorationAdapter(org.objectweb.asm.ClassVisitor cv, Long aNewSerialVersionUid)
          Constructor.
 
Method Summary
 void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
          Override.
 void visitEnd()
          Override.
 org.objectweb.asm.FieldVisitor visitField(int access, String name, String desc, String signature, Object value)
          Override.
 
Methods inherited from class it.imolinfo.jbi4corba.webservice.generator.bcm.SerializableInspectorAdapter
getClassMetaInfo, hasSerialVersionUIDField, implementsSerializable, setClassMetaInfo
 
Methods inherited from class org.objectweb.asm.ClassAdapter
visitAnnotation, visitAttribute, visitInnerClass, visitMethod, visitOuterClass, visitSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

newSerialVersionUid

protected Long newSerialVersionUid
The new serial version UID for the class inspected.

Constructor Detail

SerializableDecorationAdapter

public SerializableDecorationAdapter(org.objectweb.asm.ClassVisitor cv,
                                     Long aNewSerialVersionUid)
Constructor.

Parameters:
cv - The class visitor instance.
aNewSerialVersionUid - The new serial version UID.
Method Detail

visit

public void visit(int version,
                  int access,
                  String name,
                  String signature,
                  String superName,
                  String[] interfaces)
Override.

Specified by:
visit in interface org.objectweb.asm.ClassVisitor
Overrides:
visit in class SerializableInspectorAdapter
Parameters:
version - The version
access - The access
name - The name
signature - The signature
superName - The super name
interfaces - The interfaces

visitField

public org.objectweb.asm.FieldVisitor visitField(int access,
                                                 String name,
                                                 String desc,
                                                 String signature,
                                                 Object value)
Override.

Specified by:
visitField in interface org.objectweb.asm.ClassVisitor
Overrides:
visitField in class SerializableInspectorAdapter
Parameters:
access - The access
name - The name
desc - The description
signature - The signature
value - The value
Returns:
The return

visitEnd

public void visitEnd()
Override.

Specified by:
visitEnd in interface org.objectweb.asm.ClassVisitor
Overrides:
visitEnd in class org.objectweb.asm.ClassAdapter


Copyright © 2005-2010 Imola Informatica. All Rights Reserved.