org.crsh.shell.impl.command.spi
Class Command<C,P>
java.lang.Object
org.crsh.shell.impl.command.spi.Command<C,P>
- Type Parameters:
C - the consumed typeP - the the produced type
- Direct Known Subclasses:
- CommandImpl
public abstract class Command<C,P>
- extends Object
The real command that will be used in an command pipeline.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Command
public Command()
getInvoker
public abstract CommandInvoker<C,P> getInvoker()
throws CommandCreationException
- Returns:
- an invoker for this command.
- Throws:
CommandCreationException
getMatch
public abstract InvocationMatch<?> getMatch()
- Returns:
- the match that created this command
getProducedType
public abstract Class<P> getProducedType()
- Returns:
- the command produced type
getConsumedType
public abstract Class<C> getConsumedType()
- Returns:
- the command consumed type
Copyright © 2014 eXo Platform SAS. All Rights Reserved.