public void visitClassPool(ClassPool classPool) { long start = 0; if (DETAILS) { System.out.print(message); System.out.print(getPadding(message.length(), 48)); start = System.currentTimeMillis(); } classPool.accept(classPoolVisitor); if (DETAILS) { long end = System.currentTimeMillis(); System.out.println(String.format(" took: %6d ms", (end - start))); } }
public void visitClassPool(ClassPool classPool) { long start = 0; if (DETAILS) { System.out.print(message); System.out.print(getPadding(message.length(), 48)); start = System.currentTimeMillis(); } classPool.accept(classPoolVisitor); if (DETAILS) { long end = System.currentTimeMillis(); System.out.println(String.format(" took: %6d ms", (end - start))); } }
public void visitClassPool(ClassPool classPool) { long start = 0; if (DETAILS) { System.out.print(message); System.out.print(getPadding(message.length(), 48)); start = System.currentTimeMillis(); } classPool.accept(classPoolVisitor); if (DETAILS) { long end = System.currentTimeMillis(); System.out.println(String.format(" took: %6d ms", (end - start))); } }
/** * Checks the classes mentioned in the given keep specifications, printing * notes if necessary. Returns the number of notes printed. */ public void checkClassSpecifications(List keepSpecifications) { // Clean up any old visitor info. programClassPool.classesAccept(new ClassCleaner()); libraryClassPool.classesAccept(new ClassCleaner()); // Create a visitor for marking the seeds. KeepMarker keepMarker = new KeepMarker(); ClassPoolVisitor classPoolvisitor = ClassSpecificationVisitorFactory.createClassPoolVisitor(keepSpecifications, keepMarker, keepMarker, false, true, true); // Mark the seeds. programClassPool.accept(classPoolvisitor); libraryClassPool.accept(classPoolvisitor); // Print out notes about argument types that are not being kept. programClassPool.classesAccept(new AllMemberVisitor(this)); }
/** * Checks the classes mentioned in the given keep specifications, printing * notes if necessary. */ public void checkClassSpecifications(List keepSpecifications) { // Clean up any old visitor info. programClassPool.classesAccept(new ClassCleaner()); libraryClassPool.classesAccept(new ClassCleaner()); // Create a visitor for marking the seeds. KeepMarker keepMarker = new KeepMarker(); ClassPoolVisitor classPoolvisitor = new KeepClassSpecificationVisitorFactory(true, true, true) .createClassPoolVisitor(keepSpecifications, keepMarker, keepMarker, keepMarker, null); // Mark the seeds. programClassPool.accept(classPoolvisitor); libraryClassPool.accept(classPoolvisitor); // Print out notes about argument types that are not being kept in // class members that are being kept. programClassPool.classesAccept( new AllMemberVisitor( new KeptMemberFilter(this))); }
/** * Checks the classes mentioned in the given keep specifications, printing * notes if necessary. */ public void checkClassSpecifications(List keepSpecifications) { // Clean up any old visitor info. programClassPool.classesAccept(new ClassCleaner()); libraryClassPool.classesAccept(new ClassCleaner()); // Create a visitor for marking the seeds. KeepMarker keepMarker = new KeepMarker(); ClassPoolVisitor classPoolvisitor = new KeepClassSpecificationVisitorFactory(true, true, true) .createClassPoolVisitor(keepSpecifications, keepMarker, keepMarker, keepMarker, null); // Mark the seeds. programClassPool.accept(classPoolvisitor); libraryClassPool.accept(classPoolvisitor); // Print out notes about argument types that are not being kept in // class members that are being kept. programClassPool.classesAccept( new AllMemberVisitor( new KeptMemberFilter(this))); }
/** * Checks the classes mentioned in the given keep specifications, printing * notes if necessary. */ public void checkClassSpecifications(List keepSpecifications) { // Clean up any old visitor info. programClassPool.classesAccept(new ClassCleaner()); libraryClassPool.classesAccept(new ClassCleaner()); // Create a visitor for marking the seeds. KeepMarker keepMarker = new KeepMarker(); ClassPoolVisitor classPoolvisitor = new KeepClassSpecificationVisitorFactory(true, true, true) .createClassPoolVisitor(keepSpecifications, keepMarker, keepMarker, keepMarker, null); // Mark the seeds. programClassPool.accept(classPoolvisitor); libraryClassPool.accept(classPoolvisitor); // Print out notes about argument types that are not being kept in // class members that are being kept. programClassPool.classesAccept( new AllMemberVisitor( new KeptMemberFilter(this))); }