public static class SimpleCLIPanel.CommandlineCompletion extends Object
Constructor and Description |
---|
SimpleCLIPanel.CommandlineCompletion()
default constructor.
|
Modifier and Type | Method and Description |
---|---|
Vector<String> |
getClassMatches(String partial)
returns all the class/package matches with the partial search string.
|
String |
getClassname(String partial)
returns the classname part of the partial classname.
|
String |
getCommonPrefix(Vector<String> list)
returns the common prefix for all the items in the list.
|
boolean |
getDebug()
returns whether debug mode is on.
|
Vector<String> |
getFileMatches(String partial)
returns all the file/dir matches with the partial search string.
|
Vector<String> |
getMatches(String partial)
returns all the matches with the partial search string, files or
classes.
|
String |
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.
|
public SimpleCLIPanel.CommandlineCompletion()
public boolean getDebug()
public void setDebug(boolean value)
value
- if true then debug mode is onpublic boolean isClassname(String partial)
partial
- the string to testpublic String getPackage(String partial)
partial
- the partial classnamepublic String getClassname(String partial)
partial
- the partial classnamepublic Vector<String> getFileMatches(String partial)
partial
- the partial search stringpublic Vector<String> getClassMatches(String partial)
partial
- the partial search stringpublic Vector<String> getMatches(String partial)
partial
- the partial search stringCopyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.