MetaRewriter

private inner class MetaRewriter(sink: ClassVisitor, val remapper: FlatRemapper.ModuleRemapper) : ClassVisitor

Rewrites the @Metadata proto alongside the bytecode. Sits ABOVE the ClassRemapper, so the proto handed down is already in the runtime namespace: ASM remaps an annotation's Type values and nothing else, and d1/d2 are plain strings it would pass straight through — which is what left kotlin-reflect resolving mojmap classifiers no non-mojmap runtime has, degrading to ??? or throwing with the name nowhere in the message. remapper is the bytecode's, the only one that knows this module's classes.

Constructors

Link copied to clipboard
constructor(sink: ClassVisitor, remapper: FlatRemapper.ModuleRemapper)

Properties

Link copied to clipboard
protected val api: Int
Link copied to clipboard
protected var cv: ClassVisitor?
Link copied to clipboard
Link copied to clipboard
private var meta: MetaCapture?
Link copied to clipboard
private var owner: String
Link copied to clipboard

Functions

Link copied to clipboard
open override fun visit(v: Int, access: Int, name: String, sig: String?, superName: String?, ifaces: Array<String>?)
Link copied to clipboard
open override fun visitAnnotation(desc: String?, visible: Boolean): AnnotationVisitor?
Link copied to clipboard
open fun visitAttribute(attribute: Attribute?)
Link copied to clipboard
open override 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 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?