Class AttrData
java.lang.Object
org.openjdk.asmtools.jasm.AttrData
- All Implemented Interfaces:
ConstantPoolDataVisitor, DataWriter
- Direct Known Subclasses:
ArrayAttr, CodeAttr, CPXAttr, DataVectorAttr, DefaultAnnotationAttr, EnclosingMethodAttr, 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 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
-
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
-
getAttribute
-