public class BootstrapMethodsAttribute extends AttributeInfo
Modifier and Type | Class and Description |
---|---|
static class |
BootstrapMethodsAttribute.BootstrapMethod
An element of
bootstrap_methods . |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
tag
The name of this attribute
"BootstrapMethods" . |
constPool, info, name
Constructor and Description |
---|
BootstrapMethodsAttribute(ConstPool cp,
BootstrapMethodsAttribute.BootstrapMethod[] methods)
Constructs a BootstrapMethods attribute.
|
BootstrapMethodsAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
Modifier and Type | Method and Description |
---|---|
AttributeInfo |
copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
BootstrapMethodsAttribute.BootstrapMethod[] |
getMethods()
Obtains
bootstrap_methods in this attribute. |
copyAll, get, getConstPool, getLength, getName, getRefClasses, getRefClasses, length, lookup, read, remove, renameClass, renameClass, renameClass, renameClass, set, write, writeAll
public static final java.lang.String tag
"BootstrapMethods"
.BootstrapMethodsAttribute(ConstPool cp, int n, java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
public BootstrapMethodsAttribute(ConstPool cp, BootstrapMethodsAttribute.BootstrapMethod[] methods)
cp
- a constant pool table.methods
- the contents.public BootstrapMethodsAttribute.BootstrapMethod[] getMethods()
bootstrap_methods
in this attribute.BootstrapMethod
. Since it
is a fresh copy, modifying the returned array does not
affect the original contents of this attribute.public AttributeInfo copy(ConstPool newCp, java.util.Map classnames)
Map
object.copy
in class AttributeInfo
newCp
- the constant pool table used by the new copy.classnames
- pairs of replaced and substituted
class names.