org.crsh.cli.impl.invocation
Class CommandInvoker<C,V>

java.lang.Object
  extended by org.crsh.cli.impl.invocation.CommandInvoker<C,V>
Direct Known Subclasses:
ObjectCommandInvoker

public abstract class CommandInvoker<C,V>
extends Object

Author:
Julien Viet

Field Summary
private  InvocationMatch<C> match
          .
 
Constructor Summary
protected CommandInvoker(InvocationMatch<C> match)
           
 
Method Summary
abstract  Type getGenericReturnType()
           
 InvocationMatch<C> getMatch()
           
abstract  Class<V> getReturnType()
           
abstract  V invoke(C command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

match

private final InvocationMatch<C> match
.

Constructor Detail

CommandInvoker

protected CommandInvoker(InvocationMatch<C> match)
Method Detail

getReturnType

public abstract Class<V> getReturnType()

getGenericReturnType

public abstract Type getGenericReturnType()

getMatch

public final InvocationMatch<C> getMatch()

invoke

public abstract V invoke(C command)
                  throws InvocationException,
                         SyntaxException
Throws:
InvocationException
SyntaxException


Copyright © 2015 eXo Platform SAS. All Rights Reserved.