| java.lang.Object org.ejb3unit.asm.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 static Method | getMethod(String method, boolean defaultPackage) 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", ...). Classes of the java.lang package can bespecified by their unqualified name; all other classes names mustbe fully qualified. a Method corresponding to the given Java methoddeclaration. throws: IllegalArgumentException - if method could not getparsed. |
getMethod | public static Method getMethod(String method, boolean defaultPackage) 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", ...). Classes of the java.lang package may bespecified by their unqualified name, depending on thedefaultPackage argument; all other classes names must be fullyqualified. Parameters: defaultPackage - true if unqualified class names belong to thedefault package, or false if they correspond to java.lang classes.For instance "Object" means "Object" if this option is true, or"java.lang.Object" otherwise. 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) | | |
|
|