| java.lang.Object org.objectweb.asm.jip.commons.Method
Method | public class Method (Code) | | A named method descriptor.
author: Juozas Baliuka author: Chris Nokleberg author: Eric Bruneton |
Method Summary | |
public boolean | equals(Object o) | public Type[] | getArgumentTypes() Returns the argument types of the method described by this object. | public String | getDescriptor() Returns the descriptor of the method described by this object. | public static Method | getMethod(String method) Returns a
Method corresponding to the given Java method
declaration.
Parameters: method - a Java method declaration, without argument names, of theform "returnType name (argumentType1, ... | public String | getName() Returns the name of the method described by this object. | public Type | getReturnType() Returns the return type of the method described by this object. | public int | hashCode() | public String | toString() |
Method | public Method(String name, String desc)(Code) | | Creates a new
Method .
Parameters: name - the method's name. Parameters: desc - the method's descriptor. |
Method | public Method(String name, Type returnType, Type[] argumentTypes)(Code) | | Creates a new
Method .
Parameters: name - the method's name. Parameters: returnType - the method's return type. Parameters: argumentTypes - the method's argument types. |
getArgumentTypes | public Type[] getArgumentTypes()(Code) | | Returns the argument types of the method described by this object.
the argument types of the method described by this object. |
getDescriptor | public String getDescriptor()(Code) | | Returns the descriptor of the method described by this object.
the descriptor of the method described by this object. |
getMethod | public static Method getMethod(String method) throws IllegalArgumentException(Code) | | Returns a
Method corresponding to the given Java method
declaration.
Parameters: method - a Java method declaration, without argument names, of theform "returnType name (argumentType1, ... argumentTypeN)", wherethe types are in plain Java (e.g. "int", "float","java.util.List", ...). a Method corresponding to the given Java methoddeclaration. throws: IllegalArgumentException - if method could not getparsed. |
getName | public String getName()(Code) | | Returns the name of the method described by this object.
the name of the method described by this object. |
getReturnType | public Type getReturnType()(Code) | | Returns the return type of the method described by this object.
the return type of the method described by this object. |
hashCode | public int hashCode()(Code) | | |
|
|