Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated)
11g Release 1 (11.1.1)

B32476-04

oracle.toplink.libraries.asm.tree
Class MethodNode

java.lang.Object
  extended by oracle.toplink.libraries.asm.tree.MethodNode

public class MethodNode
extends java.lang.Object

A node that represents a method.


Field Summary
 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.
 java.lang.String desc
          The method's descriptor (see Type).
 java.util.List exceptions
          The internal names of the method's exception classes (see getInternalName).
 java.util.List instructions
          The instructions of this method.
 java.util.List lineNumbers
          The line numbers of this method.
 java.util.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.
 java.lang.String name
          The method's name.
 java.util.List tryCatchBlocks
          The try catch blocks of this method.
 
Constructor Summary
MethodNode(int access, java.lang.String name, java.lang.String desc, java.lang.String[] exceptions, Attribute attrs)
          Constructs a new MethodNode object.
 
Method Summary
 void accept(ClassVisitor cv)
          Makes the given class visitor visit this method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

access

public int access
Description copied from class: MethodNode
The method's access flags (see Constants). This field also indicates if the method is synthetic and/or deprecated.


name

public java.lang.String name
Description copied from class: MethodNode
The method's name.


desc

public java.lang.String desc
Description copied from class: MethodNode
The method's descriptor (see Type).


exceptions

public final java.util.List exceptions
Description copied from class: MethodNode
The internal names of the method's exception classes (see getInternalName). This list is a list of String objects.


attrs

public Attribute attrs
Description copied from class: MethodNode
The non standard attributes of the method.


instructions

public final java.util.List instructions
Description copied from class: MethodNode
The instructions of this method. This list is a list of AbstractInsnNode and Label objects.


tryCatchBlocks

public final java.util.List tryCatchBlocks
Description copied from class: MethodNode
The try catch blocks of this method. This list is a list of TryCatchBlockNode objects.


maxStack

public int maxStack
Description copied from class: MethodNode
The maximum stack size of this method.


maxLocals

public int maxLocals
Description copied from class: MethodNode
The maximum number of local variables of this method.


localVariables

public final java.util.List localVariables
Description copied from class: MethodNode
The local variables of this method. This list is a list of LocalVariableNode objects.


lineNumbers

public final java.util.List lineNumbers
Description copied from class: MethodNode
The line numbers of this method. This list is a list of LineNumberNode objects.


codeAttrs

public Attribute codeAttrs
Description copied from class: MethodNode
The non standard attributes of the method's code.

Constructor Detail

MethodNode

public MethodNode(int access,
                  java.lang.String name,
                  java.lang.String desc,
                  java.lang.String[] exceptions,
                  Attribute attrs)
Constructs a new MethodNode object.

Parameters:
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.
Method Detail

accept

public void accept(ClassVisitor cv)
Makes the given class visitor visit this method.

Parameters:
cv - a class visitor.

Copyright © 1998, 2012, Oracle. All Rights Reserved.