javassist.bytecode
Class SignatureAttribute.MethodSignature

java.lang.Object
  extended by javassist.bytecode.SignatureAttribute.MethodSignature
Enclosing class:
SignatureAttribute

public static class SignatureAttribute.MethodSignature
extends java.lang.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.Type getReturnType()
          Returns the type of the returned value.
 SignatureAttribute.TypeParameter[] getTypeParameters()
          Returns the formal type parameters.
 java.lang.String toString()
          Returns the string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getTypeParameters

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

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

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.


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.

toString

public java.lang.String toString()
Returns the string representation.

Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.