Class RuntimeVisibleTypeAnnotationsAttrInfo

    • Constructor Detail

      • RuntimeVisibleTypeAnnotationsAttrInfo

        public RuntimeVisibleTypeAnnotationsAttrInfo​(ClassFile cf,
                                                     int attrNameIndex,
                                                     int attrLength)
        Instantiates a new Runtime visible type annotations attr info.
        Parameters:
        cf - the cf
        attrNameIndex - the attr name index
        attrLength - the attr length
    • Method Detail

      • getAttrName

        protected java.lang.String getAttrName()
        Description copied from class: AttrInfo
        Return the String name of the attribute; over-ride this in sub-classes.
        Overrides:
        getAttrName in class AttrInfo
        Returns:
        the attr name
      • getAnnotations

        public TypeAnnotationInfo[] getAnnotations()
        Get annotations type annotation info [ ].
        Returns:
        the type annotation info [ ]
      • getOwner

        public ClassFile getOwner()
        Gets owner.
        Returns:
        the owner
      • writeInfo

        public void writeInfo​(java.io.DataOutput dout)
                       throws java.io.IOException
        Description copied from class: AttrInfo
        Export data following the header to a DataOutput stream; over-ride this in sub-classes.
        Overrides:
        writeInfo in class AttrInfo
        Parameters:
        dout - the dout
        Throws:
        java.io.IOException - the io exception
      • readInfo

        protected void readInfo​(java.io.DataInput din)
                         throws java.io.IOException
        Description copied from class: AttrInfo
        Read the data following the header; over-ride this in sub-classes.
        Overrides:
        readInfo in class AttrInfo
        Parameters:
        din - the din
        Throws:
        java.io.IOException - the io exception
      • 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