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[] bootstrap_methods,
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[] bootstrap_methods) |
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[] bootstrap_methods, ConstantPool constant_pool)
name_index
- Index in constant pool to CONSTANT_Utf8length
- Content length in bytesbootstrap_methods
- array of bootstrap methodsconstant_pool
- Array of constantspublic final BootstrapMethod[] getBootstrapMethods()
public final void setBootstrapMethods(BootstrapMethod[] bootstrap_methods)
bootstrap_methods
- 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–2019 The Apache Software Foundation. All rights reserved.