Interface HelpEntryFactory<S extends Source>

Type Parameters:
S - the source type

public interface HelpEntryFactory<S extends Source>
Factory interface for creating HelpEntry instances from parameter nodes. Allows customization of how help entries are constructed from the command tree.
  • Method Details

    • createEntry

      HelpEntry<S> createEntry(@NotNull @NotNull ParameterNode<S,?> node)
      Creates a help entry from the given parameter node.
      Parameters:
      node - the parameter node to convert into a help entry
      Returns:
      a new help entry representing the node
      Throws:
      IllegalArgumentException - if the node cannot be converted to a help entry
    • defaultFactory

      static <S extends Source> HelpEntryFactory<S> defaultFactory()