org.crsh.cli.completers
Class AbstractPathCompleter<P>

java.lang.Object
  extended by org.crsh.cli.completers.AbstractPathCompleter<P>
All Implemented Interfaces:
Completer
Direct Known Subclasses:
FileCompleter

public abstract class AbstractPathCompleter<P>
extends Object
implements Completer


Constructor Summary
AbstractPathCompleter()
           
 
Method Summary
 Completion complete(ParameterDescriptor parameter, String prefix)
          Query the completer for a set of completions for the given prefix.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPathCompleter

public AbstractPathCompleter()
Method Detail

complete

public final 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.