MCPcopy Index your code
hub / github.com/beanshell/beanshell / setMlist

Method setMlist

src/bsh/util/ClassBrowser.java:191–223  ·  view source on GitHub ↗
( String classname )

Source from the content-addressed store, hash-verified

189 }
190
191 void setMlist( String classname )
192 {
193 if ( classname == null )
194 {
195 mlist.setListData( new Object [] { } );
196 setConslist( null );
197 setClassTree( null );
198 return;
199 }
200
201 Class clas;
202 try {
203 if ( selectedPackage.equals("<unpackaged>") )
204 selectedClass = classManager.classForName( classname );
205 else
206 selectedClass = classManager.classForName(
207 selectedPackage + "." + classname );
208 } catch ( Exception e ) {
209 System.err.println(e);
210 return;
211 }
212 if ( selectedClass == null ) {
213 // not found?
214 System.err.println("class not found: "+classname);
215 return;
216 }
217 methodList = getPublicMethods( selectedClass.getDeclaredMethods() );
218 mlist.setListData( parseMethods(methodList) );
219
220 setClassTree( selectedClass );
221 setConslist( selectedClass );
222 setFieldList( selectedClass );
223 }
224
225 void setFieldList( Class clas ) {
226 if ( clas == null ) {

Callers 1

valueChangedMethod · 0.95

Calls 9

setConslistMethod · 0.95
setClassTreeMethod · 0.95
getPublicMethodsMethod · 0.95
parseMethodsMethod · 0.95
setFieldListMethod · 0.95
getDeclaredMethodsMethod · 0.80
printlnMethod · 0.65
equalsMethod · 0.45
classForNameMethod · 0.45

Tested by

no test coverage detected