javassist.bytecode

Class SignatureAttribute.MethodSignature

public static class SignatureAttribute.MethodSignature extends Object

Method type signature.
Method Summary
SignatureAttribute.ObjectType[]getExceptionTypes()
Returns the types of the exceptions that may be thrown.
SignatureAttribute.Type[]getParameterTypes()
Returns the types of the formal parameters.
SignatureAttribute.TypegetReturnType()
Returns the type of the returned value.
SignatureAttribute.TypeParameter[]getTypeParameters()
Returns the formal type parameters.
StringtoString()
Returns the string representation.

Method Detail

getExceptionTypes

public SignatureAttribute.ObjectType[] getExceptionTypes()
Returns the types of the exceptions that may be thrown.

Returns: a zero-length array if exceptions are never thrown or the exception types are not parameterized types or type variables.

getParameterTypes

public SignatureAttribute.Type[] getParameterTypes()
Returns the types of the formal parameters.

Returns: a zero-length array if no formal parameter is taken.

getReturnType

public SignatureAttribute.Type getReturnType()
Returns the type of the returned value.

getTypeParameters

public SignatureAttribute.TypeParameter[] getTypeParameters()
Returns the formal type parameters.

Returns: a zero-length array if the type parameters are not specified.

toString

public String toString()
Returns the string representation.
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999-2006 Shigeru Chiba. All Rights Reserved.