Class ClassFile.SignatureAttribute

  • Enclosing class:
    ClassFile

    public static class ClassFile.SignatureAttribute
    extends ClassFile.AttributeInfo
    Representation of a Signature attribute (see JVMS 4.7.9).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private short signatureIndex  
    • Constructor Summary

      Constructors 
      Constructor Description
      SignatureAttribute​(short attributeNameIndex, short signatureIndex)  
    • Field Detail

      • signatureIndex

        private final short signatureIndex
    • Constructor Detail

      • SignatureAttribute

        public SignatureAttribute​(short attributeNameIndex,
                                  short signatureIndex)
    • Method Detail

      • getSignature

        public java.lang.String getSignature​(ClassFile classFile)
      • loadBody

        private static ClassFile.AttributeInfo loadBody​(short attributeNameIndex,
                                                        java.io.DataInputStream dis)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • storeBody

        protected void storeBody​(java.io.DataOutputStream dos)
                          throws java.io.IOException
        Description copied from class: ClassFile.AttributeInfo
        Writes the body of this attribute in an attribute-type dependent way; see JVMS7 4.7.2 and following.
        Specified by:
        storeBody in class ClassFile.AttributeInfo
        Throws:
        java.io.IOException