Note, this method should not be used by user application
125126127128129130131132133134135
} // // 配置文件 // List<Class<?>> classes = Arrays.asList(disconfUpdateService .classes()); // 反索引 for (Class<?> curClass : classes) {
47484950515253545556
public Collection<Class<?>> find() { log.trace("> find()"); Set<Class<?>> testClasses = new HashSet<Class<?>>(); for(String path : classpathList.split(File.pathSeparator)) { Classpath classpath = new Classpath(path); testClasses.addAll(classpath.classes(withTestMethods)); } return testClasses; } }
11231124112511261127112811291130113111321133
// The candidate class is an inner class. Remove the class from its parent class. JDefinedClass parentClass = (JDefinedClass) clazz.parentContainer(); writeSummary("\tRemoving class " + clazz.fullName() + " from class " + parentClass.fullName()); for (Iterator<JDefinedClass> iter = parentClass.classes(); iter.hasNext();) { if (iter.next().equals(clazz)) { iter.remove(); break; } }
350351352353354355356357358359360
StringBuffer sb = new StringBuffer(); boolean first = true; for (Iterator<JPackage> itr = codeModel.packages(); itr.hasNext();) { JPackage package1 = itr.next(); for (Iterator<JDefinedClass> citr = package1.classes(); citr.hasNext();) { if (!first) { sb.append(", "); } else { first = false; }
176177178179180181182183184185186
for (Iterator<JPackage> packages = codeModel.packages(); packages.hasNext();) { JPackage jpackage = packages.next(); String name = jpackage.name(); if ("org.w3._2001.xmlschema".equals(name) || !jpackage.classes().hasNext()) { continue; } if (firstnt) { sb.append(':'); } else {
271272273274275276277278279280281
305306307308309310311312313314315
252253254255256257258259260261262
291292293294295296297298299300301
122123124125126127128129130131132
} } temp.close(); System.out.println("rootDoc is " + rootDoc.getClass().getName()); for (ClassDoc classDoc : rootDoc.classes()) { // classDoc.setRawCommentText( classDoc.getRawCommentText() + // "\n@author Christian Peter Bauer"); SourcePosition position = classDoc.position();