public ISVDBItemBase getItem() { if (fItem != null) { return fItem; } else if (fCacheItem != null) { fItem = fCacheItem.getSVDBItem(); return fItem; } else { return null; } }
public List<SVDBClassDecl> findItem(String type_name) { List<SVDBClassDecl> ret = new ArrayList<SVDBClassDecl>(); List<SVDBDeclCacheItem> found = fIndexIt.findGlobalScopeDecl(new NullProgressMonitor(), type_name, fMatcher); for (SVDBDeclCacheItem ci : found) { if (ci.getType() == SVDBItemType.ClassDecl) { ret.add((SVDBClassDecl) ci.getSVDBItem()); } } return ret; }