it.imolinfo.jbi4corba.webservice.generator.bcm
Class UIDAdapter
java.lang.Object
org.objectweb.asm.ClassAdapter
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.
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 |
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;
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.
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.