/** * @param name a qualified class name. e.g. java.lang.String */ public CtClass lookupClass(String name, boolean notCheckInner) throws CompileError { Hashtable cache = getInvalidNames(); Object found = cache.get(name); if (found == INVALID) throw new CompileError("no such class: " + name); else if (found != null) try { return classPool.get((String)found); } catch (NotFoundException e) {} CtClass cc = null; try { cc = lookupClass0(name, notCheckInner); } catch (NotFoundException e) { cc = searchImports(name); } cache.put(name, cc.getName()); return cc; }
/** * @param name a qualified class name. e.g. java.lang.String */ public CtClass lookupClass(String name, boolean notCheckInner) throws CompileError { Map<String,String> cache = getInvalidNames(); String found = cache.get(name); if (found == INVALID) throw new CompileError("no such class: " + name); else if (found != null) try { return classPool.get(found); } catch (NotFoundException e) {} CtClass cc = null; try { cc = lookupClass0(name, notCheckInner); } catch (NotFoundException e) { cc = searchImports(name); } cache.put(name, cc.getName()); return cc; }
/** * @param name a qualified class name. e.g. java.lang.String */ public CtClass lookupClass(String name, boolean notCheckInner) throws CompileError { try { return lookupClass0(name, notCheckInner); } catch (NotFoundException e) { return searchImports(name); } }
/** * @param name a qualified class name. e.g. java.lang.String */ public CtClass lookupClass(String name, boolean notCheckInner) throws CompileError { try { return lookupClass0(name, notCheckInner); } catch (NotFoundException e) { return searchImports(name); } }
/** * @param name a qualified class name. e.g. java.lang.String */ public CtClass lookupClass(String name, boolean notCheckInner) throws CompileError { Hashtable cache = getInvalidNames(); Object found = cache.get(name); if (found == INVALID) throw new CompileError("no such class: " + name); else if (found != null) try { return classPool.get((String)found); } catch (NotFoundException e) {} CtClass cc = null; try { cc = lookupClass0(name, notCheckInner); } catch (NotFoundException e) { cc = searchImports(name); } cache.put(name, cc.getName()); return cc; }
/** * @param name a qualified class name. e.g. java.lang.String */ public CtClass lookupClass(String name, boolean notCheckInner) throws CompileError { Hashtable cache = getInvalidNames(); Object found = cache.get(name); if (found == INVALID) throw new CompileError("no such class: " + name); else if (found != null) try { return classPool.get((String)found); } catch (NotFoundException e) {} CtClass cc = null; try { cc = lookupClass0(name, notCheckInner); } catch (NotFoundException e) { cc = searchImports(name); } cache.put(name, cc.getName()); return cc; }
/** * @param name a qualified class name. e.g. java.lang.String */ public CtClass lookupClass(String name, boolean notCheckInner) throws CompileError { Hashtable cache = getInvalidNames(); Object found = cache.get(name); if (found == INVALID) throw new CompileError("no such class: " + name); else if (found != null) try { return classPool.get((String)found); } catch (NotFoundException e) {} CtClass cc = null; try { cc = lookupClass0(name, notCheckInner); } catch (NotFoundException e) { cc = searchImports(name); } cache.put(name, cc.getName()); return cc; }