Top Description Fields Constructors Methods
javassist.bytecode

public Class NestMembersAttribute

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

NestMembers_attribute. It was introduced by JEP-181. See JVMS 4.7.29 for the specification.
Since
3.24

Field Summary

Modifier and TypeField and Description
public static final String
tag

The name of this attribute "NestMembers".

Inherited from javassist.bytecode.AttributeInfo:
constPoolinfoname

Constructor Summary

AccessConstructor and Description
pack-priv
private

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 int

Returns:

the value at the given index in the classes array. It is an index into the constant pool. The constant pool entry at the returned index is a CONSTANT_Class_info structure.
memberClass
(int
the index into classes.
index
)

Returns classes[index].

public int

Returns:

the number of the classes recorded in this attribute.
numberOfClasses
()

Returns number_of_classes.

Inherited from javassist.bytecode.AttributeInfo:
copyAllgetgetConstPoolgetLengthgetNamegetRefClassesgetRefClasseslengthlookupreadremoverenameClassrenameClassrenameClassrenameClasssetwritewriteAll

Field Detail

tagback to summary
public static final String tag

The name of this attribute "NestMembers".

Constructor Detail

NestMembersAttributeback to summary
pack-priv NestMembersAttribute(ConstPool cp, int n, DataInputStream in) throws IOException
NestMembersAttributeback to summary
private NestMembersAttribute(ConstPool cp, byte[] info)

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
memberClassback to summary
public int memberClass(int index)

Returns classes[index].

Parameters
index:int

the index into classes.

Returns:int

the value at the given index in the classes array. It is an index into the constant pool. The constant pool entry at the returned index is a CONSTANT_Class_info structure.

numberOfClassesback to summary
public int numberOfClasses()

Returns number_of_classes.

Returns:int

the number of the classes recorded in this attribute.