Class BootstrapMethodsAttributeShrinker

java.lang.Object
proguard.classfile.editor.BootstrapMethodsAttributeShrinker
All Implemented Interfaces:
AttributeVisitor, BootstrapMethodInfoVisitor, InstructionVisitor, ClassVisitor, MemberVisitor

public class BootstrapMethodsAttributeShrinker extends Object implements ClassVisitor, MemberVisitor, AttributeVisitor, InstructionVisitor, BootstrapMethodInfoVisitor
This ClassVisitor removes all unused entries from the bootstrap method attribute.

If all bootstrap methods are removed, it also removes the BootstrapMethodsAttribute from the visited class. Additionally, the java/lang/MethodHandles$Lookup class will be removed from the InnerClassesAttribute, and the InnerClassesAttribute will be removed if it was the only entry.