Package net.bytebuddy.description.method
Class MethodDescription.TypeToken
- java.lang.Object
-
- net.bytebuddy.description.method.MethodDescription.TypeToken
-
- Enclosing interface:
- MethodDescription
public static class MethodDescription.TypeToken extends java.lang.ObjectA token representing a method's erased return and parameter types.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<? extends TypeDescription>parameterTypesThe represented method's raw parameter types.private TypeDescriptionreturnTypeThe represented method's raw return type.
-
Constructor Summary
Constructors Constructor Description TypeToken(TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes)Creates a new type token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.util.List<TypeDescription>getParameterTypes()Returns this token's parameter types.TypeDescriptiongetReturnType()Returns this token's return type.inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
returnType
private final TypeDescription returnType
The represented method's raw return type.
-
parameterTypes
private final java.util.List<? extends TypeDescription> parameterTypes
The represented method's raw parameter types.
-
-
Constructor Detail
-
TypeToken
public TypeToken(TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes)
Creates a new type token.- Parameters:
returnType- The represented method's raw return type.parameterTypes- The represented method's raw parameter types.
-
-
Method Detail
-
getReturnType
public TypeDescription getReturnType()
Returns this token's return type.- Returns:
- This token's return type.
-
getParameterTypes
public java.util.List<TypeDescription> getParameterTypes()
Returns this token's parameter types.- Returns:
- This token's parameter types.
-
hashCode
@Enhance("hashCode") public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(@MaybeNull java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-