public class CompletionHandler extends Object
| Constructor and Description |
|---|
CompletionHandler()
Registers all the default completions.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getTypeResult(String id,
Object input)
Gets the values from the registered functions.
|
boolean |
isRegistered(String id)
Checks if the ID is currently registered.
|
void |
register(String id,
CompletionResolver completionResolver)
Registers a new completion.
|
public CompletionHandler()
public void register(String id, CompletionResolver completionResolver)
id - The ID of the completion to register.completionResolver - A function with the result you want.public List<String> getTypeResult(String id, Object input)
id - The ID to get from.input - The input to base an output (normally not needed).public boolean isRegistered(String id)
id - The ID to check.Copyright © 2019. All rights reserved.