Groovy 2.2.1

org.codehaus.groovy.tools.shell.util
[Groovy] Class SimpleCompletor

java.lang.Object
  org.codehaus.groovy.tools.shell.util.SimpleCompletor
All Implemented Interfaces:
Completer

class SimpleCompletor

Support for simple completors.

Authors:
Jason Dillon
Version:
\$Id\$


Property Summary
SortedSet candidates

String delimiter

A delimiter to use to qualify completions.

 
Constructor Summary
SimpleCompletor(String[] candidates)

SimpleCompletor()

SimpleCompletor(Closure loader)

 
Method Summary
void add(String candidate)

void addCandidateString(String string)

int complete(String buffer, int cursor, List clist)

SortedSet getCandidates()

Object leftShift(String s)

void setCandidateStrings(String[] strings)

void setCandidates(SortedSet candidates)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

candidates

SortedSet candidates


delimiter

String delimiter
A delimiter to use to qualify completions.


 
Constructor Detail

SimpleCompletor

SimpleCompletor(String[] candidates)


SimpleCompletor

SimpleCompletor()


SimpleCompletor

SimpleCompletor(Closure loader)


 
Method Detail

add

void add(String candidate)


addCandidateString

void addCandidateString(String string)


complete

int complete(String buffer, int cursor, List clist)


getCandidates

SortedSet getCandidates()


leftShift

Object leftShift(String s)


setCandidateStrings

void setCandidateStrings(String[] strings)


setCandidates

void setCandidates(SortedSet candidates)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.