Class AttributeInfo

    • Field Detail

      • attributeNameIndex

        private int attributeNameIndex
    • Constructor Detail

      • AttributeInfo

        protected AttributeInfo​(ClassFile cf)
    • Method Detail

      • getClassFile

        public ClassFile getClassFile()
      • getName

        public java.lang.String getName()
        Returns the name of this attribute.
        Returns:
        The name of this attribute.
      • readUnsupportedAttribute

        public static UnsupportedAttribute readUnsupportedAttribute​(ClassFile cf,
                                                                    java.io.DataInputStream in,
                                                                    java.lang.String attrName,
                                                                    int attrLength)
                                                             throws java.io.IOException
        Reads an unknown/unsupported attribute from an input stream.
        Parameters:
        cf - The class file containing the attribute.
        in - The input stream to read from.
        attrName - The name of the attribute.
        attrLength - The length of the data to read from in, in bytes.
        Returns:
        The attribute.
        Throws:
        java.io.IOException - If an IO error occurs.