org.objectweb.asm.tree
public class MethodNode extends MemberNode implements MethodVisitor
Field Summary | |
---|---|
int | access
The method's access flags (see Opcodes). |
Object | annotationDefault
The default value of this annotation interface method. |
String | desc
The method's descriptor (see Type). |
List | exceptions
The internal names of the method's exception classes (see
getInternalName ). |
InsnList | instructions
The instructions of this method. |
List[] | invisibleParameterAnnotations
The runtime invisible parameter annotations 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()
Constructs an unitialized MethodNode. | |
MethodNode(int access, String name, String desc, String signature, String[] exceptions)
Constructs a new 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.
|
protected LabelNode | getLabelNode(Label l)
Returns the LabelNode corresponding to the given Label. |
AnnotationVisitor | visitAnnotationDefault() |
void | visitCode() |
void | visitFieldInsn(int opcode, String owner, String name, String desc) |
void | visitFrame(int type, int nLocal, Object[] local, int nStack, Object[] stack) |
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 type) |
void | visitVarInsn(int opcode, int var) |
getInternalName
). This list is a list of
String objects.UNKNOWN: org.objectweb.asm.tree.AbstractInsnNode instructions
UNKNOWN: org.objectweb.asm.tree.AnnotationNode visible parameters
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 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. exceptions the internal names of the method's exception classes
(see getInternalName
). May be
null.
Parameters: cv a class visitor.
Parameters: mv a method visitor.
Parameters: l a Label.
Returns: the LabelNode corresponding to l.