public void visitProgramField(ProgramClass programClass, ProgramField programField) { // Print the name of this field. String name = programField.getName(programClass); String type = programField.getDescriptor(programClass); ps.println(ClassUtil.externalClassName(programClass.getName()) + (verbose ? ": " + ClassUtil.externalFullFieldDescription(0, name, type): "." + name) + lineNumberRange(programClass, programField)); // Print the reason for keeping this method. printReason(programField); }
public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) { // Print the name of this method. String name = programMethod.getName(programClass); String type = programMethod.getDescriptor(programClass); ps.println(ClassUtil.externalClassName(programClass.getName()) + (verbose ? ": " + ClassUtil.externalFullMethodDescription(programClass.getName(), 0, name, type): "." + name) + lineNumberRange(programClass, programMethod)); // Print the reason for keeping this method. printReason(programMethod); }