public class BootstrapMethods extends Attribute
constant_pool, length, name_index, tag
Constructor and Description |
---|
BootstrapMethods(BootstrapMethods c)
Initialize from another object.
|
BootstrapMethods(int name_index,
int length,
BootstrapMethod[] bootstrapMethods,
ConstantPool constant_pool) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
|
BootstrapMethods |
copy(ConstantPool _constant_pool) |
void |
dump(DataOutputStream file)
Dump bootstrap methods attribute to file stream in binary format.
|
BootstrapMethod[] |
getBootstrapMethods() |
void |
setBootstrapMethods(BootstrapMethod[] bootstrapMethods) |
String |
toString() |
addAttributeReader, addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, println, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndex
public BootstrapMethods(BootstrapMethods c)
public BootstrapMethods(int name_index, int length, BootstrapMethod[] bootstrapMethods, ConstantPool constant_pool)
name_index
- Index in constant pool to CONSTANT_Utf8length
- Content length in bytesbootstrapMethods
- array of bootstrap methodsconstant_pool
- Array of constantspublic final BootstrapMethod[] getBootstrapMethods()
public final void setBootstrapMethods(BootstrapMethod[] bootstrapMethods)
bootstrapMethods
- the array of bootstrap methodspublic void accept(Visitor v)
Attribute
public BootstrapMethods copy(ConstantPool _constant_pool)
public final void dump(DataOutputStream file) throws IOException
dump
in class Attribute
file
- Output file streamIOException
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.