jline
Class ClassNameCompletor
java.lang.Object
jline.SimpleCompletor
jline.ClassNameCompletor
- All Implemented Interfaces:
- java.lang.Cloneable, Completor
- public class ClassNameCompletor
- extends SimpleCompletor
A Completor implementation that completes java class names. By default,
it scans the java class path to locate all the classes.
- Author:
- Marc Prud'hommeaux
Method Summary |
private static java.util.Set |
getClassFiles(java.lang.String root,
java.util.Set holder,
java.io.File directory,
int[] maxDirectories)
|
static java.lang.String[] |
getClassNames()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassNameCompletor
public ClassNameCompletor()
throws java.io.IOException
- Complete candidates using all the classes available in the
java CLASSPATH.
ClassNameCompletor
public ClassNameCompletor(SimpleCompletor.SimpleCompletorFilter filter)
throws java.io.IOException
getClassNames
public static java.lang.String[] getClassNames()
throws java.io.IOException
- Throws:
java.io.IOException
getClassFiles
private static java.util.Set getClassFiles(java.lang.String root,
java.util.Set holder,
java.io.File directory,
int[] maxDirectories)