| Package | Description |
|---|---|
| org.apache.ode.utils.cli |
Contains libraries for handling commandline arguments (i.e., the
String[] passed-in by a main method). |
| Modifier and Type | Class and Description |
|---|---|
class |
Argument
Models an argument, e.g., the
baz in foo baz,
where foo is the command. |
class |
Flag |
class |
FlagWithArgument
A fragment that represents a flag with an argument, e.g.,
--foo bar. |
class |
LastArgument
A fragment implementation that picks-off the last argument on the line early.
|
class |
MultiArgument
A multiple argument commandline fragment that greedily consumes what's left on
the commandline as arguments.
|
class |
XorGroup |
| Modifier and Type | Method and Description |
|---|---|
CommandlineFragment[] |
Fragments.getFragments()
Used after the
Fragments.matches(String[]) method, this returns the fragments
together with the settings that they have absorbed from the arguments. |
CommandlineFragment[] |
Fragments.getFragmentsInUserOrder()
For use in formatting commandline help, this method orders the constituent
fragments in a way that would make sense to a user.
|
CommandlineFragment |
XorGroup.getMatched() |
| Modifier and Type | Method and Description |
|---|---|
void |
XorGroup.addFragment(CommandlineFragment frag) |
| Constructor and Description |
|---|
Fragments(CommandlineFragment[] frags)
Create a new instance.
|
Copyright © 2017 WSO2. All Rights Reserved.