Interface InterfaceMethodDesc

All Superinterfaces:
MemberDesc, MethodDesc, MethodTyped, Typed

public sealed interface InterfaceMethodDesc extends MethodDesc
A descriptor for a method on an interface.
  • Method Details

    • of

      static InterfaceMethodDesc of(ClassDesc owner, String name, MethodTypeDesc type)
      Create a new interface method descriptor.
      Parameters:
      owner - the interface which contains the method (must not be null)
      name - the method name (must not be null)
      type - the method type (must not be null)
      Returns:
      the interface method descriptor (not null)
    • of

      static InterfaceMethodDesc of(ClassDesc owner, String name, MethodType type)
      Create a new interface method descriptor.
      Parameters:
      owner - the interface which contains the method (must not be null)
      name - the method name (must not be null)
      type - the method type (must not be null)
      Returns:
      the interface method descriptor (not null)
    • of

      static InterfaceMethodDesc of(ClassDesc owner, String name, Class<?> returnType, Class<?>... paramTypes)
      Create a new interface method descriptor.
      Parameters:
      owner - the interface which contains the method (must not be null)
      name - the name of the method (must not be null)
      returnType - the class of the return type (must not be null)
      paramTypes - the classes of the parameter types (must not be null)
      Returns:
      the interface method descriptor (not null)
    • of

      static InterfaceMethodDesc of(ClassDesc owner, String name, Class<?> returnType, List<Class<?>> paramTypes)
      Construct a new interface method descriptor.
      Parameters:
      owner - the interface which contains the method (must not be null)
      name - the name of the method (must not be null)
      returnType - the class of the return type (must not be null)
      paramTypes - the classes of the parameter types (must not be null)
      Returns:
      the interface method descriptor (not null)
    • of

      static InterfaceMethodDesc of(ClassDesc owner, String name, ClassDesc returnType, ClassDesc... paramTypes)
      Create a new interface method descriptor.
      Parameters:
      owner - the interface which contains the method (must not be null)
      name - the name of the method (must not be null)
      returnType - the class of the return type (must not be null)
      paramTypes - the classes of the parameter types (must not be null)
      Returns:
      the interface method descriptor (not null)
    • of

      static InterfaceMethodDesc of(ClassDesc owner, String name, ClassDesc returnType, List<ClassDesc> paramTypes)
      Construct a new interface method descriptor.
      Parameters:
      owner - the interface which contains the method (must not be null)
      name - the name of the method (must not be null)
      returnType - the class of the return type (must not be null)
      paramTypes - the classes of the parameter types (must not be null)
      Returns:
      the interface method descriptor (not null)