org.objectweb.asm.tree
public class MethodNode extends Object
Modifier and Type | Field and Description |
---|---|
int |
access
The method's access flags (see
Constants ). |
Attribute |
attrs
The non standard attributes of the method.
|
Attribute |
codeAttrs
The non standard attributes of the method's code.
|
String |
desc
The method's descriptor (see
Type ). |
List |
exceptions
The internal names of the method's exception classes (see
getInternalName ). |
List |
instructions
The instructions 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.
|
List |
tryCatchBlocks
The try catch blocks of this method.
|
Constructor and Description |
---|
MethodNode(int access,
String name,
String desc,
String[] exceptions,
Attribute attrs)
Constructs a new
MethodNode object. |
public int access
Constants
). This
field also indicates if the method is synthetic and/or deprecated.public String name
public final List exceptions
getInternalName
). This list is a
list of String
objects.public Attribute attrs
public final List instructions
AbstractInsnNode
and Label
objects.public final List tryCatchBlocks
TryCatchBlockNode
objects.public int maxStack
public int maxLocals
public final List localVariables
LocalVariableNode
objects.public final List lineNumbers
LineNumberNode
objects.public Attribute codeAttrs
public MethodNode(int access, String name, String desc, String[] exceptions, Attribute attrs)
MethodNode
object.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.public void accept(ClassVisitor cv)
cv
- a class visitor.