Class SourceFileAttr

java.lang.Object
org.openjdk.asmtools.jasm.AttrData
org.openjdk.asmtools.jasm.SourceFileAttr
All Implemented Interfaces:
ConstantPoolDataVisitor, DataWriter

public class SourceFileAttr extends AttrData
SourceFile_attribute { u2 attribute_name_index; u4 attribute_length; u2 sourcefile_index; }
  • Field Details

    • sourceFileName

      private String sourceFileName
    • sourceFileNameCell

      private ConstCell sourceFileNameCell
  • Constructor Details

    • SourceFileAttr

      public SourceFileAttr(ConstantPool pool, String sourceFileName)
      Constructs SourceFile Attribute without creating Constant Pool UTF8 SourceFile
      Parameters:
      pool - constant pool of parsed class data
      sourceFileName - a name of a parsed file
    • SourceFileAttr

      public SourceFileAttr(ConstantPool pool, ConstCell sourceFileNameCell)
      Constructs SourceFile Attribute without creating Constant Pool UTF8 SourceFile
      Parameters:
      pool - constant pool of parsed class data
      sourceFileNameCell - ConstantPool UTF8 cell
  • Method Details