booster / com.didiglobal.booster.transform.javassist / JavassistTransformer

JavassistTransformer

@AutoService([NormalClass(value=com/didiglobal/booster/transform/Transformer)]) class JavassistTransformer : Transformer

Represents bytecode transformer using Javassist

Author
johnsonlee

Constructors

<init>

JavassistTransformer()
JavassistTransformer(classLoader: ClassLoader = Thread.currentThread().contextClassLoader)
JavassistTransformer(classLoader: ClassLoader = Thread.currentThread().contextClassLoader, transformers: Iterable<ClassTransformer>)

Functions

onPostTransform

fun onPostTransform(context: TransformContext): Unit

onPreTransform

fun onPreTransform(context: TransformContext): Unit

transform

Returns the transformed bytecode

fun transform(context: TransformContext, bytecode: ByteArray): ByteArray