Package | Description |
---|---|
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.
|
org.refcodes.console.impls |
Implementations:
The
impls package contains implementations of the types defined
by this artifact. |
Modifier and Type | Method and Description |
---|---|
static SyntaxNotation |
SyntaxNotation.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SyntaxNotation[] |
SyntaxNotation.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
String |
Syntaxable.parseSyntax(SyntaxNotation aSyntaxNotation)
This method is to be called from from the root
Syntaxable ; when
invoking syntax retrieval inside the Syntaxable hierarchy use the
method Syntaxable.toSyntax(SyntaxNotation) . |
void |
ArgsParser.setSyntaxNotation(SyntaxNotation aSyntaxNotation)
Set the
SyntaxNotation . |
String |
Syntaxable.toSyntax(SyntaxNotation aSyntaxNotation)
This method is to be called from inside the
Syntaxable hierarchy;
use the method Syntaxable.parseSyntax(SyntaxNotation) in case you invoke
syntax retrieval from the root Syntaxable . |
default ArgsParser |
ArgsParser.withSyntaxNotation(SyntaxNotation aSyntaxNotation)
Set the
SyntaxNotation and make other adjustments with the result
(with regards to the builder pattern). |
Modifier and Type | Method and Description |
---|---|
String |
AbstractSyntaxable.parseSyntax(SyntaxNotation aSyntaxNotation) |
String |
XorConditionImpl.parseSyntax(SyntaxNotation aSyntaxNotation) |
String |
AndConditionImpl.parseSyntax(SyntaxNotation aSyntaxNotation) |
String |
OrConditionImpl.parseSyntax(SyntaxNotation aSyntaxNotation) |
void |
ArgsParserImpl.setSyntaxNotation(SyntaxNotation aSyntaxNotation) |
String |
XorConditionImpl.toSyntax(SyntaxNotation aSyntaxNotation) |
String |
AbstractCondition.toSyntax(SyntaxNotation aSyntaxNotation) |
String |
AbstractOperand.toSyntax(SyntaxNotation aSyntaxNotation) |
String |
AbstractOption.toSyntax(SyntaxNotation aSyntaxNotation) |
String |
OptionalConditionImpl.toSyntax(SyntaxNotation aSyntaxNotation) |
Copyright © 2016. All rights reserved.