|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.gui.SimpleCLIPanel.CommandlineCompletion
public static class SimpleCLIPanel.CommandlineCompletion
A class for commandline completion of classnames.
| Constructor Summary | |
|---|---|
SimpleCLIPanel.CommandlineCompletion()
default constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleCLIPanel.CommandlineCompletion()
| Method Detail |
|---|
public boolean getDebug()
public void setDebug(boolean value)
value - if true then debug mode is onpublic boolean isClassname(String partial)
partial - the string to test
public String getPackage(String partial)
partial - the partial classname
public String getClassname(String partial)
partial - the partial classname
public Vector<String> getFileMatches(String partial)
partial - the partial search string
public Vector<String> getClassMatches(String partial)
partial - the partial search string
public Vector<String> getMatches(String partial)
partial - the partial search string
public String getCommonPrefix(Vector<String> list)
list - the list to return the common prefix for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||