Interface ClassMethodDesc

All Superinterfaces:
MemberDesc, MethodDesc, MethodTyped, Typed

public sealed interface ClassMethodDesc extends MethodDesc
A descriptor for a method on a class.
  • Method Details

    • of

      static ClassMethodDesc of(ClassDesc owner, String name, MethodTypeDesc type)
      Create a new class method descriptor.
      Parameters:
      owner - the class 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 class method descriptor (not null)
    • of

      static ClassMethodDesc of(ClassDesc owner, String name, MethodType type)
      Create a new class method descriptor.
      Parameters:
      owner - the class 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 class method descriptor (not null)
    • of

      static ClassMethodDesc of(ClassDesc owner, String name, Class<?> returnType, Class<?>... paramTypes)
      Create a new class method descriptor.
      Parameters:
      owner - the class 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 class method descriptor (not null)
    • of

      static ClassMethodDesc of(ClassDesc owner, String name, Class<?> returnType, List<Class<?>> paramTypes)
      Construct a new class method descriptor.
      Parameters:
      owner - the class 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 class method descriptor (not null)
    • of

      static ClassMethodDesc of(ClassDesc owner, String name, ClassDesc returnType, ClassDesc... paramTypes)
      Create a new class method descriptor.
      Parameters:
      owner - the class 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 class method descriptor (not null)
    • of

      static ClassMethodDesc of(ClassDesc owner, String name, ClassDesc returnType, List<ClassDesc> paramTypes)
      Construct a new class method descriptor.
      Parameters:
      owner - the class 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 class method descriptor (not null)