Class ArrayAttr
java.lang.Object
org.openjdk.asmtools.jasm.AttrData
org.openjdk.asmtools.jasm.ArrayAttr
- All Implemented Interfaces:
ConstantPoolDataVisitor, DataWriter
- Direct Known Subclasses:
LoadableDescriptorsAttr, NestMembersAttr, PermittedSubclassesAttr
Base class of the "classes/descriptors[]" 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]; }
Valhalla: LoadableDescriptors_attribute { u2 attribute_name_index; u4 attribute_length; u2 number_of_descriptors; u2 descriptors[number_of_descriptors]; }
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionArrayAttr(ConstantPool pool, EAttribute attribute, List<ConstCell> constCellList) -
Method Summary
Methods inherited from class AttrData
classifyConstCell, getAttribute, getLength, visitMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConstantPoolDataVisitor
visitConstCell, visitDataMethods inherited from interface DataWriter
isCountable
-
Field Details
-
cells
-
-
Constructor Details
-
ArrayAttr
-
-
Method Details
-
size
public int size() -
attrLength
public int attrLength()- Overrides:
attrLengthin classAttrData
-
write
- Specified by:
writein interfaceDataWriter- Overrides:
writein classAttrData- Throws:
IOException
-