org.crsh.shell.impl.command.system
Class repl

java.lang.Object
  extended by org.crsh.command.AbstractCommand
      extended by org.crsh.command.BaseCommand
          extended by org.crsh.shell.impl.command.system.repl
All Implemented Interfaces:
Completer, ReplCompleter

public class repl
extends BaseCommand
implements ReplCompleter

Author:
Julien Viet

Field Summary
 
Fields inherited from class org.crsh.command.BaseCommand
log, unmatched
 
Fields inherited from class org.crsh.command.AbstractCommand
context, out
 
Constructor Summary
repl()
           
 
Method Summary
 Completion complete(ParameterDescriptor parameter, String prefix)
          Query the completer for a set of completions for the given prefix.
 void main(InvocationContext<Object> context, String name)
           
 
Methods inherited from class org.crsh.command.BaseCommand
execute, getUnmatched, readLine, readLine
 
Methods inherited from class org.crsh.command.AbstractCommand
peekContext, popContext, pushContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

repl

public repl()
Method Detail

main

public void main(InvocationContext<Object> context,
                 String name)
          throws Exception
Throws:
Exception

complete

public Completion complete(ParameterDescriptor parameter,
                           String prefix)
                    throws Exception
Description copied from interface: Completer

Query the completer for a set of completions for the given prefix. The returned Completion object provides the possible completion matching the prefix argument.

Specified by:
complete in interface Completer
Parameters:
parameter - the completed parameter
prefix - the prefix to complete
Returns:
the possible suffix map
Throws:
Exception - any exception that would prevent completion to perform correctly


Copyright © 2015 eXo Platform SAS. All Rights Reserved.