| java.lang.Object org.cojen.classfile.Descriptor org.cojen.classfile.MethodDesc
MethodDesc | public class MethodDesc extends Descriptor implements Serializable(Code) | | This class is used to build method descriptor strings as
defined in The Java Virtual Machine Specification, section 4.3.3.
MethodDesc instances are canonicalized and therefore "==" comparable.
author: Brian S O'Neill |
forArguments | public static MethodDesc forArguments(TypeDesc ret, TypeDesc[] params)(Code) | | Acquire a MethodDesc from a set of arguments.
Parameters: ret - return type of method; null implies void Parameters: params - parameters to method; null implies none |
getDescriptor | public String getDescriptor()(Code) | | Returns a method descriptor string, excluding generics.
|
getParameterCount | public int getParameterCount()(Code) | | |
getReturnType | public TypeDesc getReturnType()(Code) | | Returns the described return type, which is TypeDesc.VOID if void.
|
hashCode | public int hashCode()(Code) | | |
toMethodSignature | public String toMethodSignature(String name)(Code) | | Returns this in Java method signature syntax.
Parameters: name - method name |
toMethodSignature | public String toMethodSignature(String name, boolean varargs)(Code) | | Returns this in Java method signature syntax.
Parameters: name - method name Parameters: varargs - request that the last argument, if it is an array, tobe formatted in varargs syntax. |
|
|