Package org.apache.bcel.classfile
Class BootstrapMethod
java.lang.Object
org.apache.bcel.classfile.BootstrapMethod
- All Implemented Interfaces:
Cloneable
This class represents a bootstrap method attribute, i.e., the bootstrap
method ref, the number of bootstrap arguments and an array of the
bootstrap arguments.
- Since:
- 6.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBootstrapMethod(int bootstrapMethodRef, int[] bootstrapArguments) Initialize from another object. -
Method Summary
Modifier and TypeMethodDescriptioncopy()final voiddump(DataOutputStream file) Dump object to file stream in binary format.int[]intintvoidsetBootstrapArguments(int[] bootstrapArguments) voidsetBootstrapMethodRef(int bootstrapMethodRef) final StringtoString()final StringtoString(ConstantPool constantPool)
-
Constructor Details
-
BootstrapMethod
Initialize from another object. -
BootstrapMethod
public BootstrapMethod(int bootstrapMethodRef, int[] bootstrapArguments) - Parameters:
bootstrapMethodRef- int index into constant_pool of CONSTANT_MethodHandlebootstrapArguments- int[] indices into constant_pool of CONSTANT_[type]_info
-
-
Method Details
-
getBootstrapMethodRef
public int getBootstrapMethodRef()- Returns:
- index into constant_pool of bootstrap_method
-
setBootstrapMethodRef
public void setBootstrapMethodRef(int bootstrapMethodRef) - Parameters:
bootstrapMethodRef- int index into constant_pool of CONSTANT_MethodHandle
-
getBootstrapArguments
public int[] getBootstrapArguments()- Returns:
- int[] of bootstrap_method indices into constant_pool of CONSTANT_[type]_info
-
getNumBootstrapArguments
public int getNumBootstrapArguments()- Returns:
- count of number of boostrap arguments
-
setBootstrapArguments
public void setBootstrapArguments(int[] bootstrapArguments) - Parameters:
bootstrapArguments- int[] indices into constant_pool of CONSTANT_[type]_info
-
toString
-
toString
- Returns:
- Resolved string representation
-
dump
Dump object to file stream in binary format.- Parameters:
file- Output file stream- Throws:
IOException
-
copy
- Returns:
- deep copy of this object
-