Class NestMembersAttribute

All Implemented Interfaces:
IClassFileAttribute, INestMembersAttribute

public class NestMembersAttribute extends ClassFileAttribute implements INestMembersAttribute
Default implementation of INestMembersAttribute.
  • Constructor Details

    • NestMembersAttribute

      public NestMembersAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException
      Constructor for NestMembersAttribute.
      Parameters:
      classFileBytes -
      constantPool -
      offset -
      Throws:
      ClassFormatException
  • Method Details

    • getNumberOfNestMembers

      public int getNumberOfNestMembers()
      Description copied from interface: INestMembersAttribute
      Answer back the number of nest members as specified in the JVM specifications.
      Specified by:
      getNumberOfNestMembers in interface INestMembersAttribute
      Returns:
      the number of nest members as specified in the JVM specifications
    • getNestMemberAttributesEntries

      public INestMemberAttributeEntry[] getNestMemberAttributesEntries()
      Description copied from interface: INestMembersAttribute
      Answer back the array of nest member attribute entries as specified in the JVM specifications, or an empty array if none.
      Specified by:
      getNestMemberAttributesEntries in interface INestMembersAttribute
      Returns:
      the array of nest member attribute entries as specified in the JVM specifications, or an empty array if none