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 classstatic interfaceFilter 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 TypeMethodDescriptionvoidvoidaddCandidateString(String candidateString) clone()intvoidsetCandidates(SortedSet candidates) voidsetCandidateStrings(String[] strings) voidsetDelimiter(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:
completein interfacejline.console.completer.Completer
-
setDelimiter
-
getDelimiter
-
setCandidates
-
getCandidates
-
setCandidateStrings
-
addCandidateString
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-