Module com.github.rvesse.airline
Class CommonSectionsFactory
java.lang.Object
com.github.rvesse.airline.help.sections.factories.CommonSectionsFactory
- All Implemented Interfaces:
HelpSectionFactory
A help section factory that implements the common sections built into Airline
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSection
(Annotation annotation) Tries to create a section from the given annotationList
<Class<? extends Annotation>> Gets a list of the supported annotations
-
Field Details
-
SUPPORTED
-
-
Constructor Details
-
CommonSectionsFactory
public CommonSectionsFactory()
-
-
Method Details
-
createSection
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
Description copied from interface:HelpSectionFactory
Gets a list of the supported annotations- Specified by:
supportedAnnotations
in interfaceHelpSectionFactory
- Returns:
- Supported annotations
-