|
||||||||||
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.jbi4ejb.webservice.generator.bcm.SerializableInspectorAdapter
public class SerializableInspectorAdapter
Finds if a class implements the Serializable and gets the interface serial
version UIDs, putting all the informtaion a ClassMetaInfo
instance.
Field Summary | |
---|---|
static java.lang.String |
FIELDNAME_SERIAL_VERSION_UID
The 'serialVersionUID' field. |
static java.lang.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)
Instantiates a new serializable inspector adapter. |
Method Summary | |
---|---|
ClassMetaInfo |
getClassMetaInfo()
Gets the class meta info. |
protected boolean |
hasSerialVersionUIDField(java.lang.String name,
java.lang.String desc)
Checks if the field is a serial version UID field. |
protected boolean |
implementsSerializable(java.lang.String[] interfaces)
Tests if Serializable is between the interfaces. |
void |
setClassMetaInfo(ClassMetaInfo classMetaInfo)
Sets the class meta info. |
void |
visit(int version,
int access,
java.lang.String name,
java.lang.String signature,
java.lang.String superName,
java.lang.String[] interfaces)
Tests if the class implements serializable. |
org.objectweb.asm.FieldVisitor |
visitField(int access,
java.lang.String name,
java.lang.String desc,
java.lang.String signature,
java.lang.Object value)
If find the serialVersionUID field, gets the value. |
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 java.lang.String INTERNAL_NAME_OF_SERIALIZABLE
public static final java.lang.String FIELDNAME_SERIAL_VERSION_UID
Constructor Detail |
---|
public SerializableInspectorAdapter(org.objectweb.asm.ClassVisitor cv)
cv
- The ClassVisitor
Method Detail |
---|
public void visit(int version, int access, java.lang.String name, java.lang.String signature, java.lang.String superName, java.lang.String[] interfaces)
visit
in interface org.objectweb.asm.ClassVisitor
visit
in class org.objectweb.asm.ClassAdapter
version
- The versionaccess
- The access modifiername
- The class namesignature
- The signaturesuperName
- The superclass nameinterfaces
- The interfaces implementedpublic org.objectweb.asm.FieldVisitor visitField(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.Object value)
visitField
in interface org.objectweb.asm.ClassVisitor
visitField
in class org.objectweb.asm.ClassAdapter
access
- The access modifiername
- The field namedesc
- The field descsignature
- The signaturevalue
- The field value
protected boolean hasSerialVersionUIDField(java.lang.String name, java.lang.String desc)
name
- The field namedesc
- The field descriptor
protected boolean implementsSerializable(java.lang.String[] interfaces)
interfaces
- The interfaaces to test
public ClassMetaInfo getClassMetaInfo()
public void setClassMetaInfo(ClassMetaInfo classMetaInfo)
classMetaInfo
- the new class meta info
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |