public final class MethodVisitor extends EmptyClassVisitor
api, cv| 构造器和说明 |
|---|
MethodVisitor(Class declaringClass,
String methodName,
Class[] parameterTypes) |
| 限定符和类型 | 方法和说明 |
|---|---|
String[] |
getParamNames()
Returns method parameters once when method is parsed.
|
MethodVisitor |
visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
Visits a method of the class.
|
visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitModule, visitNestHostExperimental, visitNestMemberExperimental, visitOuterClass, visitSource, visitTypeAnnotationpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
ClassVisitorMethodVisitor
instance (or null) each time it is called, i.e., it should not return a previously
returned visitor.visitMethod 在类中 ClassVisitoraccess - the method's access flags (see Opcodes). This parameter also indicates if
the method is synthetic and/or deprecated.name - the method's name.desc - the method's descriptor (see Type).signature - the method's signature. May be null if the method parameters, return
type and exceptions do not use generic types.exceptions - the internal names of the method's exception classes (see Type.getInternalName()). May be null.public String[] getParamNames()
Copyright © 2022. All rights reserved.