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 Summary
Modifier and TypeMethodDescriptioncreateEntry(@NotNull ParameterNode<S, ?> node) Creates a help entry from the given parameter node.static <S extends Source>
HelpEntryFactory<S>
-
Method Details
-
createEntry
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
-