org.apache.bcel.classfile
public final class Method extends FieldOrMethod
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) |
boolean | equals(Object obj)
Return value as defined by given BCELComparator strategy.
|
Type[] | getArgumentTypes() |
Code | getCode() |
static BCELComparator | getComparator() |
ExceptionTable | getExceptionTable() |
LineNumberTable | getLineNumberTable() |
LocalVariableTable | getLocalVariableTable() |
Type | getReturnType() |
int | hashCode()
Return value as defined by given BCELComparator strategy.
|
static void | setComparator(BCELComparator comparator) |
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
See Also: java.lang.Object#equals(java.lang.Object)
Returns: array of method argument types
Returns: Code attribute of method, if any
Returns: Comparison strategy object
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
See Also: java.lang.Object#hashCode()
Parameters: comparator Comparison strategy object
Returns: String representation of the method.