|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.asm.ClassAdapter it.imolinfo.jbi4corba.webservice.generator.bcm.SerializableInspectorAdapter
public class SerializableInspectorAdapter
This adapter inspect a class to find Serializable interface and serial version UID.
Field Summary | |
---|---|
protected ClassMetaInfo |
classMetaInfo
The meta information of the class inspected. |
static String |
FIELDNAME_SERIAL_VERSION_UID
The field 'serialVersionUID'. |
static String |
INTERNAL_NAME_OF_SERIALIZABLE
The internal name of the java interface 'Serializable'. |
Fields inherited from class org.objectweb.asm.ClassAdapter |
---|
cv |
Constructor Summary | |
---|---|
SerializableInspectorAdapter(org.objectweb.asm.ClassVisitor cv)
Constructor. |
Method Summary | |
---|---|
ClassMetaInfo |
getClassMetaInfo()
|
protected boolean |
hasSerialVersionUIDField(String name,
String desc)
Utility. |
protected boolean |
implementsSerializable(String[] interfaces)
|
void |
setClassMetaInfo(ClassMetaInfo classMetaInfo)
|
void |
visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
Override. |
org.objectweb.asm.FieldVisitor |
visitField(int access,
String name,
String desc,
String signature,
Object value)
Override. |
Methods inherited from class org.objectweb.asm.ClassAdapter |
---|
visitAnnotation, visitAttribute, visitEnd, visitInnerClass, visitMethod, visitOuterClass, visitSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INTERNAL_NAME_OF_SERIALIZABLE
public static final String FIELDNAME_SERIAL_VERSION_UID
protected ClassMetaInfo classMetaInfo
Constructor Detail |
---|
public SerializableInspectorAdapter(org.objectweb.asm.ClassVisitor cv)
cv
- The class visitor instance.Method Detail |
---|
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
visit
in interface org.objectweb.asm.ClassVisitor
visit
in class org.objectweb.asm.ClassAdapter
version
- The versionaccess
- The accessname
- The namesignature
- The signaturesuperName
- The superNameinterfaces
- The interfacespublic org.objectweb.asm.FieldVisitor visitField(int access, String name, String desc, String signature, Object value)
visitField
in interface org.objectweb.asm.ClassVisitor
visitField
in class org.objectweb.asm.ClassAdapter
access
- The accessname
- The namedesc
- The descriptionsignature
- The signaturevalue
- The value
protected boolean hasSerialVersionUIDField(String name, String desc)
name
- The namedesc
- The description
protected boolean implementsSerializable(String[] interfaces)
interfaces
- The interfaces
public ClassMetaInfo getClassMetaInfo()
public void setClassMetaInfo(ClassMetaInfo classMetaInfo)
classMetaInfo
- The class meta info
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |