From f24813e7ec2101c5c1de1eed47b4c8c7cad0ca0a Mon Sep 17 00:00:00 2001 From: tianxiangyu <96164429+FlyJingFish@users.noreply.github.com> Date: Mon, 22 Apr 2024 17:07:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=93=E5=8C=85=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E8=AD=A6=E5=91=8A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scanner_visitor/WovenIntoCode.kt | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/android-aop-plugin/src/main/kotlin/com/flyjingfish/android_aop_plugin/scanner_visitor/WovenIntoCode.kt b/android-aop-plugin/src/main/kotlin/com/flyjingfish/android_aop_plugin/scanner_visitor/WovenIntoCode.kt index aaf5e10f..6c9e14a3 100644 --- a/android-aop-plugin/src/main/kotlin/com/flyjingfish/android_aop_plugin/scanner_visitor/WovenIntoCode.kt +++ b/android-aop-plugin/src/main/kotlin/com/flyjingfish/android_aop_plugin/scanner_visitor/WovenIntoCode.kt @@ -15,11 +15,16 @@ import javassist.bytecode.AnnotationsAttribute import javassist.bytecode.AttributeInfo import javassist.bytecode.annotation.Annotation import org.objectweb.asm.AnnotationVisitor +import org.objectweb.asm.Attribute import org.objectweb.asm.ClassReader import org.objectweb.asm.ClassVisitor import org.objectweb.asm.ClassWriter +import org.objectweb.asm.FieldVisitor import org.objectweb.asm.MethodVisitor +import org.objectweb.asm.ModuleVisitor import org.objectweb.asm.Opcodes +import org.objectweb.asm.RecordComponentVisitor +import org.objectweb.asm.TypePath import java.io.ByteArrayInputStream import java.io.InputStream @@ -72,6 +77,43 @@ object WovenIntoCode { } } } + + override fun visitModule( + name: String?, + access: Int, + version: String? + ): ModuleVisitor? { + return null + } + + override fun visitTypeAnnotation( + typeRef: Int, + typePath: TypePath?, + descriptor: String?, + visible: Boolean + ): AnnotationVisitor? { + return null + } + + + override fun visitRecordComponent( + name: String?, + descriptor: String?, + signature: String? + ): RecordComponentVisitor? { + return null + } + + override fun visitField( + access: Int, + name: String?, + descriptor: String?, + signature: String?, + value: Any? + ): FieldVisitor? { + return null + } + override fun visitMethod( access: Int, name: String,