public interface Command<A>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Command.Mapping<A> |
static class |
Command.Parser<A> |
| Modifier and Type | Method and Description |
|---|---|
static <T,A,B> Command.Parser<T> |
argument(java.util.function.BiFunction<? super A,? super B,? extends T> f,
Argument<A> argA,
Argument<B> argB) |
static <T,A> Command.Parser<T> |
argument(java.util.function.Function<? super A,? extends T> f,
Argument<A> argument) |
static <T,A,B,C> Command.Parser<T> |
argument(Function3<? super A,? super B,? super C,? extends T> f,
Argument<A> argA,
Argument<B> argB,
Argument<C> argC) |
static <T,A,B,C,D> |
argument(Function4<? super A,? super B,? super C,? super D,? extends T> f,
Argument<A> argA,
Argument<B> argB,
Argument<C> argC,
Argument<D> argD) |
static <T,A,B,C,D,E> |
argument(Function5<? super A,? super B,? super C,? super D,? super E,? extends T> f,
Argument<A> argA,
Argument<B> argB,
Argument<C> argC,
Argument<D> argD,
Argument<E> argE) |
static <T,A,B,C,D,E,F> |
argument(Function6<? super A,? super B,? super C,? super D,? super E,? super F,? extends T> f,
Argument<A> argA,
Argument<B> argB,
Argument<C> argC,
Argument<D> argD,
Argument<E> argE,
Argument<F> argF) |
static <T,A,B,C,D,E,F,G> |
argument(Function7<? super A,? super B,? super C,? super D,? super E,? super F,? super G,? extends T> f,
Argument<A> argA,
Argument<B> argB,
Argument<C> argC,
Argument<D> argD,
Argument<E> argE,
Argument<F> argF,
Argument<G> argG) |
static <T> Command.Parser<T> |
argument(java.util.function.Supplier<T> f) |
static <A> java.util.List<java.util.Map.Entry<java.util.List<java.lang.String>,Command<A>>> |
getEntries(Command<A> cmd) |
<B> Command<B> |
map(java.util.function.Function<? super A,? extends B> f) |
static <A> Command.Mapping<A> |
mapping(Tuple2<java.lang.String,Command<? extends A>>... entries) |
static <K,V> Tuple2<K,V> |
pair(K key,
V value) |
static <A> Either<CommandFailure<A>,CommandSuccess<A>> |
parse(java.lang.String[] args,
Command<A> command) |
static <A> java.util.Optional<A> |
parseO(java.lang.String[] args,
Command<A> command) |
static <A> Either<CommandFailure<A>,CommandSuccess<A>> |
parseWithIndex(int index,
java.lang.String[] args,
Command<A> command) |
static <A> Command.Parser<A> |
present(A value) |
static <A> CommandTabResult<A> |
tabComplete(java.lang.String[] args,
Command<A> command) |
static <A> CommandTabResult<A> |
tabCompleteWithIndex(int index,
java.lang.String[] args,
Command<A> command) |
@SafeVarargs static <A> Command.Mapping<A> mapping(Tuple2<java.lang.String,Command<? extends A>>... entries)
static <A> Command.Parser<A> present(A value)
static <T> Command.Parser<T> argument(java.util.function.Supplier<T> f)
static <T,A> Command.Parser<T> argument(java.util.function.Function<? super A,? extends T> f, Argument<A> argument)
static <T,A,B> Command.Parser<T> argument(java.util.function.BiFunction<? super A,? super B,? extends T> f, Argument<A> argA, Argument<B> argB)
static <T,A,B,C> Command.Parser<T> argument(Function3<? super A,? super B,? super C,? extends T> f, Argument<A> argA, Argument<B> argB, Argument<C> argC)
static <T,A,B,C,D> Command.Parser<T> argument(Function4<? super A,? super B,? super C,? super D,? extends T> f, Argument<A> argA, Argument<B> argB, Argument<C> argC, Argument<D> argD)
static <T,A,B,C,D,E> Command.Parser<T> argument(Function5<? super A,? super B,? super C,? super D,? super E,? extends T> f, Argument<A> argA, Argument<B> argB, Argument<C> argC, Argument<D> argD, Argument<E> argE)
static <T,A,B,C,D,E,F> Command.Parser<T> argument(Function6<? super A,? super B,? super C,? super D,? super E,? super F,? extends T> f, Argument<A> argA, Argument<B> argB, Argument<C> argC, Argument<D> argD, Argument<E> argE, Argument<F> argF)
static <T,A,B,C,D,E,F,G> Command.Parser<T> argument(Function7<? super A,? super B,? super C,? super D,? super E,? super F,? super G,? extends T> f, Argument<A> argA, Argument<B> argB, Argument<C> argC, Argument<D> argD, Argument<E> argE, Argument<F> argF, Argument<G> argG)
static <K,V> Tuple2<K,V> pair(K key, V value)
static <A> Either<CommandFailure<A>,CommandSuccess<A>> parse(java.lang.String[] args, Command<A> command)
static <A> java.util.Optional<A> parseO(java.lang.String[] args,
Command<A> command)
static <A> Either<CommandFailure<A>,CommandSuccess<A>> parseWithIndex(int index, java.lang.String[] args, Command<A> command)
static <A> CommandTabResult<A> tabComplete(java.lang.String[] args, Command<A> command)
static <A> CommandTabResult<A> tabCompleteWithIndex(int index, java.lang.String[] args, Command<A> command)