org.objectweb.asm.tree
Class MethodNode
A node that represents a method.
access
public int access
The method's access flags (see
Constants
). This
field also indicates if the method is synthetic and/or deprecated.
attrs
public Attribute attrs
The non standard attributes of the method.
codeAttrs
public Attribute codeAttrs
The non standard attributes of the method's code.
desc
public String desc
The method's descriptor (see
Type
).
exceptions
public final List exceptions
The internal names of the method's exception classes (see
getInternalName
). This list is a
list of
String
objects.
instructions
public final List instructions
lineNumbers
public final List lineNumbers
The line numbers of this method. This list is a list of
LineNumberNode
objects.
localVariables
public final List localVariables
The local variables of this method. This list is a list of
LocalVariableNode
objects.
maxLocals
public int maxLocals
The maximum number of local variables of this method.
maxStack
public int maxStack
The maximum stack size of this method.
name
public String name
The method's name.
tryCatchBlocks
public final List tryCatchBlocks
The try catch blocks of this method. This list is a list of
TryCatchBlockNode
objects.
MethodNode
public MethodNode(int access,
String name,
String desc,
String[] exceptions,
Attribute attrs)
access
- the method's access flags (see Constants
). This parameter also indicates if the
method is synthetic and/or deprecated.name
- the method's name.desc
- the method's descriptor (see Type
).exceptions
- the internal names of the method's exception
classes (see getInternalName
). May be null.attrs
- the non standard attributes of the method.
accept
public void accept(ClassVisitor cv)
Makes the given class visitor visit this method.