Top Description Fields Constructors Methods
javassist.bytecode

public Class NestHostAttribute

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

NestHost_attribute. It was introduced by JEP-181. See JVMS 4.7.28 for the specification.
Since
3.24

Field Summary

Modifier and TypeField and Description
public static final String
tag

The name of this attribute "NestHost".

Inherited from javassist.bytecode.AttributeInfo:
constPoolinfoname

Constructor Summary

AccessConstructor and Description
pack-priv
private
NestHostAttribute(ConstPool cp, int hostIndex)

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 of host_class_index.
hostClassIndex
()

Returns host_class_index.

Inherited from javassist.bytecode.AttributeInfo:
copyAllgetgetConstPoolgetLengthgetNamegetRefClassesgetRefClasseslengthlookupreadremoverenameClassrenameClassrenameClassrenameClasssetwritewriteAll

Field Detail

tagback to summary
public static final String tag

The name of this attribute "NestHost".

Constructor Detail

NestHostAttributeback to summary
pack-priv NestHostAttribute(ConstPool cp, int n, DataInputStream in) throws IOException
NestHostAttributeback to summary
private NestHostAttribute(ConstPool cp, int hostIndex)

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
hostClassIndexback to summary
public int hostClassIndex()

Returns host_class_index. The constant pool entry at this entry is a CONSTANT_Class_info structure.

Returns:int

the value of host_class_index.