Package org.openjdk.asmtools.jasm
Class AttrData
java.lang.Object
org.openjdk.asmtools.jasm.AttrData
- All Implemented Interfaces:
ConstantPoolDataVisitor,DataWriter
- Direct Known Subclasses:
ClassArrayAttr,CodeAttr,CPXAttr,DataVectorAttr,DefaultAnnotationAttr,MethodData.DataPArrayAttr,ModuleAttr,RecordData,SourceDebugExtensionAttr,SourceFileAttr
AttrData
AttrData is the base class for many attributes (or parts of attributes), and it is instantiated directly for simple attributes (like Synthetic or Deprecated).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected ConstCell<?> classifyConstCell(ConstantPool pool, ConstCell<?> cell) int<T extends DataWriter>
Tvisit(ConstantPool pool) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openjdk.asmtools.jasm.ConstantPoolDataVisitor
visitConstCell, visitData
-
Field Details
-
attribute
-
attributeNameConstantCell
-
-
Constructor Details
-
AttrData
AttrData(ConstantPool pool, EAttribute attribute)
-
-
Method Details
-
visit
- Specified by:
visitin interfaceConstantPoolDataVisitor
-
classifyConstCell
-
getLength
public int getLength()- Specified by:
getLengthin interfaceDataWriter
-
attrLength
public int attrLength() -
write
- Specified by:
writein interfaceDataWriter- Throws:
IOException
-