public class BootstrapMethodsAttributeAdder extends java.lang.Object implements BootstrapMethodInfoVisitor
BootstrapMethodInfoVisitor
adds all bootstrap methods that it visits to the given
target class, creating a bootstrap methods attribute if necessary.Constructor and Description |
---|
BootstrapMethodsAttributeAdder(ProgramClass targetClass)
Creates a new BootstrapMethodsAttributeAdder that will copy bootstrap methods into the given
target class/
|
Modifier and Type | Method and Description |
---|---|
int |
getBootstrapMethodIndex()
Returns the index of the most recently added bootstrap method.
|
void |
visitBootstrapMethodInfo(Clazz clazz,
BootstrapMethodInfo bootstrapMethodInfo) |
public BootstrapMethodsAttributeAdder(ProgramClass targetClass)
public int getBootstrapMethodIndex()
public void visitBootstrapMethodInfo(Clazz clazz, BootstrapMethodInfo bootstrapMethodInfo)
visitBootstrapMethodInfo
in interface BootstrapMethodInfoVisitor