Package javassist.bytecode
Class BootstrapMethodsAttribute.BootstrapMethod
java.lang.Object
javassist.bytecode.BootstrapMethodsAttribute.BootstrapMethod
- Enclosing class:
BootstrapMethodsAttribute
An element of
bootstrap_methods.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBootstrapMethod(int method, int[] args) Constructs an element ofbootstrap_methods. -
Method Summary
-
Field Details
-
methodRef
public int methodRefbootstrap_method_ref. The value at this index must be aCONSTANT_MethodHandle_info. -
arguments
public int[] argumentsbootstrap_arguments.
-
-
Constructor Details
-
BootstrapMethod
public BootstrapMethod(int method, int[] args) Constructs an element ofbootstrap_methods.- Parameters:
method-bootstrap_method_ref.args-bootstrap_arguments.
-
-
Method Details
-
copy
protected BootstrapMethodsAttribute.BootstrapMethod copy(ConstPool srcCp, ConstPool destCp, Map<String, String> classnames) Makes a copy. Class names are replaced according to the * givenMapobject.- Parameters:
srcCp- the constant pool table from the sourcedestCp- the constant pool table used bt new copyclassnames- pairs of replaced and substituted class names.- Returns:
- new BootstrapMethod
-