org.crsh.lang.impl.groovy.closure
Class CommandElement
java.lang.Object
org.crsh.lang.impl.groovy.closure.PipeLineElement
org.crsh.lang.impl.groovy.closure.CommandElement
-
class CommandElement
- extends PipeLineElement
-
- Author:
- Julien Viet
Constructor Summary |
|
CommandElement(String commandName, Command<?> command, Map<String,Object> options)
|
private |
CommandElement(String commandName, Command<?> command, Map<String,Object> options, String subordinate, Map<String,Object> subordinateOptions, List<Object> args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
commandName
final String commandName
-
.
command
final Command<?> command
-
.
options
final Map<String,Object> options
-
.
subordinate
final String subordinate
-
.
subordinateOptions
final Map<String,Object> subordinateOptions
-
.
args
final List<Object> args
-
.
CommandElement
public CommandElement(String commandName,
Command<?> command,
Map<String,Object> options)
CommandElement
private CommandElement(String commandName,
Command<?> command,
Map<String,Object> options,
String subordinate,
Map<String,Object> subordinateOptions,
List<Object> args)
subordinate
public CommandElement subordinate(String name)
-
merge
public CommandElement merge(Map<String,?> options,
List<?> arguments)
-
create
CommandInvoker create()
throws CommandException
-
- Specified by:
create
in class PipeLineElement
-
- Throws:
CommandException
format
private void format(Object o,
StringBuilder buffer)
-
toString
void toString(StringBuilder buffer)
-
- Specified by:
toString
in class PipeLineElement
-
Copyright © 2015 eXo Platform SAS. All Rights Reserved.