|
||||||||||
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 | |
---|---|
java.util.Vector<java.lang.String> |
getClassMatches(java.lang.String partial)
returns all the class/package matches with the partial search string |
java.lang.String |
getClassname(java.lang.String partial)
returns the classname part of the partial classname |
java.lang.String |
getCommonPrefix(java.util.Vector<java.lang.String> list)
returns the common prefix for all the items in the list |
boolean |
getDebug()
returns whether debug mode is on |
java.util.Vector<java.lang.String> |
getFileMatches(java.lang.String partial)
returns all the file/dir matches with the partial search string |
java.util.Vector<java.lang.String> |
getMatches(java.lang.String partial)
returns all the matches with the partial search string, files or classes. |
java.lang.String |
getPackage(java.lang.String partial)
returns the packages part of the partial classname |
boolean |
isClassname(java.lang.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(java.lang.String partial)
partial
- the string to test
public java.lang.String getPackage(java.lang.String partial)
partial
- the partial classname
public java.lang.String getClassname(java.lang.String partial)
partial
- the partial classname
public java.util.Vector<java.lang.String> getFileMatches(java.lang.String partial)
partial
- the partial search string
public java.util.Vector<java.lang.String> getClassMatches(java.lang.String partial)
partial
- the partial search string
public java.util.Vector<java.lang.String> getMatches(java.lang.String partial)
partial
- the partial search string
public java.lang.String getCommonPrefix(java.util.Vector<java.lang.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 |