public class MultiCompletor extends Object implements Completor
A completor that contains multiple embedded completors. This differs
from the ArgumentCompletor
, in that the nested completors
are dispatched individually, rather than delimited by arguments.
Constructor and Description |
---|
MultiCompletor()
Construct a MultiCompletor with no embedded completors.
|
MultiCompletor(Completor[] completors)
Construct a MultiCompletor with the specified
Completor instances. |
MultiCompletor(List<String> completors)
Construct a MultiCompletor with the specified list of
Completor instances. |
Modifier and Type | Method and Description |
---|---|
int |
complete(String buffer,
int pos,
List<String> cand)
Populates candidates with a list of possible completions for the
buffer.
|
Completor[] |
getCompletors() |
void |
setCompletors(Completor[] completors) |
public MultiCompletor()
public MultiCompletor(List<String> completors)
Completor
instances.public int complete(String buffer, int pos, List<String> cand)
Completor
List
before returning.public void setCompletors(Completor[] completors)
public Completor[] getCompletors()
Copyright © 2024. All rights reserved.