Class RelatedCommandsFactory
- java.lang.Object
-
- com.github.rvesse.airline.examples.userguide.help.sections.custom.RelatedCommandsFactory
-
- All Implemented Interfaces:
HelpSectionFactory
public class RelatedCommandsFactory extends java.lang.Object implements HelpSectionFactory
-
-
Constructor Summary
Constructors Constructor Description RelatedCommandsFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HelpSection
createSection(java.lang.annotation.Annotation annotation)
Tries to create a section from the given annotationjava.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>>
supportedAnnotations()
Gets a list of the supported annotations
-
-
-
Method Detail
-
createSection
public HelpSection createSection(java.lang.annotation.Annotation annotation)
Description copied from interface:HelpSectionFactory
Tries to create a section from the given annotation- Specified by:
createSection
in interfaceHelpSectionFactory
- Parameters:
annotation
- Annotation- Returns:
- Help section or
null
if the annotation is not supported
-
supportedAnnotations
public java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> supportedAnnotations()
Description copied from interface:HelpSectionFactory
Gets a list of the supported annotations- Specified by:
supportedAnnotations
in interfaceHelpSectionFactory
- Returns:
- Supported annotations
-
-