org.objectweb.asm.tree
public class MethodNode extends MemberNode implements MethodVisitor
Field Summary | |
---|---|
int | access
The method's access flags (see {@link Opcodes}). |
Object | annotationDefault
The default value of this annotation interface method. |
String | desc
The method's descriptor (see {@link Type}). |
List | exceptions
The internal names of the method's exception classes (see
{@link Type#getInternalName() getInternalName}). |
List | instructions
The instructions of this method. |
List[] | invisibleParameterAnnotations
The runtime invisible parameter annotations of this method. |
List | lineNumbers
The line numbers of this method. |
List | localVariables
The local variables of this method. |
int | maxLocals
The maximum number of local variables of this method. |
int | maxStack
The maximum stack size of this method. |
String | name
The method's name. |
String | signature
The method's signature. |
List | tryCatchBlocks
The try catch blocks of this method. |
List[] | visibleParameterAnnotations
The runtime visible parameter annotations of this method. |
Constructor Summary | |
---|---|
MethodNode(int access, String name, String desc, String signature, String[] exceptions)
Constructs a new {@link MethodNode}.
|
Method Summary | |
---|---|
void | accept(ClassVisitor cv)
Makes the given class visitor visit this method.
|
void | accept(MethodVisitor mv)
Makes the given method visitor visit this method.
|
AnnotationVisitor | visitAnnotationDefault() |
void | visitCode() |
void | visitFieldInsn(int opcode, String owner, String name, String desc) |
void | visitIincInsn(int var, int increment) |
void | visitInsn(int opcode) |
void | visitIntInsn(int opcode, int operand) |
void | visitJumpInsn(int opcode, Label label) |
void | visitLabel(Label label) |
void | visitLdcInsn(Object cst) |
void | visitLineNumber(int line, Label start) |
void | visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) |
void | visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) |
void | visitMaxs(int maxStack, int maxLocals) |
void | visitMethodInsn(int opcode, String owner, String name, String desc) |
void | visitMultiANewArrayInsn(String desc, int dims) |
AnnotationVisitor | visitParameterAnnotation(int parameter, String desc, boolean visible) |
void | visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) |
void | visitTryCatchBlock(Label start, Label end, Label handler, String type) |
void | visitTypeInsn(int opcode, String desc) |
void | visitVarInsn(int opcode, int var) |
UNKNOWN: org.objectweb.asm.tree.AbstractInsnNode instructions
UNKNOWN: org.objectweb.asm.tree.AnnotationNode visible parameters
UNKNOWN: org.objectweb.asm.tree.LineNumberNode
UNKNOWN: org.objectweb.asm.tree.LocalVariableNode
UNKNOWN: org.objectweb.asm.tree.TryCatchBlockNode
UNKNOWN: org.objectweb.asm.tree.AnnotationNode invisible parameters
Parameters: access the method's access flags (see {@link Opcodes}). This parameter also indicates if the method is synthetic and/or deprecated. name the method's name. desc the method's descriptor (see {@link Type}). signature the method's signature. May be null. exceptions the internal names of the method's exception classes (see {@link Type#getInternalName() getInternalName}). May be null.
Parameters: cv a class visitor.
Parameters: mv a method visitor.