Class ClassFile.SourceFileAttribute

  • Enclosing class:
    ClassFile

    public static class ClassFile.SourceFileAttribute
    extends ClassFile.AttributeInfo
    Representation of a "SourceFile" attribute (see JVMS 4.7.7).
    • Field Summary

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

      Constructors 
      Constructor Description
      SourceFileAttribute​(short attributeNameIndex, short sourceFileIndex)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static ClassFile.AttributeInfo loadBody​(short attributeNameIndex, java.io.DataInputStream dis)  
      protected void storeBody​(java.io.DataOutputStream dos)
      Writes the body of this attribute in an attribute-type dependent way; see JVMS7 4.7.2 and following.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sourceFileIndex

        private final short sourceFileIndex
    • Constructor Detail

      • SourceFileAttribute

        public SourceFileAttribute​(short attributeNameIndex,
                                   short sourceFileIndex)
    • Method Detail

      • 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