public class BootstrapMethodsAttribute extends AttributeInfo
Modifier and Type | Class | Description |
---|---|---|
static class |
BootstrapMethodsAttribute.BootstrapMethod |
An element of
bootstrap_methods . |
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
tag |
The name of this attribute
"BootstrapMethods" . |
constPool
Constructor | Description |
---|---|
BootstrapMethodsAttribute(ConstPool cp,
BootstrapMethodsAttribute.BootstrapMethod[] methods) |
Constructs a BootstrapMethods attribute.
|
Modifier and Type | Method | Description |
---|---|---|
AttributeInfo |
copy(ConstPool newCp,
java.util.Map classnames) |
Makes a copy.
|
BootstrapMethodsAttribute.BootstrapMethod[] |
getMethods() |
Obtains
bootstrap_methods in this attribute. |
get, getConstPool, getName, length, set
public static final java.lang.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, 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.Copyright © 2018 Shigeru Chiba, www.javassist.org. All Rights Reserved.