Class MethodDescription.TypeToken

java.lang.Object
net.bytebuddy.description.method.MethodDescription.TypeToken
Enclosing interface:
MethodDescription

public static class MethodDescription.TypeToken extends Object
A token representing a method's erased return and parameter types.
  • Field Details

    • returnType

      private final TypeDescription returnType
      The represented method's raw return type.
    • parameterTypes

      private final List<? extends TypeDescription> parameterTypes
      The represented method's raw parameter types.
  • Constructor Details

    • TypeToken

      public TypeToken(TypeDescription returnType, 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 Details

    • getReturnType

      public TypeDescription getReturnType()
      Returns this token's return type.
      Returns:
      This token's return type.
    • getParameterTypes

      public List<TypeDescription> getParameterTypes()
      Returns this token's parameter types.
      Returns:
      This token's parameter types.
    • hashCode

      @Enhance("hashCode") public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@MaybeNull Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object