public static class MethodDescription.SignatureToken
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name
The internal name of the represented method.
|
private java.util.List<? extends TypeDescription> |
parameterTypes
The represented method's raw parameter types.
|
private TypeDescription |
returnType
The represented method's raw return type.
|
| Constructor and Description |
|---|
SignatureToken(java.lang.String name,
TypeDescription returnType,
java.util.List<? extends TypeDescription> parameterTypes)
Creates a new type token.
|
| Modifier and Type | Method and Description |
|---|---|
MethodDescription.TypeToken |
asTypeToken()
Returns this signature token as a type token.
|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getName()
Returns the internal name of the represented method.
|
java.util.List<TypeDescription> |
getParameterTypes()
Returns this token's parameter types.
|
TypeDescription |
getReturnType()
Returns this token's return type.
|
int |
hashCode() |
java.lang.String |
toString() |
private final java.lang.String name
private final TypeDescription returnType
private final java.util.List<? extends TypeDescription> parameterTypes
public SignatureToken(java.lang.String name,
TypeDescription returnType,
java.util.List<? extends TypeDescription> parameterTypes)
name - The internal name of the represented method.returnType - The represented method's raw return type.parameterTypes - The represented method's raw parameter types.public java.lang.String getName()
public TypeDescription getReturnType()
public java.util.List<TypeDescription> getParameterTypes()
public MethodDescription.TypeToken asTypeToken()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object