SourceFilepublic final class SourceFile extends Attribute This class is derived from Attribute and represents a reference
to the source file of this class.
It is instantiated from the Attribute.readAttribute() method. |
Fields Summary |
---|
private int | sourcefile_index |
Constructors Summary |
---|
public SourceFile(SourceFile c)Initialize from another object. Note that both objects use the same
references (shallow copy). Use clone() for a physical copy.
this(c.getNameIndex(), c.getLength(), c.getSourceFileIndex(),
c.getConstantPool());
| SourceFile(int name_index, int length, DataInputStream file, ConstantPool constant_pool)Construct object from file stream.
this(name_index, length, file.readUnsignedShort(), constant_pool);
| public SourceFile(int name_index, int length, int sourcefile_index, ConstantPool constant_pool)
super(Constants.ATTR_SOURCE_FILE, name_index, length, constant_pool);
this.sourcefile_index = sourcefile_index;
|
|