Package javassist.bytecode
Class NestHostAttribute
java.lang.Object
javassist.bytecode.AttributeInfo
javassist.bytecode.NestHostAttribute
NestHost_attribute
.
It was introduced by JEP-181. See JVMS 4.7.28 for the specification.- Since:
- 3.24
-
Field Summary
FieldsFields inherited from class javassist.bytecode.AttributeInfo
constPool, info, name
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
NestHostAttribute
(ConstPool cp, int hostIndex) (package private)
NestHostAttribute
(ConstPool cp, int n, DataInputStream in) -
Method Summary
Modifier and TypeMethodDescriptionMakes a copy.int
Returnshost_class_index
.Methods inherited from class javassist.bytecode.AttributeInfo
copyAll, get, getConstPool, getLength, getName, getRefClasses, getRefClasses, length, lookup, read, remove, renameClass, renameClass, renameClass, renameClass, set, write, writeAll
-
Field Details
-
tag
The name of this attribute"NestHost"
.- See Also:
-
-
Constructor Details
-
NestHostAttribute
NestHostAttribute(ConstPool cp, int n, DataInputStream in) throws IOException - Throws:
IOException
-
NestHostAttribute
-
-
Method Details
-
copy
Makes a copy. Class names are replaced according to the givenMap
object.- Overrides:
copy
in classAttributeInfo
- Parameters:
newCp
- the constant pool table used by the new copy.classnames
- pairs of replaced and substituted class names.
-
hostClassIndex
public int hostClassIndex()Returnshost_class_index
. The constant pool entry at this entry is aCONSTANT_Class_info
structure.- Returns:
- the value of
host_class_index
.
-