public static class SignatureAttribute.MethodSignature
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) SignatureAttribute.ObjectType[] |
exceptions |
(package private) SignatureAttribute.Type[] |
params |
(package private) SignatureAttribute.Type |
retType |
(package private) SignatureAttribute.TypeParameter[] |
typeParams |
Constructor and Description |
---|
MethodSignature(SignatureAttribute.TypeParameter[] tp,
SignatureAttribute.Type[] params,
SignatureAttribute.Type ret,
SignatureAttribute.ObjectType[] ex)
Constructs a method type signature.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
encode()
Returns the encoded string representing the method type signature.
|
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.
|
SignatureAttribute.TypeParameter[] typeParams
SignatureAttribute.Type[] params
SignatureAttribute.Type retType
SignatureAttribute.ObjectType[] exceptions
public MethodSignature(SignatureAttribute.TypeParameter[] tp, SignatureAttribute.Type[] params, SignatureAttribute.Type ret, SignatureAttribute.ObjectType[] ex)
void
or nothing.tp
- type parameters.params
- parameter types.ret
- a return type, or null if the return type is void
.ex
- exception types.public SignatureAttribute.TypeParameter[] getTypeParameters()
public SignatureAttribute.Type[] getParameterTypes()
public SignatureAttribute.Type getReturnType()
public SignatureAttribute.ObjectType[] getExceptionTypes()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String encode()