Top Inners Fields Constructors Methods
javassist.bytecode

public Class BootstrapMethodsAttribute

extends AttributeInfo
Class Inheritance
Imports
java.io.DataInputStream, .IOException, java.util.Map

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
BootstrapMethodsAttribute.BootstrapMethod

An element of bootstrap_methods.

Field Summary

Modifier and TypeField and Description
public static final String
tag

The name of this attribute "BootstrapMethods".

Inherited from javassist.bytecode.AttributeInfo:
constPoolinfoname

Constructor Summary

AccessConstructor and Description
pack-priv
public
BootstrapMethodsAttribute(ConstPool
a constant pool table.
cp
,
BootstrapMethodsAttribute.BootstrapMethod[]
the contents.
methods
)

Constructs a BootstrapMethods attribute.

Method Summary

Modifier and TypeMethod and Description
public AttributeInfo
copy(ConstPool
the constant pool table used by the new copy.
newCp
,
Map<String, String>
pairs of replaced and substituted class names.
classnames
)

Overrides javassist.bytecode.AttributeInfo.copy.

Makes a copy.

public BootstrapMethodsAttribute.BootstrapMethod[]

Returns:

an array of BootstrapMethod. Since it is a fresh copy, modifying the returned array does not affect the original contents of this attribute.
getMethods
()

Obtains bootstrap_methods in this attribute.

Inherited from javassist.bytecode.AttributeInfo:
copyAllgetgetConstPoolgetLengthgetNamegetRefClassesgetRefClasseslengthlookupreadremoverenameClassrenameClassrenameClassrenameClasssetwritewriteAll

Field Detail

tagback to summary
public static final String tag

The name of this attribute "BootstrapMethods".

Constructor Detail

BootstrapMethodsAttributeback to summary
pack-priv BootstrapMethodsAttribute(ConstPool cp, int n, DataInputStream in) throws IOException
BootstrapMethodsAttributeback to summary
public BootstrapMethodsAttribute(ConstPool cp, BootstrapMethodsAttribute.BootstrapMethod[] methods)

Constructs a BootstrapMethods attribute.

Parameters
cp:ConstPool

a constant pool table.

methods:BootstrapMethodsAttribute.BootstrapMethod[]

the contents.

Method Detail

copyback to summary
public AttributeInfo copy(ConstPool newCp, Map<String, String> classnames)

Overrides javassist.bytecode.AttributeInfo.copy.

Makes a copy. Class names are replaced according to the given Map object.

Parameters
newCp:ConstPool

the constant pool table used by the new copy.

classnames:Map<String, String>

pairs of replaced and substituted class names.

Annotations
@Override
getMethodsback to summary
public BootstrapMethodsAttribute.BootstrapMethod[] getMethods()

Obtains bootstrap_methods in this attribute.

Returns:BootstrapMethodsAttribute.BootstrapMethod[]

an array of BootstrapMethod. Since it is a fresh copy, modifying the returned array does not affect the original contents of this attribute.

javassist.bytecode back to summary

public Class BootstrapMethodsAttribute.BootstrapMethod

extends Object
Class Inheritance

An element of bootstrap_methods.

Field Summary

Modifier and TypeField and Description
public int[]
arguments

bootstrap_arguments.

public int
methodRef

bootstrap_method_ref.

Constructor Summary

AccessConstructor and Description
public
BootstrapMethod(int
bootstrap_method_ref.
method
,
int[]
bootstrap_arguments.
args
)

Constructs an element of bootstrap_methods.

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

argumentsback to summary
public int[] arguments

bootstrap_arguments.

methodRefback to summary
public int methodRef

bootstrap_method_ref. The value at this index must be a CONSTANT_MethodHandle_info.

Constructor Detail

BootstrapMethodback to summary
public BootstrapMethod(int method, int[] args)

Constructs an element of bootstrap_methods.

Parameters
method:int

bootstrap_method_ref.

args:int[]

bootstrap_arguments.