Interface ParamCreator

All Superinterfaces:
AnnotatableCreator, GenericTyped, ModifiableCreator, SimpleTyped, Typed

public sealed interface ParamCreator extends ModifiableCreator, GenericTyped
A creator interface for parameters.
  • Method Details

    • setType

      void setType(GenericType type)
      Change the type of this parameter.
      Parameters:
      type - the new generic type (must not be null)
      Throws:
      IllegalArgumentException - if the new type is different from the established type
    • setType

      void setType(ClassDesc type)
      Change the type of this parameter.
      Parameters:
      type - the descriptor of the new type (must not be null)
      Throws:
      IllegalArgumentException - if the new type is different from the established type
    • type

      ClassDesc type()
      Returns the type of this parameter (not null).
      Specified by:
      type in interface SimpleTyped
      Specified by:
      type in interface Typed
      Returns:
      the type of this parameter (not null)
    • setType

      default void setType(Class<?> type)
      Change the type of this parameter.
      Parameters:
      type - the new type (must not be null)
    • mandated

      default void mandated()
      Add the "mandated" modifier flag to this creator.