private ClassVisitor selectVisitor(Clazz clazz) { return KeepMarker.isKept(clazz) ? acceptedVisitor : rejectedVisitor; } }
public void visitProgramClass(ProgramClass programClass) { markAsKept(programClass); }
/** * 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))); }
private ClassVisitor selectVisitor(Clazz clazz) { return KeepMarker.isKept(clazz) ? acceptedVisitor : rejectedVisitor; } }
/** * 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))); }
public void visitProgramField(ProgramClass programClass, ProgramField programField) { markAsKept(programField); }
public void visitProgramField(ProgramClass programClass, ProgramField programField) { if (KeepMarker.isKept(programField)) { referencingClass = programClass; referencingMember = programField; isField = true; // Don't check the type, because it is not required for introspection. //programField.referencedClassesAccept(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))); }
public void visitLibraryClass(LibraryClass libraryClass) { markAsKept(libraryClass); }
private ClassVisitor selectVisitor(Clazz clazz) { return KeepMarker.isKept(clazz) ? acceptedVisitor : rejectedVisitor; } }
KeepMarker keepMarker = new KeepMarker(); ClassPoolVisitor classPoolvisitor = new KeepClassSpecificationVisitorFactory(true, true, true)
public void visitLibraryField(LibraryClass libraryClass, LibraryField libraryField) { markAsKept(libraryField); }
public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) { if (KeepMarker.isKept(programMethod)) { memberVisitor.visitProgramMethod(programClass, programMethod); } }
KeepMarker keepMarker = new KeepMarker(); ClassPoolVisitor classPoolvisitor = new KeepClassSpecificationVisitorFactory(true, true, true)
public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) { markAsKept(MethodLinker.lastMember(programMethod)); }
public void visitProgramClass(ProgramClass programClass) { if (!KeepMarker.isKept(programClass)) { ClassOptimizationInfo.setClassOptimizationInfo(programClass); } } }
KeepMarker keepMarker = new KeepMarker(); ClassPoolVisitor classPoolvisitor = new KeepClassSpecificationVisitorFactory(true, true, true)
public void visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod) { markAsKept(MethodLinker.lastMember(libraryMethod)); }
public void visitProgramField(ProgramClass programClass, ProgramField programField) { if (KeepMarker.isKept(programField)) { memberVisitor.visitProgramField(programClass, programField); } }