Package javassist.bytecode
Class SignatureAttribute.MethodSignature
java.lang.Object
javassist.bytecode.SignatureAttribute.MethodSignature
- Enclosing class:
SignatureAttribute
Method type signature.
-
Constructor Summary
ConstructorDescriptionMethodSignature
(SignatureAttribute.TypeParameter[] tp, SignatureAttribute.Type[] params, SignatureAttribute.Type ret, SignatureAttribute.ObjectType[] ex) Constructs a method type signature. -
Method Summary
Modifier and TypeMethodDescriptionencode()
Returns the encoded string representing the method type signature.Returns the types of the exceptions that may be thrown.Returns the types of the formal parameters.Returns the type of the returned value.Returns the formal type parameters.toString()
Returns the string representation.
-
Constructor Details
-
MethodSignature
public MethodSignature(SignatureAttribute.TypeParameter[] tp, SignatureAttribute.Type[] params, SignatureAttribute.Type ret, SignatureAttribute.ObjectType[] ex) Constructs a method type signature. Any parameter can be null to representvoid
or nothing.- Parameters:
tp
- type parameters.params
- parameter types.ret
- a return type, or null if the return type isvoid
.ex
- exception types.
-
-
Method Details
-
getTypeParameters
Returns the formal type parameters.- Returns:
- a zero-length array if the type parameters are not specified.
-
getParameterTypes
Returns the types of the formal parameters.- Returns:
- a zero-length array if no formal parameter is taken.
-
getReturnType
Returns the type of the returned value. -
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
Returns the string representation. -
encode
Returns the encoded string representing the method type signature.
-