Package proguard.classfile.editor
Class BootstrapMethodsAttributeAdder
- java.lang.Object
-
- proguard.classfile.editor.BootstrapMethodsAttributeAdder
-
- All Implemented Interfaces:
BootstrapMethodInfoVisitor
public class BootstrapMethodsAttributeAdder extends java.lang.Object implements BootstrapMethodInfoVisitor
ThisBootstrapMethodInfoVisitor
adds all bootstrap methods that it visits to the given target class, creating a bootstrap methods attribute if necessary.
-
-
Constructor Summary
Constructors Constructor Description BootstrapMethodsAttributeAdder(ProgramClass targetClass)
Creates a new BootstrapMethodsAttributeAdder that will copy bootstrap methods into the given target class/
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBootstrapMethodIndex()
Returns the index of the most recently added bootstrap method.void
visitBootstrapMethodInfo(Clazz clazz, BootstrapMethodInfo bootstrapMethodInfo)
-
-
-
Constructor Detail
-
BootstrapMethodsAttributeAdder
public BootstrapMethodsAttributeAdder(ProgramClass targetClass)
Creates a new BootstrapMethodsAttributeAdder that will copy bootstrap methods into the given target class/
-
-
Method Detail
-
getBootstrapMethodIndex
public int getBootstrapMethodIndex()
Returns the index of the most recently added bootstrap method.
-
visitBootstrapMethodInfo
public void visitBootstrapMethodInfo(Clazz clazz, BootstrapMethodInfo bootstrapMethodInfo)
- Specified by:
visitBootstrapMethodInfo
in interfaceBootstrapMethodInfoVisitor
-
-