Class SimpleCompletor
java.lang.Object
org.codehaus.groovy.tools.shell.util.SimpleCompletor
- All Implemented Interfaces:
Cloneable
,jline.console.completer.Completer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static interface
Filter for elements in the completor. -
Constructor Summary
ConstructorsConstructorDescriptionSimpleCompletor
(Closure loader) Complete candidates using the whitespearated values in read from the specified Reader.SimpleCompletor
(Reader reader) Complete candidates using the contents of the specified Reader.SimpleCompletor
(String candidateString) Create a new SimpleCompletor with a single possible completion values.SimpleCompletor
(String[] candidateStrings) Create a new SimpleCompletor with a list of possible completion values.SimpleCompletor
(String[] strings, SimpleCompletor.SimpleCompletorFilter filter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addCandidateString
(String candidateString) clone()
int
void
setCandidates
(SortedSet candidates) void
setCandidateStrings
(String[] strings) void
setDelimiter
(String delimiter)
-
Constructor Details
-
SimpleCompletor
public SimpleCompletor() -
SimpleCompletor
Create a new SimpleCompletor with a single possible completion values. -
SimpleCompletor
Create a new SimpleCompletor with a list of possible completion values. -
SimpleCompletor
-
SimpleCompletor
Complete candidates using the contents of the specified Reader.- Throws:
IOException
-
SimpleCompletor
Complete candidates using the whitespearated values in read from the specified Reader.- Throws:
IOException
-
SimpleCompletor
-
-
Method Details
-
add
-
leftShift
-
complete
- Specified by:
complete
in interfacejline.console.completer.Completer
-
setDelimiter
-
getDelimiter
-
setCandidates
-
getCandidates
-
setCandidateStrings
-
addCandidateString
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-