Java Code Examples for proguard.classfile.ProgramClass#accept()
The following examples show how to use
proguard.classfile.ProgramClass#accept() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConcreteClassDownTraveler.java From java-n-IDE-for-Android with Apache License 2.0 | 6 votes |
public void visitProgramClass(ProgramClass programClass) { // Is this an abstract class or an interface? if ((programClass.getAccessFlags() & (ClassConstants.INTERNAL_ACC_INTERFACE | ClassConstants.INTERNAL_ACC_ABSTRACT)) != 0) { // Travel down the hierarchy. Clazz[] subClasses = programClass.subClasses; if (subClasses != null) { for (int index = 0; index < subClasses.length; index++) { subClasses[index].accept(this); } } } else { // Visit the class. Don't descend any further. programClass.accept(classVisitor); } }
Example 2
Source File: ClassElementSorter.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
public void visitProgramClass(ProgramClass programClass) { programClass.accept(constantPoolSorter); programClass.accept(interfaceSorter); // programClass.accept(classMemberSorter); programClass.accept(attributeSorter); }
Example 3
Source File: ClassMerger.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
public void visitProgramClass(ProgramClass programClass) { //final String CLASS_NAME = "abc/Def"; //DEBUG = programClass.getName().equals(CLASS_NAME) || // targetClass.getName().equals(CLASS_NAME); // TODO: Remove this when the class merger has stabilized. // Catch any unexpected exceptions from the actual visiting method. try { visitProgramClass0(programClass); } catch (RuntimeException ex) { System.err.println("Unexpected error while merging classes:"); System.err.println(" Class = ["+programClass.getName()+"]"); System.err.println(" Target class = ["+targetClass.getName()+"]"); System.err.println(" Exception = ["+ex.getClass().getName()+"] ("+ex.getMessage()+")"); if (DEBUG) { programClass.accept(new ClassPrinter()); targetClass.accept(new ClassPrinter()); } throw ex; } }
Example 4
Source File: ClassElementSorter.java From proguard with GNU General Public License v2.0 | 5 votes |
public void visitProgramClass(ProgramClass programClass) { programClass.accept(constantPoolSorter); programClass.accept(interfaceSorter); // programClass.accept(classMemberSorter); programClass.accept(attributeSorter); }
Example 5
Source File: ClassElementSorter.java From bazel with Apache License 2.0 | 5 votes |
public void visitProgramClass(ProgramClass programClass) { programClass.accept(constantPoolSorter); programClass.accept(interfaceSorter); // programClass.accept(classMemberSorter); programClass.accept(attributeSorter); }