Package proguard.classfile.editor
Class BootstrapMethodInfoAdder
- java.lang.Object
-
- proguard.classfile.editor.BootstrapMethodInfoAdder
-
- All Implemented Interfaces:
BootstrapMethodInfoVisitor
public class BootstrapMethodInfoAdder extends java.lang.Object implements BootstrapMethodInfoVisitor
ThisBootstrapMethodInfoVisitor
adds all bootstrap methods that it visits to the given target bootstrap methods attribute.
-
-
Constructor Summary
Constructors Constructor Description BootstrapMethodInfoAdder(ProgramClass targetClass, BootstrapMethodsAttribute targetBootstrapMethodsAttribute)
Creates a new BootstrapMethodInfoAdder that will copy bootstrap methods into the given bootstrap methods attribute.
-
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
-
BootstrapMethodInfoAdder
public BootstrapMethodInfoAdder(ProgramClass targetClass, BootstrapMethodsAttribute targetBootstrapMethodsAttribute)
Creates a new BootstrapMethodInfoAdder that will copy bootstrap methods into the given bootstrap methods attribute.
-
-
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
-
-