|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.co.flamingpenguin.jewel.cli.CliFactory
public abstract class CliFactory
Constructs a Cli from an annotated interface definition.
Option| Constructor Summary | |
|---|---|
CliFactory()
|
|
| Method Summary | ||
|---|---|---|
static
|
createCli(java.lang.Class<O> klass)
Construct a Cli from an annotated interface definition |
|
static
|
parseArguments(java.lang.Class<O> klass,
java.lang.String... arguments)
Parse arguments from an annotated interface definition |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CliFactory()
| Method Detail |
|---|
public static <O> Cli<O> createCli(java.lang.Class<O> klass)
O - The type of the interface that will be used to present
the argumentsklass - The annotated interface definition
public static <O> O parseArguments(java.lang.Class<O> klass,
java.lang.String... arguments)
throws ArgumentValidationException
O - The type of the interface that will be used to present
the argmentsklass - The annotated interface definitionarguments -
InvalidArgumentsException
ArgumentValidationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||