Class SourceFileAttribute


  • public class SourceFileAttribute
    extends Attribute
    Source file class file attribute
    • Field Detail

      • attributeName

        private static CPUTF8 attributeName
      • name

        private final CPUTF8 name
      • nameIndex

        private int nameIndex
    • Constructor Detail

      • SourceFileAttribute

        public SourceFileAttribute​(CPUTF8 name)
    • Method Detail

      • setAttributeName

        public static void setAttributeName​(CPUTF8 cpUTF8Value)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class Attribute
      • isSourceFileAttribute

        public boolean isSourceFileAttribute()
        Description copied from class: Attribute
        Answer true if the receiver is a source file attribute (which gets special handling when the class is built); otherwise answer false.
        Overrides:
        isSourceFileAttribute in class Attribute
        Returns:
        boolean source file attribute
      • resolve

        protected void resolve​(ClassConstantPool pool)
        Description copied from class: ClassFileEntry
        Allows the constant pool entries to resolve their nested entries.
        Overrides:
        resolve in class Attribute
        Parameters:
        pool - TODO
      • writeBody

        protected void writeBody​(java.io.DataOutputStream dos)
                          throws java.io.IOException
        Specified by:
        writeBody in class Attribute
        Throws:
        java.io.IOException