Package javassist.bytecode
Class NestMembersAttribute
java.lang.Object
javassist.bytecode.AttributeInfo
javassist.bytecode.NestMembersAttribute
NestMembers_attribute.
It was introduced by JEP-181. See JVMS 4.7.29 for the specification.- Since:
- 3.24
-
Field Summary
FieldsFields inherited from class javassist.bytecode.AttributeInfo
constPool, info, name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNestMembersAttribute(ConstPool cp, byte[] info) (package private)NestMembersAttribute(ConstPool cp, int n, DataInputStream in) -
Method Summary
Modifier and TypeMethodDescriptionMakes a copy.intmemberClass(int index) Returnsclasses[index].intReturnsnumber_of_classes.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"NestMembers".- See Also:
-
-
Constructor Details
-
NestMembersAttribute
NestMembersAttribute(ConstPool cp, int n, DataInputStream in) throws IOException - Throws:
IOException
-
NestMembersAttribute
-
-
Method Details
-
copy
Makes a copy. Class names are replaced according to the givenMapobject.- Overrides:
copyin classAttributeInfo- Parameters:
newCp- the constant pool table used by the new copy.classnames- pairs of replaced and substituted class names.
-
numberOfClasses
public int numberOfClasses()Returnsnumber_of_classes.- Returns:
- the number of the classes recorded in this attribute.
-
memberClass
public int memberClass(int index) Returnsclasses[index].- Parameters:
index- the index intoclasses.- Returns:
- the value at the given index in the
classesarray. It is an index into the constant pool. The constant pool entry at the returned index is aCONSTANT_Class_infostructure.
-