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

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

public class UIDAdapter
extends org.objectweb.asm.ClassAdapter

bytecode manipulation. Add the serialVersionUID.


Field Summary
protected  org.objectweb.asm.ClassWriter classWriter
          The ClassWriter.
protected  Long newSerialVersionUID
          The new serialVersionUID of the class.
 
Fields inherited from class org.objectweb.asm.ClassAdapter
cv
 
Constructor Summary
UIDAdapter(org.objectweb.asm.ClassVisitor cv, org.objectweb.asm.ClassWriter cw, Long uid)
          The adapater used to manipulate the code.
 
Method Summary
 void visitEnd()
          This method append the serialVersionUID to the class if the attribute newSerialVersionUID is not null.
 
Methods inherited from class org.objectweb.asm.ClassAdapter
visit, visitAnnotation, visitAttribute, visitField, visitInnerClass, visitMethod, visitOuterClass, visitSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classWriter

protected org.objectweb.asm.ClassWriter classWriter
The ClassWriter.


newSerialVersionUID

protected Long newSerialVersionUID
The new serialVersionUID of the class. If this value is null then no changes are performed;

Constructor Detail

UIDAdapter

public UIDAdapter(org.objectweb.asm.ClassVisitor cv,
                  org.objectweb.asm.ClassWriter cw,
                  Long uid)
The adapater used to manipulate the code.

Parameters:
cv - The ClassVisitor used in this object.
cw - The ClassWriter used in this object.
uid - The new serialVersionUID.
Method Detail

visitEnd

public void visitEnd()
This method append the serialVersionUID to the class if the attribute newSerialVersionUID is not null.

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.