public boolean classExists( String name ) { return ( classForName( name ) != null ); }
public boolean classExists( String name ) { return classForName( name ) != null ; }
/** Class<?> for name. * @param name the name * @return the class */ private Class<?> classForName(final String name) { return this.getClassManager().classForName(name); }
private Class classForName( String name ) { return getClassManager().classForName( name ); }
void setMlist( String classname ) { if ( classname == null ) { mlist.setListData( new Object [] { } ); setConslist( null ); setClassTree( null ); return; } try { if ( selectedPackage.equals("<unpackaged>") ) selectedClass = classManager.classForName( classname ); else selectedClass = classManager.classForName( selectedPackage + "." + classname ); } catch ( Exception e ) { System.err.println(e); return; } if ( selectedClass == null ) { // not found? System.err.println("class not found: "+classname); return; } methodList = getPublicMethods( selectedClass.getDeclaredMethods() ); mlist.setListData( parseMethods(methodList) ); setClassTree( selectedClass ); setConslist( selectedClass ); setFieldList( selectedClass ); }
Class clas = bcm.classForName( className ); if ( clas != null ) return clas;
+ name; Interpreter.debug("searching for class: " + className); final Class<?> clas = bcm.classForName(className); if (clas != null) return clas;
Class superClass = interpreter.getClassManager().classForName(superClassName); if (superClass == null) { throw new InterpreterError("can't find superclass: " + superClassName);