# Class: com.pnfsoftware.jeb.util.interpreter.AutocompletionResult

An object representing the result of an autocompletion request.

## Constructor: AutocompletionResult

Description: Create an empty auto\-completion result using a space separator.

## Constructor: AutocompletionResult
- parameter: `autocompletes`, type: `java.util.List<java.lang.String>`

Description: Create an auto\-completion result using a space separator.
parameter: autocompletes: completion entries

## Constructor: AutocompletionResult
- parameter: `lastSeparator`, type: `char`

Description: Create an empty auto\-completion result.
parameter: lastSeparator: separator that precedes the token being completed

## Constructor: AutocompletionResult
- parameter: `autocompletes`, type: `java.util.List<java.lang.String>`
- parameter: `lastSeparator`, type: `char`

Description: Create an auto\-completion result.
parameter: autocompletes: completion entries
parameter: lastSeparator: separator that precedes the token being completed

## Static Field: EMPTY
Type: `com.pnfsoftware.jeb.util.interpreter.AutocompletionResult`
Description: Empty auto\-completion result.

## Method: add
- parameter: `entry`, type: `java.lang.String`
- return type: `boolean`

Description: Add a completion entry.
parameter: entry: completion entry
return: true if the entry was added

## Method: addAll
- parameter: `entries`, type: `java.util.Collection<java.lang.String>`

Description: Add completion entries.
parameter: entries: completion entries

## Method: getAutocompletes
- return type: `java.util.List<java.lang.String>`

Description: Get completion entries.
return: mutable list of completion entries

## Method: getLastSeparator
- return type: `char`

Description: The last separator before the token being completed. For example, when "this.foo.b" is typed, the completion applies to "b" and the last separator is ".". The default separator is a single space.
return: the last separator character

## Method: toString
- return type: `java.lang.String`


## Static Method: filterStartsWith
- parameter: `text`, type: `java.lang.String`
- parameter: `toks`, type: `java.util.List<java.lang.String>`
- return type: `java.util.List<java.lang.String>`

Description: Filter tokens by prefix.
parameter: text: required token prefix
parameter: toks: candidate tokens
return: tokens starting with `text`

