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 String |
tag
The name of this attribute
"BootstrapMethods" . |
constPool
Constructor and Description |
---|
BootstrapMethodsAttribute(ConstPool cp,
BootstrapMethodsAttribute.BootstrapMethod[] methods)
Constructs a BootstrapMethods attribute.
|
Modifier and Type | Method and Description |
---|---|
AttributeInfo |
copy(ConstPool newCp,
Map classnames)
Makes a copy.
|
BootstrapMethodsAttribute.BootstrapMethod[] |
getMethods()
Obtains
bootstrap_methods in this attribute. |
get, getConstPool, getName, length, set
public static final String tag
"BootstrapMethods"
.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, 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.Copyright © 2019. All rights reserved.