
name.remal.org.objectweb.asm.tree.AbstractInsnNode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common Show documentation
Show all versions of common Show documentation
Java & Kotlin tools: common
The newest version!
package name.remal
import org.objectweb.asm.tree.AbstractInsnNode
fun AbstractInsnNode.getPrevious(predicate: (node: AbstractInsnNode) -> Boolean): AbstractInsnNode? {
var node = previous
while (null != node) {
if (predicate(node)) return node
node = node.previous
}
return null
}
fun AbstractInsnNode.getNext(predicate: (node: AbstractInsnNode) -> Boolean): AbstractInsnNode? {
var node = next
while (null != node) {
if (predicate(node)) return node
node = node.next
}
return null
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy