public abstract class SerializableClassVisitor extends NamedClassVisitor
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CLASS_NOT_FOUND_EXCEPTION_INTERNAL_NAME |
protected Inspector |
inspector |
protected static String |
IO_EXCEPTION_INTERNAL_NAME |
protected static String |
OBJECT_INPUT_STREAM_NAME |
protected static String |
OBJECT_OUTPUT_STREAM_NAME |
protected static String |
READ_OBJECT_METHOD_DESC |
protected static String[] |
READ_OBJECT_METHOD_EXCEPTIONS |
protected static String |
READ_OBJECT_METHOD_NAME |
protected static String |
VOID_NAME |
protected static String |
WRITE_OBJECT_METHOD_DESC |
protected static String[] |
WRITE_OBJECT_METHOD_EXCEPTIONS |
protected static String |
WRITE_OBJECT_METHOD_NAME |
classInternalName, superClassInternalNameOrNull| Modifier | Constructor and Description |
|---|---|
protected |
SerializableClassVisitor(Inspector pInspector,
org.objectweb.asm.ClassVisitor pWriter) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Enhancer |
createInjectionMethodVisitor(org.objectweb.asm.MethodVisitor pWriter,
boolean pEnhanceMode,
DefaultStreamCallGenerator pDefaultStreamCallGenerator) |
protected abstract org.objectweb.asm.MethodVisitor |
createInjectionMethodWriter() |
protected abstract boolean |
isEnhancementNecessary() |
protected abstract boolean |
isInjectorMethod(int access,
String name,
String desc,
String[] exceptions) |
static boolean |
isReadObjectMethod(int access,
String name,
String desc,
String[] exceptions)
Determines whether the current method is the readObject method with
following signature:
|
static boolean |
isWriteObjectMethod(int access,
String name,
String desc,
String[] exceptions)
Determines whether the current method is the writeObject method with
following signature:
|
protected void |
pushByteConstant(org.objectweb.asm.MethodVisitor mv,
int idx) |
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(String desc,
boolean visible) |
void |
visitEnd() |
org.objectweb.asm.MethodVisitor |
visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
getClassName, getInternalClassName, toClassName, visitprotected static final String READ_OBJECT_METHOD_NAME
protected static final String WRITE_OBJECT_METHOD_NAME
protected static final String READ_OBJECT_METHOD_DESC
protected static final String WRITE_OBJECT_METHOD_DESC
protected static final String CLASS_NOT_FOUND_EXCEPTION_INTERNAL_NAME
protected static final String IO_EXCEPTION_INTERNAL_NAME
protected static final String[] READ_OBJECT_METHOD_EXCEPTIONS
protected static final String[] WRITE_OBJECT_METHOD_EXCEPTIONS
protected static final String OBJECT_INPUT_STREAM_NAME
protected static final String OBJECT_OUTPUT_STREAM_NAME
protected static final String VOID_NAME
protected Inspector inspector
protected SerializableClassVisitor(Inspector pInspector, org.objectweb.asm.ClassVisitor pWriter)
protected void pushByteConstant(org.objectweb.asm.MethodVisitor mv,
int idx)
public org.objectweb.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible)
visitAnnotation in class org.objectweb.asm.ClassVisitorprotected abstract Enhancer createInjectionMethodVisitor(org.objectweb.asm.MethodVisitor pWriter, boolean pEnhanceMode, DefaultStreamCallGenerator pDefaultStreamCallGenerator)
protected abstract boolean isEnhancementNecessary()
protected abstract boolean isInjectorMethod(int access,
String name,
String desc,
String[] exceptions)
public org.objectweb.asm.MethodVisitor visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
visitMethod in class org.objectweb.asm.ClassVisitorprotected abstract org.objectweb.asm.MethodVisitor createInjectionMethodWriter()
public final void visitEnd()
visitEnd in class org.objectweb.asm.ClassVisitorpublic static boolean isReadObjectMethod(int access,
String name,
String desc,
String[] exceptions)
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundExceptionSee
Serializable for further information.access - the method's access flags (see Opcodes). This
parameter also indicates if the method is synthetic and/or
deprecated.name - the method's name.desc - the method's descriptor (see Type).exceptions - the internal names of the method's exception classes (see
Type.getInternalName() ). May be null.true if the method specified is the readObject method as
described by Serializable, false otherwisepublic static boolean isWriteObjectMethod(int access,
String name,
String desc,
String[] exceptions)
private void writeObject(java.io.ObjectOutputStream out) throws IOExceptionSee
Serializable for further information.access - the method's access flags (see Opcodes). This
parameter also indicates if the method is synthetic and/or
deprecated.name - the method's name.desc - the method's descriptor (see Type).exceptions - the internal names of the method's exception classes (see
Type.getInternalName() ). May be null.true if the method specified is the writeObject method as
described by Serializable, false otherwiseCopyright © 2015–2016 SourcePond. All rights reserved.