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 TypeMethodDescriptionint
protected ConstCell
<?> classifyConstCell
(ConstantPool pool, ConstCell<?> cell) int
<T extends DataWriter>
Tvisit
(ConstantPool pool) void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ConstantPoolDataVisitor
visitConstCell, visitData
-
Field Details
-
attribute
-
attributeNameConstantCell
-
-
Constructor Details
-
AttrData
AttrData(ConstantPool pool, EAttribute attribute)
-
-
Method Details
-
visit
- Specified by:
visit
in interfaceConstantPoolDataVisitor
-
classifyConstCell
-
getLength
public int getLength()- Specified by:
getLength
in interfaceDataWriter
-
attrLength
public int attrLength() -
write
- Specified by:
write
in interfaceDataWriter
- Throws:
IOException
-