|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.co.flamingpenguin.jewel.cli.CliFactory
CliFactory
instead
@Deprecated public abstract class CliFactory
Constructs a Cli from an annotated interface definition.
Option
Constructor Summary | |
---|---|
CliFactory()
Deprecated. |
Method Summary | ||
---|---|---|
static
|
createCli(Class<O> klass)
Deprecated. Construct a Cli from an annotated interface definition |
|
static
|
createCliUsingInstance(O options)
Deprecated. Construct a Cli from an annotated class |
|
static
|
parseArguments(Class<O> klass,
String... arguments)
Deprecated. Parse arguments from an annotated interface definition |
|
static
|
parseArgumentsUsingInstance(O options,
String... arguments)
Deprecated. Parse arguments from an annotated class instance |
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(Class<O> klass)
O
- The type of the interface that will be used to present the
argumentsklass
- The annotated interface definition
public static <O> Cli<O> createCliUsingInstance(O options)
O
- The type of the class used to present the argumentsoptions
- The annotated class
public static <O> O parseArguments(Class<O> klass, String... arguments) throws ArgumentValidationException
O
- The type of the interface that will be used to present the
argumentsklass
- The annotated interface definitionarguments
-
InvalidArgumentsException
ArgumentValidationException
public static <O> O parseArgumentsUsingInstance(O options, String... arguments) throws ArgumentValidationException
O
- The type of the class used to present the argumentsklass
- The annotated interface definitionarguments
-
InvalidArgumentsException
ArgumentValidationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |