org.apache.bcel.classfile
public final class Method extends FieldOrMethod
Version: $Id: Method.java 152843 2002-12-08 16:04:38Z mdahm $
Constructor Summary | |
---|---|
Method()
Empty constructor, all attributes have to be defined via `setXXX'
methods. | |
Method(Method c)
Initialize from another object. | |
Method(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool) |
Method Summary | |
---|---|
void | accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class. |
Method | copy(ConstantPool constant_pool) |
Type[] | getArgumentTypes() |
Code | getCode() |
ExceptionTable | getExceptionTable() |
LineNumberTable | getLineNumberTable() |
LocalVariableTable | getLocalVariableTable() |
Type | getReturnType() |
String | toString()
Return string representation close to declaration format,
`public static void main(String[] args) throws IOException', e.g.
|
Parameters: access_flags Access rights of method name_index Points to field name in constant pool signature_index Points to encoded signature attributes Collection of attributes constant_pool Array of constants
Parameters: v Visitor object
Returns: deep copy of this method
Returns: array of method argument types
Returns: Code attribute of method, if any
Returns: ExceptionTable attribute of method, if any, i.e., list all exceptions the method may throw not exception handlers!
Returns: LineNumberTable of code attribute if any, i.e. the call is forwarded to the Code atribute.
Returns: LocalVariableTable of code attribute if any, i.e. the call is forwarded to the Code atribute.
Returns: return type of method
Returns: String representation of the method.