Package proguard.classfile.visitor
Class ClassPoolClassVisitor
- java.lang.Object
-
- proguard.classfile.visitor.ClassPoolClassVisitor
-
- All Implemented Interfaces:
ClassPoolVisitor
,ClassVisitor
public class ClassPoolClassVisitor extends java.lang.Object implements ClassPoolVisitor, ClassVisitor
ThisClassPoolVisitor
andClassVisitor
remembers theClassPool
instances that it visits and applies the givenClassPoolVisitor
to the most recently remembered one, every time it visits a Clazz instance.
-
-
Constructor Summary
Constructors Constructor Description ClassPoolClassVisitor(ClassPoolVisitor classPoolVisitor)
Creates a new ClassPoolClassVisitor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitAnyClass(Clazz clazz)
Visits any Clazz instance.void
visitClassPool(ClassPool classPool)
-
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
-
-
-
-
Constructor Detail
-
ClassPoolClassVisitor
public ClassPoolClassVisitor(ClassPoolVisitor classPoolVisitor)
Creates a new ClassPoolClassVisitor.- Parameters:
classPoolVisitor
-
-
-
Method Detail
-
visitClassPool
public void visitClassPool(ClassPool classPool)
- Specified by:
visitClassPool
in interfaceClassPoolVisitor
-
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
-
-