类 Method
java.lang.Object
org.beetl.ow2.asm.commons.Method
A named method descriptor.
- 作者:
- Juozas Baliuka, Chris Nokleberg, Eric Bruneton
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanType[]Returns the argument types of the method described by this object.Returns the descriptor of the method described by this object.static MethodgetMethod(Constructor<?> c) Creates a newMethod.static MethodCreates a newMethod.static MethodReturns aMethodcorresponding to the given Java method declaration.static MethodReturns aMethodcorresponding to the given Java method declaration.getName()Returns the className of the method described by this object.Returns the return type of the method described by this object.inthashCode()toString()
-
构造器详细资料
-
方法详细资料
-
getMethod
Creates a newMethod.- 参数:
m- a java.lang.reflect method descriptor- 返回:
- a
Methodcorresponding to the given Java method declaration.
-
getMethod
Creates a newMethod.- 参数:
c- a java.lang.reflect constructor descriptor- 返回:
- a
Methodcorresponding to the given Java constructor declaration.
-
getMethod
Returns aMethodcorresponding to the given Java method declaration.- 参数:
method- a Java method declaration, without argument names, of the form "returnType className (argumentType1, ... argumentTypeN)", where the types are in plain Java (e.g. "int", "float", "java.util.List", ...). Classes of the java.lang package can be specified by their unqualified className; all other classes names must be fully qualified.- 返回:
- a
Methodcorresponding to the given Java method declaration. - 抛出:
IllegalArgumentException- ifmethodcould not get parsed.
-
getMethod
public static Method getMethod(String method, boolean defaultPackage) throws IllegalArgumentException Returns aMethodcorresponding to the given Java method declaration.- 参数:
method- a Java method declaration, without argument names, of the form "returnType className (argumentType1, ... argumentTypeN)", where the types are in plain Java (e.g. "int", "float", "java.util.List", ...). Classes of the java.lang package may be specified by their unqualified className, depending on the defaultPackage argument; all other classes names must be fully qualified.defaultPackage- true if unqualified class names belong to the default 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
Methodcorresponding to the given Java method declaration. - 抛出:
IllegalArgumentException- ifmethodcould not get parsed.
-
getName
Returns the className of the method described by this object.- 返回:
- the className of the method described by this object.
-
getDescriptor
Returns the descriptor of the method described by this object.- 返回:
- the descriptor of the method described by this object.
-
getReturnType
Returns the return type of the method described by this object.- 返回:
- the return type of the method described by this object.
-
getArgumentTypes
Returns the argument types of the method described by this object.- 返回:
- the argument types of the method described by this object.
-
toString
-
equals
-
hashCode
public int hashCode()
-