public class SimpleClassPrinter extends java.lang.Object implements ClassVisitor, MemberVisitor
ClassVisitor
and MemberVisitor
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 and 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.
|
Modifier and Type | Method and 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitLibraryClass, visitProgramClass
visitAnyMember, visitLibraryMember, visitProgramMember
public SimpleClassPrinter(boolean printAccessModifiers)
public SimpleClassPrinter(boolean printAccessModifiers, java.io.PrintWriter printWriter)
public void visitAnyClass(Clazz clazz)
ClassVisitor
visitAnyClass
in interface ClassVisitor
public void visitProgramField(ProgramClass programClass, ProgramField programField)
visitProgramField
in interface MemberVisitor
public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
visitProgramMethod
in interface MemberVisitor
public void visitLibraryField(LibraryClass libraryClass, LibraryField libraryField)
visitLibraryField
in interface MemberVisitor
public void visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)
visitLibraryMethod
in interface MemberVisitor