public class BootstrapMethods extends Attribute implements Iterable<BootstrapMethod>
constant_pool, EMPTY_ARRAY, length, name_index, tag| Constructor and Description |
|---|
BootstrapMethods(BootstrapMethods c)
Initialize from another object.
|
BootstrapMethods(int nameIndex,
int length,
BootstrapMethod[] bootstrapMethods,
ConstantPool constantPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.
|
BootstrapMethods |
copy(ConstantPool constantPool) |
void |
dump(DataOutputStream file)
Dump bootstrap methods attribute to file stream in binary format.
|
BootstrapMethod[] |
getBootstrapMethods() |
Iterator<BootstrapMethod> |
iterator() |
void |
setBootstrapMethods(BootstrapMethod[] bootstrapMethods) |
String |
toString() |
addAttributeReader, addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, println, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndexequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic BootstrapMethods(BootstrapMethods c)
public BootstrapMethods(int nameIndex, int length, BootstrapMethod[] bootstrapMethods, ConstantPool constantPool)
nameIndex - Index in constant pool to CONSTANT_Utf8length - Content length in bytesbootstrapMethods - array of bootstrap methodsconstantPool - Array of constantspublic void accept(Visitor v)
Attributepublic BootstrapMethods copy(ConstantPool constantPool)
public final void dump(DataOutputStream file) throws IOException
dump in class Attributefile - Output file streamIOException - if an I/O error occurs.public final BootstrapMethod[] getBootstrapMethods()
public Iterator<BootstrapMethod> iterator()
iterator in interface Iterable<BootstrapMethod>public final void setBootstrapMethods(BootstrapMethod[] bootstrapMethods)
bootstrapMethods - the array of bootstrap methodsCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.