Class SimpleCompletor
- java.lang.Object
-
- jline.SimpleCompletor
-
- org.codehaus.groovy.tools.shell.util.SimpleCompletor
-
- All Implemented Interfaces:
java.lang.Cloneable,jline.Completor
public class SimpleCompletor extends jline.SimpleCompletorSupport for simple completors.- Version:
- $Id$
- Author:
- Jason Dillon
-
-
Constructor Summary
Constructors Constructor Description SimpleCompletor()SimpleCompletor(Closure loader)SimpleCompletor(java.lang.String[] candidates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.String candidate)intcomplete(java.lang.String buffer, int cursor, java.util.List clist)java.lang.ObjectleftShift(java.lang.String s)
-
-
-
Constructor Detail
-
SimpleCompletor
public SimpleCompletor(java.lang.String[] candidates)
-
SimpleCompletor
public SimpleCompletor()
-
SimpleCompletor
public SimpleCompletor(Closure loader)
-
-
Method Detail
-
add
public void add(java.lang.String candidate)
-
leftShift
public java.lang.Object leftShift(java.lang.String s)
-
complete
public int complete(java.lang.String buffer, int cursor, java.util.List clist)- Specified by:
completein interfacejline.Completor- Overrides:
completein classjline.SimpleCompletor
-
-