Skip navigation links
A C E F G H I L O P Q R S T U V W X _ 

A

AbstractCondition - Class in org.refcodes.console
The AbstractCondition is an abstract implementation of an Condition providing the boiler plate when implementing the Condition interface.
AbstractCondition(Syntaxable...) - Constructor for class org.refcodes.console.AbstractCondition
Instantiates a new abstract condition.
AbstractOperand<T> - Class in org.refcodes.console
The AbstractOperand is an abstract implementation of an Operand providing the boiler plate when implementing the Operand interface.
AbstractOperand(Class<T>, String, String) - Constructor for class org.refcodes.console.AbstractOperand
Constructs a Operand with the given arguments.
AbstractOperand(Relation<String, T>, Class<T>) - Constructor for class org.refcodes.console.AbstractOperand
Instantiates a new operand.
AbstractOption<T> - Class in org.refcodes.console
The AbstractOption is an abstract implementation of an Option providing the boiler plate when implementing the Option interface.
AbstractOption(String, String, Class<T>, String, String) - Constructor for class org.refcodes.console.AbstractOption
Constructs a Option with the given arguments.
AbstractOption(String, String, Class<T>, String) - Constructor for class org.refcodes.console.AbstractOption
Constructs a Option with the given arguments.
AbstractOption(Relation<String, T>, Class<T>) - Constructor for class org.refcodes.console.AbstractOption
Instantiates a new option.
addChild(Syntaxable) - Method in class org.refcodes.console.AbstractCondition
Adds the child.
ALIAS - Static variable in class org.refcodes.console.ForceSwitchImpl
 
ALIAS - Static variable in class org.refcodes.console.HelpSwitchImpl
 
ALIAS - Static variable in class org.refcodes.console.QuietSwitchImpl
 
ALIAS - Static variable in class org.refcodes.console.VerboseSwitchImpl
 
AmbiguousArgsException - Exception in org.refcodes.console
Thrown in case at least one command line argument is ambiguous regarding expected args vs. provided args.
AmbiguousArgsException(String[], String, String) - Constructor for exception org.refcodes.console.AmbiguousArgsException
Instantiates a new ambiguous args exception.
AmbiguousArgsException(String[], String, Throwable, String) - Constructor for exception org.refcodes.console.AmbiguousArgsException
Instantiates a new ambiguous args exception.
AmbiguousArgsException(String[], String, Throwable) - Constructor for exception org.refcodes.console.AmbiguousArgsException
Instantiates a new ambiguous args exception.
AmbiguousArgsException(String[], String) - Constructor for exception org.refcodes.console.AmbiguousArgsException
Instantiates a new ambiguous args exception.
AmbiguousArgsException(String[], Throwable, String) - Constructor for exception org.refcodes.console.AmbiguousArgsException
Instantiates a new ambiguous args exception.
AmbiguousArgsException(String[], Throwable) - Constructor for exception org.refcodes.console.AmbiguousArgsException
Instantiates a new ambiguous args exception.
and(Syntaxable...) - Static method in class org.refcodes.console.ConsoleSugar
And.
AndConditionImpl - Class in org.refcodes.console
An AndConditionImpl represents a list of Syntaxable instances of which all are be parsed successfully when the Syntaxables' parseArgs(String[]) methods are invoked.
AndConditionImpl(Syntaxable...) - Constructor for class org.refcodes.console.AndConditionImpl
Instantiates a new and condition impl.
ArgsAccessor - Interface in org.refcodes.console
Provides an accessor for a command line arguments (short "args") array.
ArgsAccessor.ArgsMutator - Interface in org.refcodes.console
Provides a mutator for a args property.
ArgsAccessor.ArgsProperty - Interface in org.refcodes.console
Provides a args property.
ArgsMismatchException - Exception in org.refcodes.console
Thrown in case a command line arguments mismatch regarding provided and expected args.
ArgsMismatchException(String[], String, String) - Constructor for exception org.refcodes.console.ArgsMismatchException
Instantiates a new args mismatch exception.
ArgsMismatchException(String[], String, Throwable, String) - Constructor for exception org.refcodes.console.ArgsMismatchException
Instantiates a new args mismatch exception.
ArgsMismatchException(String[], String, Throwable) - Constructor for exception org.refcodes.console.ArgsMismatchException
Instantiates a new args mismatch exception.
ArgsMismatchException(String[], String) - Constructor for exception org.refcodes.console.ArgsMismatchException
Instantiates a new args mismatch exception.
ArgsMismatchException(String[], Throwable, String) - Constructor for exception org.refcodes.console.ArgsMismatchException
Instantiates a new args mismatch exception.
ArgsMismatchException(String[], Throwable) - Constructor for exception org.refcodes.console.ArgsMismatchException
Instantiates a new args mismatch exception.
ArgsParser - Interface in org.refcodes.console
The ArgsParser provides means for parsing command line arguments and constructing a command line utility's help output.
ArgsParserAccessor - Interface in org.refcodes.console
Provides an accessor for a ArgsParser property.
ArgsParserAccessor.ArgsParserBuilder<B extends ArgsParserAccessor.ArgsParserBuilder<B>> - Interface in org.refcodes.console
Provides a builder method for a ArgsParser property returning the builder for applying multiple build operations.
ArgsParserAccessor.ArgsParserMutator - Interface in org.refcodes.console
Provides a mutator for a ArgsParser property.
ArgsParserAccessor.PropertiesProperty - Interface in org.refcodes.console
Provides a ArgsParser property.
ArgsParserImpl - Class in org.refcodes.console
A straightforward implementation of the ArgsParser interface.
ArgsParserImpl(Condition) - Constructor for class org.refcodes.console.ArgsParserImpl
Constructs the ArgsParser instance with the given root Condition and the default SyntaxNotation.REFCODES.
ArgsParserImpl() - Constructor for class org.refcodes.console.ArgsParserImpl
Constructs the ArgsParser instance without any restrictions to the parsed arguments.
ArgsParserMixin<B extends ArgsParserMixin<B>> - Interface in org.refcodes.console
This mixin provides builder additions (as of the builder pattern for chained configuring method calls) for parsing command line arguments.

C

compareTo(Operand<?>) - Method in class org.refcodes.console.AbstractOperand
Condition - Interface in org.refcodes.console
The Condition interface represents a node in the command line arguments syntax tree; simply extending the Syntaxable interface and adding the functionality of providing access to the added Operands (leafs).
ConsoleArgsException(String[], String, String) - Constructor for exception org.refcodes.console.ConsoleException.ConsoleArgsException
Instantiates a new console args exception.
ConsoleArgsException(String[], String, Throwable, String) - Constructor for exception org.refcodes.console.ConsoleException.ConsoleArgsException
Instantiates a new console args exception.
ConsoleArgsException(String[], String, Throwable) - Constructor for exception org.refcodes.console.ConsoleException.ConsoleArgsException
Instantiates a new console args exception.
ConsoleArgsException(String[], String) - Constructor for exception org.refcodes.console.ConsoleException.ConsoleArgsException
Instantiates a new console args exception.
ConsoleArgsException(String[], Throwable, String) - Constructor for exception org.refcodes.console.ConsoleException.ConsoleArgsException
Instantiates a new console args exception.
ConsoleArgsException(String[], Throwable) - Constructor for exception org.refcodes.console.ConsoleException.ConsoleArgsException
Instantiates a new console args exception.
ConsoleCliException(ExitCode, String, String) - Constructor for exception org.refcodes.console.ConsoleException.ConsoleCliException
Instantiates a new console cli exception.
ConsoleCliException(ExitCode, String, Throwable, String) - Constructor for exception org.refcodes.console.ConsoleException.ConsoleCliException
Instantiates a new console cli exception.
ConsoleCliException(ExitCode, String, Throwable) - Constructor for exception org.refcodes.console.ConsoleException.ConsoleCliException
Instantiates a new console cli exception.
ConsoleCliException(ExitCode, String) - Constructor for exception org.refcodes.console.ConsoleException.ConsoleCliException
Instantiates a new console cli exception.
ConsoleCliException(ExitCode, Throwable, String) - Constructor for exception org.refcodes.console.ConsoleException.ConsoleCliException
Instantiates a new console cli exception.
ConsoleCliException(ExitCode, Throwable) - Constructor for exception org.refcodes.console.ConsoleException.ConsoleCliException
Instantiates a new console cli exception.
ConsoleException - Exception in org.refcodes.console
Base exception for the console artifact.
ConsoleException(String, String) - Constructor for exception org.refcodes.console.ConsoleException
Instantiates a new console exception.
ConsoleException(String, Throwable, String) - Constructor for exception org.refcodes.console.ConsoleException
Instantiates a new console exception.
ConsoleException(String, Throwable) - Constructor for exception org.refcodes.console.ConsoleException
Instantiates a new console exception.
ConsoleException(String) - Constructor for exception org.refcodes.console.ConsoleException
Instantiates a new console exception.
ConsoleException(Throwable, String) - Constructor for exception org.refcodes.console.ConsoleException
Instantiates a new console exception.
ConsoleException(Throwable) - Constructor for exception org.refcodes.console.ConsoleException
Instantiates a new console exception.
ConsoleException.ConsoleArgsException - Exception in org.refcodes.console
This abstract exception is the base exception for all command line argument related exceptions.
ConsoleException.ConsoleCliException - Exception in org.refcodes.console
The Class ConsoleCliException.
ConsoleSugar - Class in org.refcodes.console
Declarative syntactic sugar which may be statically imported in order to allow declarative definitions for the command line Switch, Condition, Option and Operand elements.
ConsoleSugar() - Constructor for class org.refcodes.console.ConsoleSugar
 
ConsoleUtility - Class in org.refcodes.console
This utility class provides method useful for the refcodes-console artifact and whose implementation has been motivated by the implementation of the refcodes-console artifact.
contains(String[], String) - Static method in class org.refcodes.console.ConsoleUtility
Determines whether a given String is contained in the given String array.

E

enumOption(String, String, Class<T>, String, String) - Static method in class org.refcodes.console.ConsoleSugar
Enum option.
EnumOptionImpl<T extends Enum<T>> - Class in org.refcodes.console
The Class EnumOptionImpl.
EnumOptionImpl(String, String, Class<T>, String, String) - Constructor for class org.refcodes.console.EnumOptionImpl
Instantiates a new enum option impl.
EnumOptionImpl(Relation<String, T>, Class<T>) - Constructor for class org.refcodes.console.EnumOptionImpl
Instantiates a new enum option impl.
errorLn(String) - Method in interface org.refcodes.console.ArgsParser
Prints the given line to standard error with regards to to the console width as specified by the ArgsParser.withConsoleWidth(int) method.
errorLn(String) - Method in class org.refcodes.console.ArgsParserImpl
Prints the given line to standard error with regards to to the console width as specified by the ArgsParser.withConsoleWidth(int) method.
evalArgs(String[]) - Method in interface org.refcodes.console.ArgsParser
Evaluates the provided command line arguments and determines the according values by evaluating the root Condition.
evalArgs(List<String>) - Method in interface org.refcodes.console.ArgsParser
Same as ArgsParser.evalArgs(String[]) with the difference that the elements representing the arguments are passed as a list instead of an array.
evalArgs(String[]) - Method in class org.refcodes.console.ArgsParserImpl
Evaluates the provided command line arguments and determines the according values by evaluating the root Condition.
ExitCode - Enum in org.refcodes.console
Some default exit codes defined for CLI applications.

F

forcesSwitch(String) - Static method in class org.refcodes.console.ConsoleSugar
Forces switch.
forcesSwitch() - Static method in class org.refcodes.console.ConsoleSugar
Forces switch.
ForceSwitchImpl - Class in org.refcodes.console
A predefined force switch.
ForceSwitchImpl(String) - Constructor for class org.refcodes.console.ForceSwitchImpl
Constructs the predefined force switch.
ForceSwitchImpl() - Constructor for class org.refcodes.console.ForceSwitchImpl
Constructs the predefined force switch.
fromArgs(String[], char) - Static method in class org.refcodes.console.ArgsParserImpl
Heuristically loads the arguments without any syntax required, e.g.

G

get(String) - Method in class org.refcodes.console.AbstractCondition
Searches for a value being set for the given for given alias in the syntax tree parsing the command line arguments; if a node in the syntax tree has a value for the given alias, then this value is returned.
get(String) - Method in interface org.refcodes.console.Operand
Searches for a value being set for the given for given alias in the syntax tree parsing the command line arguments; if a node in the syntax tree has a value for the given alias, then this value is returned.
get(String) - Method in interface org.refcodes.console.Syntaxable
Searches for a value being set for the given for given alias in the syntax tree parsing the command line arguments; if a node in the syntax tree has a value for the given alias, then this value is returned.
getAlias() - Method in class org.refcodes.console.AbstractOperand
Retrieves the name (alias) of the parameter value which can be the name of the operand (Operand) or the option argument (Option), depending on the sub-type inheriting from this interface.
getAlias() - Method in interface org.refcodes.console.Operand
Retrieves the name (alias) of the parameter value which can be the name of the operand (Operand) or the option argument (Option), depending on the sub-type inheriting from this interface.
getArgs() - Method in class org.refcodes.console.AbstractOperand
Retrieves the command line arguments from the args property.
getArgs() - Method in interface org.refcodes.console.ArgsAccessor
Retrieves the command line arguments from the args property.
getArgs() - Method in exception org.refcodes.console.ConsoleException.ConsoleArgsException
Gets the args.
getArgs() - Method in interface org.refcodes.console.Operand
Retrieves the command line arguments from the args property.
getArgsParser() - Method in interface org.refcodes.console.ArgsParserAccessor
Retrieves the args-parser from the ArgsParser property.
getChildren() - Method in class org.refcodes.console.AbstractCondition
Gets the children.
getDelimiter() - Method in class org.refcodes.console.ArgsParserImpl
Returns the delimiter to be used by colliding command line args when creating non colliding arg's aliases (keys for key/value-pairs).
getDescription() - Method in class org.refcodes.console.AbstractOperand
getLongOption() - Method in class org.refcodes.console.AbstractOption
TODO: Make the option to be required without the hyphen-minuses "--" Returns the long-option representing an Option instance.
getLongOption() - Method in interface org.refcodes.console.Option
TODO: Make the option to be required without the hyphen-minuses "--" Returns the long-option representing an Option instance.
getOptionArgument(Option<?>, String[]) - Static method in class org.refcodes.console.ConsoleUtility
Takes the Option's short-option and long-option and tries to determine that Option's value in the provided command line arguments.
getRootCondition() - Method in interface org.refcodes.console.ArgsParser
The root condition is the starting point node of a Syntaxable hierarchy to be traversed when determining the syntax for command line arguments or when evaluating the command line arguments.
getRootCondition() - Method in class org.refcodes.console.ArgsParserImpl
The root condition is the starting point node of a Syntaxable hierarchy to be traversed when determining the syntax for command line arguments or when evaluating the command line arguments.
getRootCondition() - Method in interface org.refcodes.console.RootConditionAccessor
Retrieves the rootCondition from the rootCondition property.
getShortOption() - Method in class org.refcodes.console.AbstractOption
Returns the short-option representing an Option instance.
getShortOption() - Method in interface org.refcodes.console.Option
Returns the short-option representing an Option instance.
getStatusCode() - Method in exception org.refcodes.console.ConsoleException.ConsoleCliException
Gets the status code.
getStatusCode() - Method in enum org.refcodes.console.ExitCode
Gets the status code.
getType() - Method in class org.refcodes.console.AbstractOperand
getValue() - Method in class org.refcodes.console.AbstractOperand
getValue() - Method in interface org.refcodes.console.Operand

H

hasValue() - Method in interface org.refcodes.console.Operand
When being parsed via the parseArgs(String[]) method, use this method to determine whether the Operand.getValue() method contains parsed value.
helpSwitch(String) - Static method in class org.refcodes.console.ConsoleSugar
Help switch.
helpSwitch() - Static method in class org.refcodes.console.ConsoleSugar
Help switch.
HelpSwitchImpl - Class in org.refcodes.console
A predefined help switch.
HelpSwitchImpl(String) - Constructor for class org.refcodes.console.HelpSwitchImpl
Constructs the predefined help switch.
HelpSwitchImpl() - Constructor for class org.refcodes.console.HelpSwitchImpl
Constructs the predefined help switch.

I

IntegerOptionImpl - Class in org.refcodes.console
The Class IntegerOptionImpl.
IntegerOptionImpl(String, String, String, String) - Constructor for class org.refcodes.console.IntegerOptionImpl
Instantiates a new integer option impl.
IntegerOptionImpl(Relation<String, Integer>) - Constructor for class org.refcodes.console.IntegerOptionImpl
Instantiates a new integer option impl.
intOption(String, String, String, String) - Static method in class org.refcodes.console.ConsoleSugar
Int option.
isEnabled() - Method in interface org.refcodes.console.Switch
Returns true if the switch has been provided.
isOptionArgument(String) - Static method in class org.refcodes.console.ConsoleUtility
Determines whether the provided String starts with one of the prefixes Identifying an Option.

L

LONG_OPTION - Static variable in class org.refcodes.console.ForceSwitchImpl
 
LONG_OPTION - Static variable in class org.refcodes.console.HelpSwitchImpl
 
LONG_OPTION - Static variable in class org.refcodes.console.QuietSwitchImpl
 
LONG_OPTION - Static variable in class org.refcodes.console.SysInfoSwitchImpl
 
LONG_OPTION - Static variable in class org.refcodes.console.VerboseSwitchImpl
 

O

Operand<T> - Interface in org.refcodes.console
An Operand represents a value parsed from command line arguments.
Option<T> - Interface in org.refcodes.console
An Option represents a command line option with the according option's value.
optional(Syntaxable...) - Static method in class org.refcodes.console.ConsoleSugar
Optional.
OptionalConditionImpl - Class in org.refcodes.console
The Class OptionalConditionImpl.
OptionalConditionImpl(Syntaxable...) - Constructor for class org.refcodes.console.OptionalConditionImpl
Instantiates a new optional condition impl.
or(Syntaxable...) - Static method in class org.refcodes.console.ConsoleSugar
Or.
OrConditionImpl - Class in org.refcodes.console
An OrConditionImpl represents a list of Syntaxable instances of which at least one must be parsed successfully when the Syntaxable s' parseArgs(String[]) methods are invoked.
OrConditionImpl(Syntaxable...) - Constructor for class org.refcodes.console.OrConditionImpl
Instantiates a new or condition impl.
org.refcodes.console - package org.refcodes.console
Getting started: Consider you have a tool called "foo-bar" to be invoked with the below allowed argument combinations (syntax): foo-bar [{ -a | -d }] -f <file> "foo-bar" can be invoked either with an optional "-a" or with an optional "-d" switch, but not both of them at the same time, and a file "-f <file>" must be provided, else the passed arguments are rejected as not being valid.

P

parseArgs(String[]) - Method in class org.refcodes.console.AbstractOperand
Parses the provided command line arguments and determines the according values by evaluating this Syntaxable instance or, in case of being a node in the syntax tree (such as a Condition, traversing the child Syntaxable instances' parseArgs(String[]) methods.
parseArgs(String[]) - Method in class org.refcodes.console.AbstractOption
Parses the provided command line arguments and determines the according values by evaluating this Syntaxable instance or, in case of being a node in the syntax tree (such as a Condition, traversing the child Syntaxable instances' parseArgs(String[]) methods.
parseArgs(String[]) - Method in class org.refcodes.console.AndConditionImpl
 
parseArgs(String[]) - Method in class org.refcodes.console.OptionalConditionImpl
 
parseArgs(String[]) - Method in class org.refcodes.console.OrConditionImpl
 
parseArgs(String[]) - Method in class org.refcodes.console.SwitchImpl
Parses the provided command line arguments and determines the according values by evaluating this Syntaxable instance or, in case of being a node in the syntax tree (such as a Condition, traversing the child Syntaxable instances' parseArgs(String[]) methods.
parseArgs(String[]) - Method in interface org.refcodes.console.Syntaxable
Parses the provided command line arguments and determines the according values by evaluating this Syntaxable instance or, in case of being a node in the syntax tree (such as a Condition, traversing the child Syntaxable instances' parseArgs(String[]) methods.
parseArgs(String[]) - Method in class org.refcodes.console.XorConditionImpl
 
ParseArgsException - Exception in org.refcodes.console
Thrown in case the provided command line arguments do not respect the required syntax or cannot be converted to the required type.
ParseArgsException(String[], String, String) - Constructor for exception org.refcodes.console.ParseArgsException
Instantiates a new parses the args exception.
ParseArgsException(String[], String, Throwable, String) - Constructor for exception org.refcodes.console.ParseArgsException
Instantiates a new parses the args exception.
ParseArgsException(String[], String, Throwable) - Constructor for exception org.refcodes.console.ParseArgsException
Instantiates a new parses the args exception.
ParseArgsException(String[], String) - Constructor for exception org.refcodes.console.ParseArgsException
Instantiates a new parses the args exception.
ParseArgsException(String[], Throwable, String) - Constructor for exception org.refcodes.console.ParseArgsException
Instantiates a new parses the args exception.
ParseArgsException(String[], Throwable) - Constructor for exception org.refcodes.console.ParseArgsException
Instantiates a new parses the args exception.
printBanner() - Method in interface org.refcodes.console.ArgsParser
Prints the banner; the banner most probably is an ASCII art text block which's look depends strongly on the taste of the author implementing this interface.
printBanner() - Method in class org.refcodes.console.ArgsParserImpl
Prints the banner; the banner most probably is an ASCII art text block which's look depends strongly on the taste of the author implementing this interface.
printCopyrightNote() - Method in interface org.refcodes.console.ArgsParser
Prints the copyright note as specified by the ArgsParser.withCopyrightNote(String) method; with regards to to the console width as specified by the ArgsParser.withConsoleWidth(int) method.
printCopyrightNote() - Method in class org.refcodes.console.ArgsParserImpl
Prints the copyright note as specified by the ArgsParser.withCopyrightNote(String) method; with regards to to the console width as specified by the ArgsParser.withConsoleWidth(int) method.
printDescription() - Method in interface org.refcodes.console.ArgsParser
Prints the description as set by the ArgsParser.withDescription(String) method with regards to the console width as specified by the ArgsParser.withConsoleWidth(int) method.
printDescription() - Method in class org.refcodes.console.ArgsParserImpl
Prints the description as set by the ArgsParser.withDescription(String) method with regards to the console width as specified by the ArgsParser.withConsoleWidth(int) method.
printHelp() - Method in interface org.refcodes.console.ArgsParser
Prints the help to the standard output specified by the ArgsParser.withStandardOut(PrintStream) method.
printHelp() - Method in class org.refcodes.console.ArgsParserImpl
Prints the help to the standard output specified by the ArgsParser.withStandardOut(PrintStream) method.
printLicenseNote() - Method in interface org.refcodes.console.ArgsParser
Prints the license note as specified by the ArgsParser.withLicenseNote(String) method; with regards to to the console width as specified by the ArgsParser.withConsoleWidth(int) method.
printLicenseNote() - Method in class org.refcodes.console.ArgsParserImpl
Prints the license note as specified by the ArgsParser.withLicenseNote(String) method; with regards to to the console width as specified by the ArgsParser.withConsoleWidth(int) method.
printLn(String) - Method in interface org.refcodes.console.ArgsParser
Prints the given line to standard out with regards to to the console width as specified by the ArgsParser.withConsoleWidth(int) method.
printLn() - Method in interface org.refcodes.console.ArgsParser
Prints an empty line / a line break.
printLn(String) - Method in class org.refcodes.console.ArgsParserImpl
Prints the given line to standard out with regards to to the console width as specified by the ArgsParser.withConsoleWidth(int) method.
printLn() - Method in class org.refcodes.console.ArgsParserImpl
Prints an empty line / a line break.
printOptions() - Method in interface org.refcodes.console.ArgsParser
Prints the Options (short- and the long-options), the Switches and the Operand and their description with regards to the console width as specified by the ArgsParser.withConsoleWidth(int) method.
printOptions() - Method in class org.refcodes.console.ArgsParserImpl
Prints the Options (short- and the long-options), the Switches and the Operand and their description with regards to the console width as specified by the ArgsParser.withConsoleWidth(int) method.
printSeparatorLn() - Method in interface org.refcodes.console.ArgsParser
Prints a separator line using the separator character as specified by the ArgsParser.withSeparatorChar(char) method; with regards to to the console width as specified by the ArgsParser.withConsoleWidth(int) method.
printSeparatorLn() - Method in class org.refcodes.console.ArgsParserImpl
Prints a separator line using the separator character as specified by the ArgsParser.withSeparatorChar(char) method; with regards to to the console width as specified by the ArgsParser.withConsoleWidth(int) method.
printUsage() - Method in interface org.refcodes.console.ArgsParser
Prints the syntax as retrieved by the root Condition with regards to the SyntaxNotation set by the ArgsParser.withSyntaxNotation(SyntaxNotation) method; making use of the usage label as passed by the ArgsParser.withUsageLabel(String) method.
printUsage() - Method in class org.refcodes.console.ArgsParserImpl
Prints the syntax as retrieved by the root Condition with regards to the SyntaxNotation set by the ArgsParser.withSyntaxNotation(SyntaxNotation) method; making use of the usage label as passed by the ArgsParser.withUsageLabel(String) method.

Q

quietSwitch(String) - Static method in class org.refcodes.console.ConsoleSugar
Quiet switch.
quietSwitch() - Static method in class org.refcodes.console.ConsoleSugar
Quiet switch.
QuietSwitchImpl - Class in org.refcodes.console
A predefined "be quiet" switch.
QuietSwitchImpl(String) - Constructor for class org.refcodes.console.QuietSwitchImpl
Constructs the predefined quiet switch.
QuietSwitchImpl() - Constructor for class org.refcodes.console.QuietSwitchImpl
Constructs the predefined quiet switch.

R

reset() - Method in class org.refcodes.console.AbstractCondition
reset() - Method in class org.refcodes.console.AbstractOperand
reset() - Method in class org.refcodes.console.ArgsParserImpl
reset() - Method in class org.refcodes.console.OptionalConditionImpl
reset() - Method in class org.refcodes.console.SwitchImpl
RootConditionAccessor - Interface in org.refcodes.console
Provides an accessor for a rootCondition property.
RootConditionAccessor.RootConditionBuilder<B extends RootConditionAccessor.RootConditionBuilder<B>> - Interface in org.refcodes.console
Provides a builder method for a rootCondition property returning the builder for applying multiple build operations.
RootConditionAccessor.RootConditionMutator - Interface in org.refcodes.console
Provides a mutator for a rootCondition property.
RootConditionAccessor.RootConditionProperty - Interface in org.refcodes.console
Provides a rootCondition property.

S

setArgs(String[]) - Method in class org.refcodes.console.AbstractOperand
Sets the command line argument(s) representing the Operand and its value as parsed by the AbstractOperand.parseArgs(String[]) method.
setArgs(String[]) - Method in class org.refcodes.console.AbstractOption
Sets the command line argument(s) representing the Operand and its value as parsed by the AbstractOperand.parseArgs(String[]) method.
setArgs(String[]) - Method in interface org.refcodes.console.ArgsAccessor.ArgsMutator
Sets the command line arguments for the args property.
setArgsParser(ArgsParser) - Method in interface org.refcodes.console.ArgsParserAccessor.ArgsParserMutator
Sets the args-parser for the ArgsParser property.
setBannerFont(Font) - Method in interface org.refcodes.console.ArgsParser
Sets the banner font.
setBannerFont(Font) - Method in class org.refcodes.console.ArgsParserImpl
Sets the banner font.
setBannerFontPalette(char[]) - Method in interface org.refcodes.console.ArgsParser
Sets the banner font palette.
setBannerFontPalette(char[]) - Method in class org.refcodes.console.ArgsParserImpl
Sets the banner font palette.
setConsoleWidth(int) - Method in interface org.refcodes.console.ArgsParser
Set the console with.
setConsoleWidth(int) - Method in class org.refcodes.console.ArgsParserImpl
Set the console with.
setCopyrightNote(String) - Method in interface org.refcodes.console.ArgsParser
Set the copyright note used by the ArgsParser.printHelp() method when writing out the copyright claim and make other adjustments with the result (with regards to the Builder-Pattern).
setCopyrightNote(String) - Method in class org.refcodes.console.ArgsParserImpl
Set the copyright note used by the ArgsParser.printHelp() method when writing out the copyright claim and make other adjustments with the result (with regards to the Builder-Pattern).
setDescription(String) - Method in class org.refcodes.console.ArgsParserImpl
setErrorOut(PrintStream) - Method in interface org.refcodes.console.ArgsParser
Set the error out PrintStream and make other adjustments with the result (with regards to the Builder-Pattern).
setErrorOut(PrintStream) - Method in class org.refcodes.console.ArgsParserImpl
Set the error out PrintStream and make other adjustments with the result (with regards to the Builder-Pattern).
setLicenseNote(String) - Method in interface org.refcodes.console.ArgsParser
Set the license note used by the ArgsParser.printHelp() method when writing out the licensing conditions.
setLicenseNote(String) - Method in class org.refcodes.console.ArgsParserImpl
Set the license note used by the ArgsParser.printHelp() method when writing out the licensing conditions.
setLineBreak(String) - Method in interface org.refcodes.console.ArgsParser
Set the console's line break.
setLineBreak(String) - Method in class org.refcodes.console.ArgsParserImpl
Set the console's line break.
setMaxConsoleWidth(int) - Method in interface org.refcodes.console.ArgsParser
Set the maximum console width to use in case the console width is greater than the maximum you want.
setMaxConsoleWidth(int) - Method in class org.refcodes.console.ArgsParserImpl
Set the maximum console width to use in case the console width is greater than the maximum you want.
setName(String) - Method in class org.refcodes.console.ArgsParserImpl
setRootCondition(Condition) - Method in interface org.refcodes.console.RootConditionAccessor.RootConditionMutator
Sets the rootCondition for the rootCondition property.
setSeparatorChar(char) - Method in interface org.refcodes.console.ArgsParser
Set the character to be used when printing a separator line with the ArgsParser.printSeparatorLn() method.
setSeparatorChar(char) - Method in class org.refcodes.console.ArgsParserImpl
Set the character to be used when printing a separator line with the ArgsParser.printSeparatorLn() method.
setStandardOut(PrintStream) - Method in interface org.refcodes.console.ArgsParser
Set the standard out PrintStream and make other adjustments with the result (with regards to the Builder-Pattern).
setStandardOut(PrintStream) - Method in class org.refcodes.console.ArgsParserImpl
Set the standard out PrintStream and make other adjustments with the result (with regards to the Builder-Pattern).
setSyntaxNotation(SyntaxNotation) - Method in interface org.refcodes.console.ArgsParser
setSyntaxNotation(SyntaxNotation) - Method in class org.refcodes.console.ArgsParserImpl
setTitle(String) - Method in class org.refcodes.console.ArgsParserImpl
setUsageLabel(String) - Method in interface org.refcodes.console.ArgsParser
Set the usage label used by the ArgsParser.printHelp() method when writing out the syntax.
setUsageLabel(String) - Method in class org.refcodes.console.ArgsParserImpl
Set the usage label used by the ArgsParser.printHelp() method when writing out the syntax.
setValue(T) - Method in class org.refcodes.console.AbstractOperand
Sets the value for the Operand as parsed by the AbstractOperand.parseArgs(String[]) method.
setValue(T) - Method in class org.refcodes.console.AbstractOption
Sets the value for the Operand as parsed by the AbstractOperand.parseArgs(String[]) method.
SHORT_OPTION - Static variable in class org.refcodes.console.ForceSwitchImpl
 
SHORT_OPTION - Static variable in class org.refcodes.console.HelpSwitchImpl
 
SHORT_OPTION - Static variable in class org.refcodes.console.QuietSwitchImpl
 
SHORT_OPTION - Static variable in class org.refcodes.console.SysInfoSwitchImpl
 
SHORT_OPTION - Static variable in class org.refcodes.console.VerboseSwitchImpl
 
stringOperand(String, String) - Static method in class org.refcodes.console.ConsoleSugar
String operand.
StringOperandImpl - Class in org.refcodes.console
An Operand (neither a short option nor a long option prepended nor being a switch) being s String.
StringOperandImpl(String, String) - Constructor for class org.refcodes.console.StringOperandImpl
Instantiates a new string operand impl.
StringOperandImpl(Relation<String, String>) - Constructor for class org.refcodes.console.StringOperandImpl
Instantiates a new string operand impl.
stringOption(String, String, String, String) - Static method in class org.refcodes.console.ConsoleSugar
String option.
StringOptionImpl - Class in org.refcodes.console
The Class StringOptionImpl.
StringOptionImpl(String, String, String, String) - Constructor for class org.refcodes.console.StringOptionImpl
Instantiates a new string option impl.
StringOptionImpl(Relation<String, String>) - Constructor for class org.refcodes.console.StringOptionImpl
Instantiates a new integer string impl.
SuperfluousArgsException - Exception in org.refcodes.console
Thrown in case there were arguments found not being used (superfluous arguments).
SuperfluousArgsException(String[], String, String) - Constructor for exception org.refcodes.console.SuperfluousArgsException
Instantiates a new superfluous args exception.
SuperfluousArgsException(String[], String, Throwable, String) - Constructor for exception org.refcodes.console.SuperfluousArgsException
Instantiates a new superfluous args exception.
SuperfluousArgsException(String[], String, Throwable) - Constructor for exception org.refcodes.console.SuperfluousArgsException
Instantiates a new superfluous args exception.
SuperfluousArgsException(String[], String) - Constructor for exception org.refcodes.console.SuperfluousArgsException
Instantiates a new superfluous args exception.
SuperfluousArgsException(String[], Throwable, String) - Constructor for exception org.refcodes.console.SuperfluousArgsException
Instantiates a new superfluous args exception.
SuperfluousArgsException(String[], Throwable) - Constructor for exception org.refcodes.console.SuperfluousArgsException
Instantiates a new superfluous args exception.
Switch - Interface in org.refcodes.console
A Switch is an Option with a Boolean state.
SwitchImpl - Class in org.refcodes.console
The SwitchImpl class implements the Switch interface.
SwitchImpl(String, String, String) - Constructor for class org.refcodes.console.SwitchImpl
Constructs a Switch.
SwitchImpl(String, String, String, String) - Constructor for class org.refcodes.console.SwitchImpl
Constructs a Switch.
SwitchImpl(String, boolean) - Constructor for class org.refcodes.console.SwitchImpl
Constructs a Switch.
switsh(String, String, String) - Static method in class org.refcodes.console.ConsoleSugar
As "switch" is a reserved word in Java, we use "switsh" :-(.
Syntaxable - Interface in org.refcodes.console
A Syntaxable defines the methods at least required when building a command line arguments syntax tree for traversing the syntax tree; either for parsing command line arguments or for constructing the command line arguments syntax.
SyntaxNotation - Enum in org.refcodes.console
The SyntaxNotation is used by a the toSyntax(SyntaxNotation) method to determine which notation to be used for the generated syntax.
SyntaxUsage - Interface in org.refcodes.console
The SyntaxUsage interface defines those methods required to create a human readable usage String from the implementing instance.
SYSINFO - Static variable in class org.refcodes.console.SysInfoSwitchImpl
 
sysInfoSwitch(String) - Static method in class org.refcodes.console.ConsoleSugar
Sys info switch.
sysInfoSwitch() - Static method in class org.refcodes.console.ConsoleSugar
Sys info switch.
SysInfoSwitchImpl - Class in org.refcodes.console
A predefined system information switch.
SysInfoSwitchImpl(String) - Constructor for class org.refcodes.console.SysInfoSwitchImpl
Constructs the predefined system information switch.
SysInfoSwitchImpl() - Constructor for class org.refcodes.console.SysInfoSwitchImpl
Constructs the predefined system information switch.

T

toArgs(List<? extends Operand<?>>...) - Static method in class org.refcodes.console.ConsoleUtility
Takes all Operand instances found in the provided Lists and adds all therein found argument arrays (as of Operand.getArgs()) to the result.
toDiff(String[], String[]) - Static method in class org.refcodes.console.ConsoleUtility
Creates the difference between the provided set and the provided subset.
toDiff(String[], List<? extends Operand<?>>) - Static method in class org.refcodes.console.ConsoleUtility
Creates the difference between the provided set and the provided Lists therein found argument arrays subset (as of Operand.getArgs()).
toOperands() - Method in class org.refcodes.console.AbstractCondition
Traverses the hierarchy of Conditions and collects all therein found Operands and sub-types such as the Switch or the Option.
toOperands() - Method in interface org.refcodes.console.Condition
Traverses the hierarchy of Conditions and collects all therein found Operands and sub-types such as the Switch or the Option.
toOptionsSpec(Operand<?>) - Static method in class org.refcodes.console.ConsoleUtility
Creates the options specification containing the short option (if any) and the long option ( if any) from the provided Operand;.
toParameterSpec(Operand<?>) - Static method in class org.refcodes.console.ConsoleUtility
Creates the parameter specification from the provided Operand.
toSpec(Operand<?>) - Static method in class org.refcodes.console.ConsoleUtility
Creates a specification for the given Operand consisting of the options specification (if any) as of ConsoleUtility.toOptionsSpec(Operand) and the parameter specification (if any) as of ConsoleUtility.toParameterSpec(Operand).
toState() - Method in class org.refcodes.console.AbstractOperand
The toState() method might be used by the Object.toString() method and prints out the state of the syntaxable and (if any) its children.
toState() - Method in class org.refcodes.console.AbstractOption
The toState() method might be used by the Object.toString() method and prints out the state of the syntaxable and (if any) its children.
toState() - Method in class org.refcodes.console.AndConditionImpl
The toState() method might be used by the Object.toString() method and prints out the state of the syntaxable and (if any) its children.
toState() - Method in class org.refcodes.console.OptionalConditionImpl
The toState() method might be used by the Object.toString() method and prints out the state of the syntaxable and (if any) its children.
toState() - Method in class org.refcodes.console.OrConditionImpl
The toState() method might be used by the Object.toString() method and prints out the state of the syntaxable and (if any) its children.
toState() - Method in interface org.refcodes.console.Syntaxable
The toState() method might be used by the Object.toString() method and prints out the state of the syntaxable and (if any) its children.
toState() - Method in class org.refcodes.console.XorConditionImpl
The toState() method might be used by the Object.toString() method and prints out the state of the syntaxable and (if any) its children.
toString() - Method in class org.refcodes.console.AbstractCondition
toString() - Method in class org.refcodes.console.AbstractOperand
toString() - Method in class org.refcodes.console.OptionalConditionImpl
toSyntax(SyntaxNotation) - Method in class org.refcodes.console.AbstractCondition
This method is to be called from inside the Syntaxable hierarchy; use the method SyntaxUsage.toUsage(SyntaxNotation) in case you invoke syntax retrieval from the root Syntaxable.
toSyntax(SyntaxNotation) - Method in class org.refcodes.console.AbstractOperand
This method is to be called from inside the Syntaxable hierarchy; use the method SyntaxUsage.toUsage(SyntaxNotation) in case you invoke syntax retrieval from the root Syntaxable.
toSyntax(SyntaxNotation) - Method in class org.refcodes.console.AbstractOption
This method is to be called from inside the Syntaxable hierarchy; use the method SyntaxUsage.toUsage(SyntaxNotation) in case you invoke syntax retrieval from the root Syntaxable.
toSyntax(SyntaxNotation) - Method in interface org.refcodes.console.Syntaxable
This method is to be called from inside the Syntaxable hierarchy; use the method SyntaxUsage.toUsage(SyntaxNotation) in case you invoke syntax retrieval from the root Syntaxable.
toSyntax(SyntaxNotation) - Method in class org.refcodes.console.XorConditionImpl
This method is to be called from inside the Syntaxable hierarchy; use the method SyntaxUsage.toUsage(SyntaxNotation) in case you invoke syntax retrieval from the root Syntaxable.
toUsage(SyntaxNotation) - Method in class org.refcodes.console.AndConditionImpl
Returns the human readable (verbose) syntax of implementing class ATTENTION: As of different parenthesis settings for some notations regarding the root Syntaxable and the child Syntaxables, the method toSyntax(SyntaxNotation) is called from inside a Syntaxable hierarchy.
toUsage(SyntaxNotation) - Method in class org.refcodes.console.OptionalConditionImpl
Returns the human readable (verbose) syntax of implementing class ATTENTION: As of different parenthesis settings for some notations regarding the root Syntaxable and the child Syntaxables, the method toSyntax(SyntaxNotation) is called from inside a Syntaxable hierarchy.
toUsage(SyntaxNotation) - Method in class org.refcodes.console.OrConditionImpl
Returns the human readable (verbose) syntax of implementing class ATTENTION: As of different parenthesis settings for some notations regarding the root Syntaxable and the child Syntaxables, the method toSyntax(SyntaxNotation) is called from inside a Syntaxable hierarchy.
toUsage() - Method in interface org.refcodes.console.SyntaxUsage
 
toUsage(SyntaxNotation) - Method in interface org.refcodes.console.SyntaxUsage
Returns the human readable (verbose) syntax of implementing class ATTENTION: As of different parenthesis settings for some notations regarding the root Syntaxable and the child Syntaxables, the method toSyntax(SyntaxNotation) is called from inside a Syntaxable hierarchy.
toUsage(SyntaxNotation) - Method in class org.refcodes.console.XorConditionImpl
Returns the human readable (verbose) syntax of implementing class ATTENTION: As of different parenthesis settings for some notations regarding the root Syntaxable and the child Syntaxables, the method toSyntax(SyntaxNotation) is called from inside a Syntaxable hierarchy.
toValue(String) - Method in class org.refcodes.console.AbstractOperand
Double dispatch hook to be implemented by subclasses of the AbstractOperand for converting a command line argument to the required Operand's type.
toValue(String) - Method in class org.refcodes.console.EnumOptionImpl
Double dispatch hook to be implemented by subclasses of the AbstractOperand for converting a command line argument to the required Operand's type.
toValue(String) - Method in class org.refcodes.console.IntegerOptionImpl
Double dispatch hook to be implemented by subclasses of the AbstractOperand for converting a command line argument to the required Operand's type.
toValue(String) - Method in class org.refcodes.console.StringOperandImpl
To value.
toValue(String) - Method in class org.refcodes.console.StringOptionImpl
Double dispatch hook to be implemented by subclasses of the AbstractOperand for converting a command line argument to the required Operand's type.
toValue(String) - Method in class org.refcodes.console.SwitchImpl
Double dispatch hook to be implemented by subclasses of the AbstractOperand for converting a command line argument to the required Operand's type.

U

UnknownArgsException - Exception in org.refcodes.console
Thrown in case not one command line argument matched regarding the provided args vs. the expected args.
UnknownArgsException(String[], String, String) - Constructor for exception org.refcodes.console.UnknownArgsException
Instantiates a new unknown args exception.
UnknownArgsException(String[], String, Throwable, String) - Constructor for exception org.refcodes.console.UnknownArgsException
Instantiates a new unknown args exception.
UnknownArgsException(String[], String, Throwable) - Constructor for exception org.refcodes.console.UnknownArgsException
Instantiates a new unknown args exception.
UnknownArgsException(String[], String) - Constructor for exception org.refcodes.console.UnknownArgsException
Instantiates a new unknown args exception.
UnknownArgsException(String[], Throwable, String) - Constructor for exception org.refcodes.console.UnknownArgsException
Instantiates a new unknown args exception.
UnknownArgsException(String[], Throwable) - Constructor for exception org.refcodes.console.UnknownArgsException
Instantiates a new unknown args exception.

V

valueOf(String) - Static method in enum org.refcodes.console.ExitCode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.refcodes.console.SyntaxNotation
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.refcodes.console.ExitCode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.refcodes.console.SyntaxNotation
Returns an array containing the constants of this enum type, in the order they are declared.
verboseSwitch(String) - Static method in class org.refcodes.console.ConsoleSugar
Verbose switch.
verboseSwitch() - Static method in class org.refcodes.console.ConsoleSugar
Verbose switch.
VerboseSwitchImpl - Class in org.refcodes.console
A predefined verbose switch.
VerboseSwitchImpl(String) - Constructor for class org.refcodes.console.VerboseSwitchImpl
Constructs the predefined verbose switch.
VerboseSwitchImpl() - Constructor for class org.refcodes.console.VerboseSwitchImpl
Constructs the predefined verbose switch.

W

withArgsParser(ArgsParser) - Method in interface org.refcodes.console.ArgsParserAccessor.ArgsParserBuilder
Sets the args-parser for the ArgsParser property.
withBannerFont(Font) - Method in interface org.refcodes.console.ArgsParser
With banner font.
withBannerFontPalette(char[]) - Method in interface org.refcodes.console.ArgsParser
With banner font palette.
withConsoleWidth(int) - Method in interface org.refcodes.console.ArgsParser
Set the console with.
withCopyrightNote(String) - Method in interface org.refcodes.console.ArgsParser
Set the copyright note used by the ArgsParser.printHelp() method when writing out the copyright claim and make other adjustments with the result (with regards to the Builder-Pattern).
withDescription(String) - Method in interface org.refcodes.console.ArgsParser
With description.
withErrorOut(PrintStream) - Method in interface org.refcodes.console.ArgsParser
Set the error out PrintStream and make other adjustments with the result (with regards to the Builder-Pattern).
withEvalArgs(String[]) - Method in interface org.refcodes.console.ArgsParser
Same as ArgsParser.evalArgs(String[]) with the difference that this class's instance being invoked is returned as of the builder pattern.
withEvalArgs(List<String>) - Method in interface org.refcodes.console.ArgsParser
Same as ArgsParser.evalArgs(List) with the difference that this class's instance being invoked is returned as of the builder pattern.
withLicenseNote(String) - Method in interface org.refcodes.console.ArgsParser
Set the license note used by the ArgsParser.printHelp() method when writing out the licensing conditions and make other adjustments with the result (with regards to the Builder-Pattern).
withLineBreak(String) - Method in interface org.refcodes.console.ArgsParser
Set the console's line break.
withMaxConsoleWidth(int) - Method in interface org.refcodes.console.ArgsParser
Set the maximum console width to use in case the console width is greater than the maximum you want.
withName(String) - Method in interface org.refcodes.console.ArgsParser
With name.
withParseArgs(String[]) - Method in interface org.refcodes.console.ArgsParser
Calls ArgsParser.evalArgs(String[]) and returns this invoked instance as of the builder pattern.
withParseArgs(String[]) - Method in interface org.refcodes.console.ArgsParserMixin
Evaluates the provided command line arguments .
withParseArgs(List<String>) - Method in interface org.refcodes.console.ArgsParserMixin
Evaluates the provided command line arguments .
withRootCondition(Condition) - Method in interface org.refcodes.console.RootConditionAccessor.RootConditionBuilder
Sets the rootCondition for the rootCondition property.
withSeparatorChar(char) - Method in interface org.refcodes.console.ArgsParser
Set the character to be used when printing a separator line with the ArgsParser.printSeparatorLn() method.
withStandardOut(PrintStream) - Method in interface org.refcodes.console.ArgsParser
Set the standard out PrintStream and make other adjustments with the result (with regards to the Builder-Pattern).
withSyntaxNotation(SyntaxNotation) - Method in interface org.refcodes.console.ArgsParser
Set the SyntaxNotation and make other adjustments with the result (with regards to the Builder-Pattern).
withTitle(String) - Method in interface org.refcodes.console.ArgsParser
With title.
withUsageLabel(String) - Method in interface org.refcodes.console.ArgsParser
Set the usage label used by the ArgsParser.printHelp() method when writing out the syntax and make other adjustments with the result (with regards to the Builder-Pattern).

X

xor(Syntaxable...) - Static method in class org.refcodes.console.ConsoleSugar
Xor.
XorConditionImpl - Class in org.refcodes.console
An XorConditionImpl represents a list of Syntaxable instances of which only one is allowed to be parsed successfully when the Syntaxables' parseArgs(String[]) methods are invoked.
XorConditionImpl(Syntaxable...) - Constructor for class org.refcodes.console.XorConditionImpl
Instantiates a new xor condition impl.

_

_value - Variable in class org.refcodes.console.AbstractOperand
 
A C E F G H I L O P Q R S T U V W X _ 
Skip navigation links

Copyright © 2018. All rights reserved.