public abstract class JavassistClassBytecodeProcessor extends Object implements org.zeroturnaround.javarebel.ClassBytecodeProcessor
Any sub class is required to implement the
process(ClassPool, ClassLoader, CtClass) method.
| Constructor and Description |
|---|
JavassistClassBytecodeProcessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasDeclaredMethod(org.zeroturnaround.bundled.javassist.CtClass ctClass,
String methodName) |
byte[] |
process(ClassLoader cl,
String classname,
byte[] bytecode) |
abstract void |
process(org.zeroturnaround.bundled.javassist.ClassPool cp,
ClassLoader cl,
org.zeroturnaround.bundled.javassist.CtClass ctClass)
Modifies the class to be loaded.
|
public byte[] process(ClassLoader cl, String classname, byte[] bytecode)
process in interface org.zeroturnaround.javarebel.ClassBytecodeProcessorpublic abstract void process(org.zeroturnaround.bundled.javassist.ClassPool cp,
ClassLoader cl,
org.zeroturnaround.bundled.javassist.CtClass ctClass)
throws Exception
cp - the container of CtClass objects.cl - the class loader loading the given class.ctClass - the class representation.Exceptionpublic boolean hasDeclaredMethod(org.zeroturnaround.bundled.javassist.CtClass ctClass,
String methodName)
Copyright © 2015. All rights reserved.