java.lang.Object
org.refcodes.cli.CliContext.Builder
- All Implemented Interfaces:
ArgumentEscapeCodeAccessor.ArgumentEscapeCodeBuilder<CliContext.Builder>
,OptionEscapeCodeAccessor.OptionEscapeCodeBuilder<CliContext.Builder>
,SyntaxMetricsAccessor.SyntaxMetricsBuilder<CliContext.Builder>
,org.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusBuilder<CliContext.Builder>
,org.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeBuilder<CliContext.Builder>
- Enclosing class:
- CliContext
public static final class CliContext.Builder
extends Object
implements SyntaxMetricsAccessor.SyntaxMetricsBuilder<CliContext.Builder>, ArgumentEscapeCodeAccessor.ArgumentEscapeCodeBuilder<CliContext.Builder>, OptionEscapeCodeAccessor.OptionEscapeCodeBuilder<CliContext.Builder>, org.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeBuilder<CliContext.Builder>, org.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusBuilder<CliContext.Builder>
Builder to build
SyntaxMetricsAccessor.SyntaxMetricsBuilder
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
CliContext.Builder
for fluently building aCliContext
instances.withArgumentEscapeCode
(String aArgumentEscapeCode) Sets the argument Escape-Code for the argument Escape-Code property.withEscapeCodesEnabled
(boolean isEscapeCodesEnabled) withOptionEscapeCode
(String aOptionEscapeCode) Sets the option Escape-Code for the option Escape-Code property.withResetEscapeCode
(String aResetEscapeCode) withSyntaxMetrics
(SyntaxMetrics aSyntaxMetrics) Sets theSyntaxMetrics
for theSyntaxMetrics
property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.cli.SyntaxMetricsAccessor.SyntaxMetricsBuilder
withSyntaxMetrics
-
Method Details
-
withSyntaxMetrics
Sets theSyntaxMetrics
for theSyntaxMetrics
property.- Specified by:
withSyntaxMetrics
in interfaceSyntaxMetricsAccessor.SyntaxMetricsBuilder<CliContext.Builder>
- Parameters:
aSyntaxMetrics
- TheSyntaxMetrics
to be stored by theSyntaxMetrics
property.- Returns:
- The builder for applying multiple build operations.
-
withArgumentEscapeCode
Sets the argument Escape-Code for the argument Escape-Code property.- Specified by:
withArgumentEscapeCode
in interfaceArgumentEscapeCodeAccessor.ArgumentEscapeCodeBuilder<CliContext.Builder>
- Parameters:
aArgumentEscapeCode
- The argument Escape-Code to be stored by the argument Escape-Code property.- Returns:
- The builder for applying multiple build operations.
-
withOptionEscapeCode
Sets the option Escape-Code for the option Escape-Code property.- Specified by:
withOptionEscapeCode
in interfaceOptionEscapeCodeAccessor.OptionEscapeCodeBuilder<CliContext.Builder>
- Parameters:
aOptionEscapeCode
- The option Escape-Code to be stored by the option Escape-Code property.- Returns:
- The builder for applying multiple build operations.
-
withResetEscapeCode
- Specified by:
withResetEscapeCode
in interfaceorg.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeBuilder<CliContext.Builder>
-
withEscapeCodesEnabled
- Specified by:
withEscapeCodesEnabled
in interfaceorg.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusBuilder<CliContext.Builder>
-
build
CliContext.Builder
for fluently building aCliContext
instances.- Returns:
- The according constructed
CliContext
instance.
-