|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crsh.cli.completers.EnumCompleter
public class EnumCompleter
Field Summary | |
---|---|
private static EnumCompleter |
instance . |
Constructor Summary | |
---|---|
EnumCompleter() |
Method Summary | |
---|---|
Completion |
complete(ParameterDescriptor parameter, String prefix) Query the completer for a set of completions for the given prefix. |
static EnumCompleter |
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 |
---|
private static final EnumCompleter instance
Constructor Detail |
---|
public EnumCompleter()
Method Detail |
---|
public static EnumCompleter getInstance()
public Completion complete(ParameterDescriptor parameter, String prefix) throws Exception
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.
complete
in interface Completer
parameter
- the completed parameterprefix
- the prefix to completeException
- any exception that would prevent completion to perform correctly
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |