-
- All Implemented Interfaces:
public interface AttributeContainerImplemented by structures that have attributes.
-
-
Method Summary
Modifier and Type Method Description <T extends AttributeInfo> TfindAttribute(Class<T> attributeClass)Find an attribute of a certain class. UnitreadAttributes(AttributeContainer $self, DataInput input, ClassFile classFile)Read the attributes of this structure from the given DataInput. UnitwriteAttributes(AttributeContainer $self, DataOutput output)Write the attributes of this structure to the given DataOutput. abstract Array<AttributeInfo>getAttributes()Attributes of this structure. abstract UnitsetAttributes(Array<AttributeInfo> attributes)Attributes of this structure. IntegergetTotalAttributesLength()-
-
Method Detail
-
findAttribute
<T extends AttributeInfo> T findAttribute(Class<T> attributeClass)
Find an attribute of a certain class.
- Parameters:
attributeClass- the class of the attribute
-
readAttributes
Unit readAttributes(AttributeContainer $self, DataInput input, ClassFile classFile)
Read the attributes of this structure from the given DataInput.
- Parameters:
input- the DataInput from which to read
-
writeAttributes
Unit writeAttributes(AttributeContainer $self, DataOutput output)
Write the attributes of this structure to the given DataOutput.
- Parameters:
output- the DataOutput to which to write
-
getAttributes
abstract Array<AttributeInfo> getAttributes()
Attributes of this structure.
-
setAttributes
abstract Unit setAttributes(Array<AttributeInfo> attributes)
Attributes of this structure.
-
getTotalAttributesLength
Integer getTotalAttributesLength()
-
-
-
-