getReturnType

Returns the Java type corresponding to the return type of the given
method.

参数:

method - a method.

返回:

the Java type corresponding to the return type of the given
method.

getArgumentsAndReturnSizes

public static int getArgumentsAndReturnSizes(java.lang.String desc)

Computes the size of the arguments and of the return value of a method.

参数:

desc - the descriptor of a method.

返回:

the size of the arguments of the method (plus one for the
implicit this argument), argSize, and the size of its return
value, retSize, packed into a single int i =
(argSize << 2) | retSize (argSize is therefore equal
to i >> 2, and retSize to i & 0x03).

getElementType

Returns the type of the elements of this array type. This method should
only be used for an array type.

返回:

Returns the type of the elements of this array type.

getClassName

public java.lang.String getClassName()

Returns the name of the class corresponding to this type.

返回:

the fully qualified name of the class corresponding to this type.

getInternalName

public java.lang.String getInternalName()

Returns the internal name of the class corresponding to this object or
array type. The internal name of a class is its fully qualified name (as
returned by Class.getName(), where '.' are replaced by '/'. This method
should only be used for an object or array type.