booster / com.didiglobal.booster.transform.asm / org.objectweb.asm.tree.InsnList

Extensions for org.objectweb.asm.tree.InsnList

any

fun InsnList.any(predicate: (AbstractInsnNode) -> Boolean): Boolean

asIterable

fun InsnList.asIterable(): Iterable<Any?>

filter

fun InsnList.filter(predicate: (AbstractInsnNode) -> Boolean): <ERROR CLASS>

find

Find the first instruction node with the specified opcode

fun InsnList.find(opcode: Int): Any?

findAll

Find all of instruction nodes with the specified opcode

fun InsnList.findAll(vararg opcodes: Int): <ERROR CLASS>