Package org.openjdk.asmtools.jasm

## Class ClassArrayAttr

- java.lang.Object
- - org.openjdk.asmtools.jasm.ClassArrayAttr

- Direct Known Subclasses:
    `NestMembersAttr`, `PermittedSubclassesAttr`

      public class ClassArrayAttr
      extends java.lang.Object

  Base class of the "classes[]" data of attributes

  JEP 181 (Nest-based Access Control): class file 55.0 NestMembers_attribute { u2 attribute_name_index; u4 attribute_length; u2 number_of_classes; u2 classes[number_of_classes]; }

  JEP 360 (Sealed types): class file 59.65535 PermittedSubclasses_attribute { u2 attribute_name_index; u4 attribute_length; u2 number_of_classes; u2 classes[number_of_classes]; }

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ClassArrayAttr​(java.lang.String attributeName, org.openjdk.asmtools.jasm.ClassData cdata, java.util.List<ConstantPool.ConstCell> classes)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Default Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `attrLength()` |
    `protected org.openjdk.asmtools.jasm.ClassData` | `getClassData()` |
    `int` | `getLength()` |
    `default java.lang.String` | `tabString​(int tabLevel)` |
    `void` | `write​(CheckedDataOutputStream out)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ClassArrayAttr

          public ClassArrayAttr​(java.lang.String attributeName,
                                org.openjdk.asmtools.jasm.ClassData cdata,
                                java.util.List<ConstantPool.ConstCell> classes)

  - ### Method Detail

    - #### attrLength

          public int attrLength()

    - #### write

          public void write​(CheckedDataOutputStream out)
                     throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### getClassData

          protected org.openjdk.asmtools.jasm.ClassData getClassData()

    - #### getLength

          public int getLength()

    - #### tabString

          public default java.lang.String tabString​(int tabLevel)