org.overlord.sramp.shell
Class TabCompleter

java.lang.Object
  extended by org.overlord.sramp.shell.TabCompleter
All Implemented Interfaces:
jline.console.completer.Completer

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

Implements tab completion for the interactive

Author:
eric.wittmann@redhat.com

Constructor Summary
TabCompleter(ShellCommandFactory factory, ShellContext context)
          Constructor.
 
Method Summary
 int complete(String buffer, int cursor, List<CharSequence> candidates)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabCompleter

public TabCompleter(ShellCommandFactory factory,
                    ShellContext context)
Constructor.

Parameters:
factory -
context -
Method Detail

complete

public int complete(String buffer,
                    int cursor,
                    List<CharSequence> candidates)
Specified by:
complete in interface jline.console.completer.Completer
See Also:
Completer.complete(java.lang.String, int, java.util.List)


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.