BootstrapMethods attribute
(JVMS 4.7.23), which stores symbolic information for the execution of
bootstrap methods, used by dynamically-computed call sites and constants.
It is logically a part of the constant pool of a class file and thus
not delivered in ClassModel traversal; its elements are accessible
through ConstantPool.
This attribute only appears on classes, and does not permit multiple instances in a class. It has a data dependency on the constant pool.
This attribute cannot be constructed directly; its entries can be constructed
through ConstantPoolBuilder#bsmEntry, resulting in at most one
attribute instance in the built class file.
The attribute was introduced in the Java SE Platform version 7, major version 51.
BootstrapMethods Attribute
Attributes#bootstrapMethods(), Execution of bootstrap methods
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: the elements of the bootstrap method tableReturns the elements of the bootstrap method table. |
| public int | Returns: the size of the bootstrap methods tableReturns the size of the bootstrap methods table. |
| bootstrapMethods | back to summary |
|---|---|
| public List Returns the elements of the bootstrap method table.
| |
| bootstrapMethodsSize | back to summary |
|---|---|
| public int bootstrapMethodsSize() Returns the size of the bootstrap methods table.
| |