booster / com.didiglobal.booster.transform.asm / AsmTransformer

AsmTransformer

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

Represents bytecode transformer using ASM

Author
johnsonlee

Constructors

<init>

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

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