org.crsh.cli.spi
Interface Completer

All Known Subinterfaces:
ReplCompleter
All Known Implementing Classes:
AbstractPathCompleter, EmptyCompleter, EnumCompleter, FileCompleter, JNDIHandler.JNDICompleter, ObjectNameCompleter, repl, SystemPropertyNameCompleter, ThreadCompleter

public interface Completer


Method Summary
 Completion complete(ParameterDescriptor parameter, String prefix)
          Query the completer for a set of completions for the given prefix.
 

Method Detail

complete

Completion complete(ParameterDescriptor parameter,
                    String prefix)
                    throws Exception

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

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.