public class

AutocompletionResult

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.interpreter.AutocompletionResult

Class Overview

An object representing the result of an autocompletion request.

Summary

Fields
public static final AutocompletionResult EMPTY
Public Constructors
AutocompletionResult()
AutocompletionResult(List<String> autocompletes)
AutocompletionResult(char lastSeparator)
AutocompletionResult(List<String> autocompletes, char lastSeparator)
Public Methods
boolean add(String entry)
void addAll(Collection<String> entries)
static List<String> filterStartsWith(String text, List<String> toks)
List<String> getAutocompletes()
char getLastSeparator()
The last separator from where the autocompletion start.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final AutocompletionResult EMPTY

Public Constructors

public AutocompletionResult ()

public AutocompletionResult (List<String> autocompletes)

public AutocompletionResult (char lastSeparator)

public AutocompletionResult (List<String> autocompletes, char lastSeparator)

Public Methods

public boolean add (String entry)

public void addAll (Collection<String> entries)

public static List<String> filterStartsWith (String text, List<String> toks)

public List<String> getAutocompletes ()

public char getLastSeparator ()

The last separator from where the autocompletion start. For example, when "this.foo.b" is typed, the completion will stand on "b" and the last separator will be ".". The Default separator is a single space.

public String toString ()