BodyStripper

private class BodyStripper(next: ClassVisitor) : ClassVisitor

ASM visitor that replaces every CONCRETE method's code with a 2-byte aconst_null; athrow stub, keeping the method's signature, exceptions and declaration annotations (code/type annotations go with the body). Wired as tiny-remapper's extraPreApplyVisitor so the whole pipeline (remap + write) processes stubs, not full bodies — the compiler reads signatures/constants/annotations, never bodies, for a classpath class. The resulting symbol jar is compile-only (never loaded/verified/run), so an under-sized maxLocals or a throwing constructor is harmless. Abstract/native methods (no Code attribute) pass through untouched.

Constructors

Link copied to clipboard
constructor(next: ClassVisitor)

Properties

Link copied to clipboard
protected val api: Int
Link copied to clipboard
protected var cv: ClassVisitor?
Link copied to clipboard
open val delegate: ClassVisitor?

Functions

Link copied to clipboard
open fun visit(version: Int, access: Int, name: String?, signature: String?, superName: String?, interfaces: Array<out String?>?)
Link copied to clipboard
open fun visitAnnotation(descriptor: String?, visible: Boolean): AnnotationVisitor?
Link copied to clipboard
open fun visitAttribute(attribute: Attribute?)
Link copied to clipboard
open fun visitEnd()
Link copied to clipboard
open fun visitField(access: Int, name: String?, descriptor: String?, signature: String?, value: Any?): FieldVisitor?
Link copied to clipboard
open fun visitInnerClass(name: String?, outerName: String?, innerName: String?, access: Int)
Link copied to clipboard
open override fun visitMethod(access: Int, name: String?, descriptor: String?, signature: String?, exceptions: Array<out String>?): MethodVisitor?
Link copied to clipboard
open fun visitModule(name: String?, access: Int, version: String?): ModuleVisitor?
Link copied to clipboard
open fun visitNestHost(nestHost: String?)
Link copied to clipboard
open fun visitNestMember(nestMember: String?)
Link copied to clipboard
open fun visitOuterClass(owner: String?, name: String?, descriptor: String?)
Link copied to clipboard
open fun visitPermittedSubclass(permittedSubclass: String?)
Link copied to clipboard
open fun visitRecordComponent(name: String?, descriptor: String?, signature: String?): RecordComponentVisitor?
Link copied to clipboard
open fun visitSource(source: String?, debug: String?)
Link copied to clipboard
open fun visitTypeAnnotation(typeRef: Int, typePath: TypePath?, descriptor: String?, visible: Boolean): AnnotationVisitor?