-
- All Implemented Interfaces:
public final class DslCommandBuilder<S extends Object>
-
-
Constructor Summary
Constructors Constructor Description DslCommandBuilder(DslCommandTree<S, ?> dslNode)
-
Method Summary
Modifier and Type Method Description final Unitexecutes(Command<S> command)final Unitruns(Function1<ExecutionContext<S>, Unit> command)final Unitrequired(Function1<S, Boolean> condition)final DslCommandBuilder<S>literal(String literal, Function1<LiteralArgumentBuilder<S>, Unit> apply, Function1<DslCommandBuilder<S>, Unit> block)final DslCommandBuilder<S>literals(String literals, Function1<DslCommandBuilder<S>, Unit> block)final <T extends Any, V extends Any> ReadOnlyProperty<Object, V>provideDelegate(CommandArgument<S, T, V> $self, Object thisRef, KProperty<?> property)final UnitsubCommands(Command<S> commands)-
-
Constructor Detail
-
DslCommandBuilder
DslCommandBuilder(DslCommandTree<S, ?> dslNode)
-
-
Method Detail
-
runs
final Unit runs(Function1<ExecutionContext<S>, Unit> command)
-
literal
final DslCommandBuilder<S> literal(String literal, Function1<LiteralArgumentBuilder<S>, Unit> apply, Function1<DslCommandBuilder<S>, Unit> block)
-
literals
final DslCommandBuilder<S> literals(String literals, Function1<DslCommandBuilder<S>, Unit> block)
-
provideDelegate
final <T extends Any, V extends Any> ReadOnlyProperty<Object, V> provideDelegate(CommandArgument<S, T, V> $self, Object thisRef, KProperty<?> property)
-
subCommands
final Unit subCommands(Command<S> commands)
-
-
-
-