All Superinterfaces:
AnnotatedElement, Member
All Known Implementing Classes:
MethodModelImpl

public interface MethodModel extends Member, AnnotatedElement
Model to represent a method declaration
  • Method Details

    • getDeclaringType

      ExtensibleType<?> getDeclaringType()
      Returns the class or interface model this method belongs to.
      Specified by:
      getDeclaringType in interface Member
      Returns:
      the class of this method
    • getSignature

      String getSignature()
      Returns the method signature.
      Returns:
      this method signature
    • getReturnType

      ParameterizedType getReturnType()
      Returns the method return type
      Returns:
      the method's return type
    • getArgumentTypes

      String[] getArgumentTypes()
      Returns the parameter types as string
      Returns:
      the parameter types
    • getParameters

      List<Parameter> getParameters()
      Returns the list of parameter
      Returns:
      the list of parameter
    • getParameter

      Parameter getParameter(int index)
      Return the parameter by index
      Parameters:
      index -
      Returns:
      the parameter by index