org.crsh.cmdline.completers
Class EmptyCompleter

java.lang.Object
  extended by org.crsh.cmdline.completers.EmptyCompleter
All Implemented Interfaces:
Completer

public class EmptyCompleter
extends Object
implements Completer

A Completer implementation that returns no completion results.

Version:
$Revision$
Author:
Julien Viet

Field Summary
private static EmptyCompleter instance
          .
 
Constructor Summary
EmptyCompleter()
           
 
Method Summary
 ValueCompletion complete(ParameterDescriptor<?> parameter, String prefix)
          Returns the value returned by Collections.emptyList().
static EmptyCompleter getInstance()
          Returns the empty completer instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static final EmptyCompleter instance
.

Constructor Detail

EmptyCompleter

public EmptyCompleter()
Method Detail

getInstance

public static EmptyCompleter getInstance()
Returns the empty completer instance.

Returns:
the instance

complete

public ValueCompletion complete(ParameterDescriptor<?> parameter,
                                String prefix)
Returns the value returned by Collections.emptyList().

Specified by:
complete in interface Completer
Parameters:
parameter - the completed parameter
prefix - the prefix to complete
Returns:
the possible suffix map


Copyright © 2012 eXo Platform SAS. All Rights Reserved.