org.sonatype.gshell.command.resolver
Class NodePathCompleter

java.lang.Object
  extended by org.sonatype.gshell.command.resolver.NodePathCompleter
All Implemented Interfaces:
jline.console.completer.Completer

@Singleton
public class NodePathCompleter
extends Object
implements jline.console.completer.Completer

Completer for node path names.

Since:
2.5
Author:
Jason Dillon

Constructor Summary
NodePathCompleter(CommandResolver resolver)
           
 
Method Summary
protected  int buildCandidates(List<CharSequence> candidates, Collection<Node> matches, String prefix)
           
 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

NodePathCompleter

@Inject
public NodePathCompleter(CommandResolver resolver)
Method Detail

complete

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

buildCandidates

protected int buildCandidates(List<CharSequence> candidates,
                              Collection<Node> matches,
                              String prefix)


Copyright © 2008-2011 Sonatype. All Rights Reserved.