Class NestMembersAttribute


  • public class NestMembersAttribute
    extends AttributeInfo
    NestMembers_attribute. It was introduced by JEP-181. See JVMS 4.7.29 for the specification.
    Since:
    3.24
    • Field Detail

      • tag

        public static final java.lang.String tag
        The name of this attribute "NestMembers".
        See Also:
        Constant Field Values
    • Constructor Detail

      • NestMembersAttribute

        NestMembersAttribute​(ConstPool cp,
                             int n,
                             java.io.DataInputStream in)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • NestMembersAttribute

        private NestMembersAttribute​(ConstPool cp,
                                     byte[] info)
    • Method Detail

      • copy

        public AttributeInfo copy​(ConstPool newCp,
                                  java.util.Map<java.lang.String,​java.lang.String> classnames)
        Makes a copy. Class names are replaced according to the given Map object.
        Overrides:
        copy in class AttributeInfo
        Parameters:
        newCp - the constant pool table used by the new copy.
        classnames - pairs of replaced and substituted class names.
      • numberOfClasses

        public int numberOfClasses()
        Returns number_of_classes.
        Returns:
        the number of the classes recorded in this attribute.
      • memberClass

        public int memberClass​(int index)
        Returns classes[index].
        Parameters:
        index - the index into classes.
        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.