315 /**
316 * Return the given class' superclass name in dotted notation.
317 */
318 public String getSuperClass(String cname) throws IOException {
319 ClassReader cr = new ClassReader(cname);
320 cr.accept(this, 0);
321 return thisSupername.replaceAll("/", ".");
322 }
323
324 public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {
325 thisSupername = superName;
326 }
327
328 String thisSupername;
329 }
330
331
332
333 //----------member variables------------------------------------------------
334
335 protected ArrayList<String> requiredSuperclass = new ArrayList();
336 protected String initialTag = "test";
337 protected final MethodFinderVisitor mfv = new MethodFinderVisitor();
338 protected static final I18NResourceBundle i18n = I18NResourceBundle.getBundleForClass(JUnitSuperTestFinder.class);
339 }
|
315 /**
316 * Return the given class' superclass name in dotted notation.
317 */
318 public String getSuperClass(String cname) throws IOException {
319 ClassReader cr = new ClassReader(cname);
320 cr.accept(this, 0);
321 return thisSupername.replaceAll("/", ".");
322 }
323
324 public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {
325 thisSupername = superName;
326 }
327
328 String thisSupername;
329 }
330
331
332
333 //----------member variables------------------------------------------------
334
335 protected ArrayList<String> requiredSuperclass = new ArrayList<>();
336 protected String initialTag = "test";
337 protected final MethodFinderVisitor mfv = new MethodFinderVisitor();
338 protected static final I18NResourceBundle i18n = I18NResourceBundle.getBundleForClass(JUnitSuperTestFinder.class);
339 }
|