Class RecordAttrInfo

  • All Implemented Interfaces:
    ClassConstants

    public class RecordAttrInfo
    extends AttrInfo
    Representation of the record attribute.
    • Method Detail

      • getAttrName

        protected java.lang.String getAttrName()
        Returns "Record".
        Overrides:
        getAttrName in class AttrInfo
        Returns:
        the attr name
      • getAttrInfoLength

        protected int getAttrInfoLength()
        Description copied from class: AttrInfo
        Return the length of the attribute in bytes; over-ride this in sub-classes.
        Overrides:
        getAttrInfoLength in class AttrInfo
        Returns:
        the attr info length
      • trimAttrsExcept

        protected void trimAttrsExcept​(java.lang.String[] keepAttrs)
        Description copied from class: AttrInfo
        Trim attributes from the classfile except those in the String[].
        Overrides:
        trimAttrsExcept in class AttrInfo
        Parameters:
        keepAttrs - the keep attrs
      • markUtf8RefsInInfo

        protected void markUtf8RefsInInfo​(ConstantPool pool)
        Description copied from class: AttrInfo
        Check for Utf8 references in the 'info' data to the constant pool and mark them; over-ride this in sub-classes.
        Overrides:
        markUtf8RefsInInfo in class AttrInfo
        Parameters:
        pool - the pool
      • readInfo

        protected void readInfo​(java.io.DataInput din)
                         throws java.io.IOException
        Read the data following the header.
        Overrides:
        readInfo in class AttrInfo
        Parameters:
        din - the din
        Throws:
        java.io.IOException - the io exception
      • writeInfo

        public void writeInfo​(java.io.DataOutput dout)
                       throws java.io.IOException
        Export data following the header to a DataOutput stream.
        Overrides:
        writeInfo in class AttrInfo
        Parameters:
        dout - the dout
        Throws:
        java.io.IOException - the io exception