jline

Class ClassNameCompletor

Implemented Interfaces:
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

Nested Class Summary

Nested classes/interfaces inherited from class jline.SimpleCompletor

SimpleCompletor.NoOpFilter, SimpleCompletor.SimpleCompletorFilter

Field Summary

Fields inherited from class jline.SimpleCompletor

candidates, delimiter, filter

Constructor Summary

ClassNameCompletor()
Complete candidates using all the classes available in the java CLASSPATH.
ClassNameCompletor(SimpleCompletor.SimpleCompletorFilter filter)

Method Summary

private static Set
getClassFiles(String root, Set holder, File directory, int[] maxDirectories)
static String[]
getClassNames()

Methods inherited from class jline.SimpleCompletor

addCandidateString, clone, complete, getCandidates, getDelimiter, getStrings, setCandidateStrings, setCandidates, setDelimiter

Constructor Details

ClassNameCompletor

public ClassNameCompletor()
            throws IOException
Complete candidates using all the classes available in the java CLASSPATH.

ClassNameCompletor

public ClassNameCompletor(SimpleCompletor.SimpleCompletorFilter filter)
            throws IOException

Method Details

getClassFiles

private static Set getClassFiles(String root,
                                 Set holder,
                                 File directory,
                                 int[] maxDirectories)

getClassNames

public static String[] getClassNames()
            throws IOException