Module org.refcodes.cli
Package org.refcodes.cli
Interface ArgsProcessorBuilder<B extends ArgsProcessorBuilder<B>>
- Type Parameters:
B
- The type of the builder to be returned for chaining of operations.
- All Superinterfaces:
ArgsSyntaxAccessor.ArgsSyntaxBuilder<B>
,ArgumentEscapeCodeAccessor.ArgumentEscapeCodeBuilder<B>
,BannerBorderEscapeCodeAccessor.BannerBorderEscapeCodeBuilder<B>
,BannerEscapeCodeAccessor.BannerEscapeCodeBuilder<B>
,BannerFontAccessor.BannerFontBuilder<B>
,BannerFontPaletteAccessor.BannerFontPaletteBuilder<B>
,CommandEscapeCodeAccessor.CommandEscapeCodeBuilder<B>
,org.refcodes.mixin.ConsoleWidthAccessor.ConsoleWidthBuilder<B>
,CopyrightAccessor.CopyrightBuilder<B>
,org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<B>
,DescriptionEscapeCodeAccessor.DescriptionEscapeCodeBuilder<B>
,org.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusBuilder<B>
,ExamplesAccessor.ExamplesBuilder<B>
,LicenseAccessor.LicenseBuilder<B>
,org.refcodes.mixin.LineBreakAccessor.LineBreakBuilder<B>
,LineSeparatorEscapeCodeAccessor.LineSeparatorEscapeCodeBuilder<B>
,LongOptionPrefixAccessor.LongOptionPrefixBuilder<B>
,org.refcodes.mixin.MaxConsoleWidthAccessor.MaxConsoleWidthBuilder<B>
,org.refcodes.mixin.NameAccessor.NameBuilder<B>
,OptionEscapeCodeAccessor.OptionEscapeCodeBuilder<B>
,org.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeBuilder<B>
,ShortOptionPrefixAccessor.ShortOptionPrefixBuilder<B>
,SyntaxMetricsAccessor.SyntaxMetricsBuilder<B>
,org.refcodes.textual.TextBoxGridAccessor.TextBoxGridBuilder<B>
,org.refcodes.mixin.TitleAccessor.TitleBuilder<B>
- All Known Subinterfaces:
ParseArgs
- All Known Implementing Classes:
ArgsParser
public interface ArgsProcessorBuilder<B extends ArgsProcessorBuilder<B>>
extends org.refcodes.mixin.LineBreakAccessor.LineBreakBuilder<B>, LineSeparatorEscapeCodeAccessor.LineSeparatorEscapeCodeBuilder<B>, DescriptionEscapeCodeAccessor.DescriptionEscapeCodeBuilder<B>, LicenseAccessor.LicenseBuilder<B>, CopyrightAccessor.CopyrightBuilder<B>, org.refcodes.mixin.ConsoleWidthAccessor.ConsoleWidthBuilder<B>, org.refcodes.mixin.MaxConsoleWidthAccessor.MaxConsoleWidthBuilder<B>, BannerFontPaletteAccessor.BannerFontPaletteBuilder<B>, BannerFontAccessor.BannerFontBuilder<B>, CommandEscapeCodeAccessor.CommandEscapeCodeBuilder<B>, BannerEscapeCodeAccessor.BannerEscapeCodeBuilder<B>, BannerBorderEscapeCodeAccessor.BannerBorderEscapeCodeBuilder<B>, ExamplesAccessor.ExamplesBuilder<B>, org.refcodes.mixin.TitleAccessor.TitleBuilder<B>, org.refcodes.mixin.NameAccessor.NameBuilder<B>, org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<B>, org.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusBuilder<B>, org.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeBuilder<B>, OptionEscapeCodeAccessor.OptionEscapeCodeBuilder<B>, ArgumentEscapeCodeAccessor.ArgumentEscapeCodeBuilder<B>, SyntaxMetricsAccessor.SyntaxMetricsBuilder<B>, ShortOptionPrefixAccessor.ShortOptionPrefixBuilder<B>, LongOptionPrefixAccessor.LongOptionPrefixBuilder<B>, org.refcodes.textual.TextBoxGridAccessor.TextBoxGridBuilder<B>, ArgsSyntaxAccessor.ArgsSyntaxBuilder<B>
The
ArgsProcessorBuilder
provides common minimum builder
functionality required by to build an argument processing instance.-
Method Summary
Modifier and TypeMethodDescriptionwithAddExample
(String aDescription, Operand<?>... aOperands) Builder method adding an application'sExample
element.withAddExample
(Example aExamples) Builder method adding an application'sExample
element.withErrorOut
(PrintStream aErrorOut) Set the error outPrintStream
and make other adjustments with the result (with regards to the Builder-Pattern).withSeparatorLnChar
(char aSeparatorLnChar) Builder method adding an separator line char.withStandardOut
(PrintStream aStandardOut) Set the standard outPrintStream
and make other adjustments with the result (with regards to the Builder-Pattern).Methods inherited from interface org.refcodes.cli.ArgsSyntaxAccessor.ArgsSyntaxBuilder
withArgsSyntax
Methods inherited from interface org.refcodes.cli.ArgumentEscapeCodeAccessor.ArgumentEscapeCodeBuilder
withArgumentEscapeCode
Methods inherited from interface org.refcodes.cli.BannerBorderEscapeCodeAccessor.BannerBorderEscapeCodeBuilder
withBannerBorderEscapeCode
Methods inherited from interface org.refcodes.cli.BannerEscapeCodeAccessor.BannerEscapeCodeBuilder
withBannerEscapeCode
Methods inherited from interface org.refcodes.cli.BannerFontAccessor.BannerFontBuilder
withBannerFont
Methods inherited from interface org.refcodes.cli.BannerFontPaletteAccessor.BannerFontPaletteBuilder
withBannerFontPalette, withBannerFontPalette
Methods inherited from interface org.refcodes.cli.CommandEscapeCodeAccessor.CommandEscapeCodeBuilder
withCommandEscapeCode
Methods inherited from interface org.refcodes.mixin.ConsoleWidthAccessor.ConsoleWidthBuilder
withConsoleWidth
Methods inherited from interface org.refcodes.cli.CopyrightAccessor.CopyrightBuilder
withCopyright
Methods inherited from interface org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder
withDescription
Methods inherited from interface org.refcodes.cli.DescriptionEscapeCodeAccessor.DescriptionEscapeCodeBuilder
withDescriptionEscapeCode
Methods inherited from interface org.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusBuilder
withEscapeCodesEnabled
Methods inherited from interface org.refcodes.cli.ExamplesAccessor.ExamplesBuilder
withExamples, withExamples
Methods inherited from interface org.refcodes.cli.LicenseAccessor.LicenseBuilder
withLicense
Methods inherited from interface org.refcodes.mixin.LineBreakAccessor.LineBreakBuilder
withLineBreak
Methods inherited from interface org.refcodes.cli.LineSeparatorEscapeCodeAccessor.LineSeparatorEscapeCodeBuilder
withLineSeparatorEscapeCode
Methods inherited from interface org.refcodes.cli.LongOptionPrefixAccessor.LongOptionPrefixBuilder
withLongOptionPrefix
Methods inherited from interface org.refcodes.mixin.MaxConsoleWidthAccessor.MaxConsoleWidthBuilder
withMaxConsoleWidth
Methods inherited from interface org.refcodes.mixin.NameAccessor.NameBuilder
withName
Methods inherited from interface org.refcodes.cli.OptionEscapeCodeAccessor.OptionEscapeCodeBuilder
withOptionEscapeCode
Methods inherited from interface org.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeBuilder
withResetEscapeCode
Methods inherited from interface org.refcodes.cli.ShortOptionPrefixAccessor.ShortOptionPrefixBuilder
withShortOptionPrefix
Methods inherited from interface org.refcodes.cli.SyntaxMetricsAccessor.SyntaxMetricsBuilder
withSyntaxMetrics, withSyntaxMetrics
Methods inherited from interface org.refcodes.textual.TextBoxGridAccessor.TextBoxGridBuilder
withTextBoxGrid, withTextBoxGrid
Methods inherited from interface org.refcodes.mixin.TitleAccessor.TitleBuilder
withTitle
-
Method Details
-
withAddExample
Builder method adding an application'sExample
element.- Parameters:
aExamples
- The application'sExample
element to be added.- Returns:
- This builder as of the builder pattern.
-
withAddExample
Builder method adding an application'sExample
element.- Parameters:
aDescription
- The example's description.aOperands
- The command line arguments required by the example.- Returns:
- This builder as of the builder pattern.
-
withErrorOut
Set the error outPrintStream
and make other adjustments with the result (with regards to the Builder-Pattern).- Parameters:
aErrorOut
- The error outPrintStream
to set.- Returns:
- This instance with regard to the builder pattern.
-
withSeparatorLnChar
Builder method adding an separator line char.- Parameters:
aSeparatorLnChar
- THe according separator line char to use.- Returns:
- This builder as of the builder pattern.
-
withStandardOut
Set the standard outPrintStream
and make other adjustments with the result (with regards to the Builder-Pattern).- Parameters:
aStandardOut
- The standard outPrintStream
to set.- Returns:
- This instance with regard to the builder pattern.
-