Class MethodDescription.SignatureToken

  • Enclosing interface:
    MethodDescription

    public static class MethodDescription.SignatureToken
    extends Object
    A token representing a method's name and raw return and parameter types.
    • Constructor Detail

      • SignatureToken

        public SignatureToken​(String name,
                              TypeDescription returnType,
                              List<? extends TypeDescription> parameterTypes)
        Creates a new type token.
        Parameters:
        name - The internal name of the represented method.
        returnType - The represented method's raw return type.
        parameterTypes - The represented method's raw parameter types.
    • Method Detail

      • getName

        public String getName()
        Returns the internal name of the represented method.
        Returns:
        The internal name of the represented method.
      • 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.
      • asTypeToken

        public MethodDescription.TypeToken asTypeToken()
        Returns this signature token as a type token.
        Returns:
        This signature token as a type token.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object