org.crsh.lang.impl.java
Class PipeCommandMatch<T extends BaseCommand,C,P,PC extends Pipe<C,P>>

java.lang.Object
  extended by org.crsh.shell.impl.command.spi.CommandMatch<C,P>
      extended by org.crsh.lang.impl.java.BaseCommandMatch<T,C,P>
          extended by org.crsh.lang.impl.java.PipeCommandMatch<T,C,P,PC>

 class PipeCommandMatch<T extends BaseCommand,C,P,PC extends Pipe<C,P>>
extends BaseCommandMatch<T,C,P>

Author:
Julien Viet

Nested Class Summary
 
Nested classes/interfaces inherited from class org.crsh.lang.impl.java.BaseCommandMatch
BaseCommandMatch.BaseInvoker
 
Field Summary
(package private)  Class<C> consumedType
          .
private  CommandInvoker<Instance<T>,PC> invoker
          .
private  String name
          .
(package private)  Class<P> producedType
          .
(package private)  Type ret
          .
 
Constructor Summary
PipeCommandMatch(ClassShellCommand<T> baseShellCommand, CommandInvoker<Instance<T>,PC> invoker)
           
 
Method Summary
 Class<C> getConsumedType()
           
(package private)  BaseCommandMatch.BaseInvoker getInvoker(T command)
           
 Class<P> getProducedType()
           
 
Methods inherited from class org.crsh.lang.impl.java.BaseCommandMatch
getInvoker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ret

final Type ret
.


consumedType

final Class<C> consumedType
.


producedType

final Class<P> producedType
.


invoker

private final CommandInvoker<Instance<T extends BaseCommand>,PC extends Pipe<C,P>> invoker
.


name

private final String name
.

Constructor Detail

PipeCommandMatch

public PipeCommandMatch(ClassShellCommand<T> baseShellCommand,
                        CommandInvoker<Instance<T>,PC> invoker)
Method Detail

getProducedType

public Class<P> getProducedType()
Specified by:
getProducedType in class CommandMatch<C,P>
Returns:
the command produced type

getConsumedType

public Class<C> getConsumedType()
Specified by:
getConsumedType in class CommandMatch<C,P>
Returns:
the command consumed type

getInvoker

BaseCommandMatch.BaseInvoker getInvoker(T command)
                                  throws CommandException
Specified by:
getInvoker in class BaseCommandMatch<T extends BaseCommand,C,P>
Throws:
CommandException


Copyright © 2015 eXo Platform SAS. All Rights Reserved.