Package proguard.classfile.visitor
Class SimpleClassPrinter
- java.lang.Object
-
- proguard.classfile.visitor.SimpleClassPrinter
-
- All Implemented Interfaces:
ClassVisitor
,MemberVisitor
public class SimpleClassPrinter extends java.lang.Object implements ClassVisitor, MemberVisitor
ThisClassVisitor
andMemberVisitor
prints out the class names of the classes it visits, and the full class member descriptions of the class members it visits. The names are printed in a readable, Java-like format. The access modifiers can be included or not.
-
-
Constructor Summary
Constructors Constructor Description SimpleClassPrinter(boolean printAccessModifiers)
Creates a new SimpleClassPrinter that prints to the standard output, with or without the access modifiers.SimpleClassPrinter(boolean printAccessModifiers, java.io.PrintWriter printWriter)
Creates a new SimpleClassPrinter that prints to the given writer, with or without the access modifiers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitAnyClass(Clazz clazz)
Visits any Clazz instance.void
visitLibraryField(LibraryClass libraryClass, LibraryField libraryField)
void
visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)
void
visitProgramField(ProgramClass programClass, ProgramField programField)
void
visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface proguard.classfile.visitor.ClassVisitor
visitLibraryClass, visitProgramClass
-
Methods inherited from interface proguard.classfile.visitor.MemberVisitor
visitAnyMember, visitLibraryMember, visitProgramMember
-
-
-
-
Constructor Detail
-
SimpleClassPrinter
public SimpleClassPrinter(boolean printAccessModifiers)
Creates a new SimpleClassPrinter that prints to the standard output, with or without the access modifiers.
-
SimpleClassPrinter
public SimpleClassPrinter(boolean printAccessModifiers, java.io.PrintWriter printWriter)
Creates a new SimpleClassPrinter that prints to the given writer, with or without the access modifiers.
-
-
Method Detail
-
visitAnyClass
public void visitAnyClass(Clazz clazz)
Description copied from interface:ClassVisitor
Visits any Clazz instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyClass
in interfaceClassVisitor
-
visitProgramField
public void visitProgramField(ProgramClass programClass, ProgramField programField)
- Specified by:
visitProgramField
in interfaceMemberVisitor
-
visitProgramMethod
public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
- Specified by:
visitProgramMethod
in interfaceMemberVisitor
-
visitLibraryField
public void visitLibraryField(LibraryClass libraryClass, LibraryField libraryField)
- Specified by:
visitLibraryField
in interfaceMemberVisitor
-
visitLibraryMethod
public void visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)
- Specified by:
visitLibraryMethod
in interfaceMemberVisitor
-
-