org.apache.blur.shell
Class CommandCompletor

java.lang.Object
  extended by org.apache.blur.shell.CommandCompletor
All Implemented Interfaces:
jline.console.completer.Completer

public class CommandCompletor
extends Object
implements jline.console.completer.Completer


Constructor Summary
CommandCompletor(Map<String,Command> commands, Blur.Iface client)
           
 
Method Summary
 int complete(Blur.Iface client, String potentialTable, List<CharSequence> candidates, String commandName)
           
 int complete(String buf, int cursor, List<CharSequence> candidates)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandCompletor

public CommandCompletor(Map<String,Command> commands,
                        Blur.Iface client)
Method Detail

complete

public int complete(String buf,
                    int cursor,
                    List<CharSequence> candidates)
Specified by:
complete in interface jline.console.completer.Completer

complete

public int complete(Blur.Iface client,
                    String potentialTable,
                    List<CharSequence> candidates,
                    String commandName)
             throws BlurException,
                    TException
Throws:
BlurException
TException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.