org.crsh.lang.impl.groovy.closure
Class CommandElement

java.lang.Object
  extended by org.crsh.lang.impl.groovy.closure.PipeLineElement
      extended by org.crsh.lang.impl.groovy.closure.CommandElement

 class CommandElement
extends PipeLineElement

    

Author:
Julien Viet

Field Summary
(package private)  List<Object> args
          .
(package private)  Command<?> command
          .
(package private)  String commandName
          .
(package private)  Map<String,Object> options
          .
(package private)  String subordinate
          .
(package private)  Map<String,Object> subordinateOptions
          .
 
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)
           
 
Method Summary
(package private)  CommandInvoker create()
           
private  void format(Object o, StringBuilder buffer)
           
 CommandElement merge(Map<String,?> options, List<?> arguments)
           
 CommandElement subordinate(String name)
           
(package private)  void toString(StringBuilder buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
.

Constructor Detail

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)
Method Detail

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.