程序包 weka.gui
类 SimpleCLIPanel.CommandlineCompletion
java.lang.Object
weka.gui.SimpleCLIPanel.CommandlineCompletion
- 封闭类:
- SimpleCLIPanel
A class for commandline completion of classnames.
- 版本:
- $Revision: 7059 $
- 作者:
- FracPete (fracpete at waikato dot ac dot nz)
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getClassMatches
(String partial) returns all the class/package matches with the partial search string.getClassname
(String partial) returns the classname part of the partial classname.getCommonPrefix
(Vector<String> list) returns the common prefix for all the items in the list.boolean
getDebug()
returns whether debug mode is on.getFileMatches
(String partial) returns all the file/dir matches with the partial search string.getMatches
(String partial) returns all the matches with the partial search string, files or classes.getPackage
(String partial) returns the packages part of the partial classname.boolean
isClassname
(String partial) tests whether the given partial string is the name of a class with classpath - it basically tests, whether the string consists only of alphanumeric literals, underscores and dots.void
setDebug
(boolean value) sets debug mode on/off.
-
构造器详细资料
-
CommandlineCompletion
public CommandlineCompletion()default constructor.
-
-
方法详细资料
-
getDebug
public boolean getDebug()returns whether debug mode is on.- 返回:
- true if debug is on
-
setDebug
public void setDebug(boolean value) sets debug mode on/off.- 参数:
value
- if true then debug mode is on
-
isClassname
tests whether the given partial string is the name of a class with classpath - it basically tests, whether the string consists only of alphanumeric literals, underscores and dots.- 参数:
partial
- the string to test- 返回:
- true if it looks like a classname
-
getPackage
returns the packages part of the partial classname.- 参数:
partial
- the partial classname- 返回:
- the package part of the partial classname
-
getClassname
returns the classname part of the partial classname.- 参数:
partial
- the partial classname- 返回:
- the class part of the classname
-
getFileMatches
returns all the file/dir matches with the partial search string.- 参数:
partial
- the partial search string- 返回:
- all the matches
-
getClassMatches
returns all the class/package matches with the partial search string.- 参数:
partial
- the partial search string- 返回:
- all the matches
-
getMatches
returns all the matches with the partial search string, files or classes.- 参数:
partial
- the partial search string- 返回:
- all the matches
-
getCommonPrefix
returns the common prefix for all the items in the list.- 参数:
list
- the list to return the common prefix for- 返回:
- the common prefix of all the items
-