jef.dna.attributes
Interface SourceFileAttribute

All Superinterfaces:
Attribute, BytesCountable, java.lang.Cloneable
All Known Implementing Classes:
SourceFileAttribute

public interface SourceFileAttribute
extends Attribute

Class representing a Source File Attribute. The SourceFile attribute is an optional fixed-length attribute in the attributes table of the ClassFile structure. There can be no more than one SourceFile attribute in the attributes table of a given ClassFile structure

Author:
Francesco Russo frusso@cs.unibo.it

Method Summary
 int getSourceFileIndex()
          The value of the sourcefile_index item must be a valid index into the constant_pool table.
 void setSourceFileIndex(int srcFileIndex)
          The value of the sourcefile_index item must be a valid index into the constant_pool table.
 
Methods inherited from interface jef.dna.attributes.Attribute
clone, fromStream, getDna, getLength, getNameIndex, setDna, setNameIndex, toStream, updateRefs, validate
 
Methods inherited from interface jef.dna.util.BytesCountable
getBytesCount
 

Method Detail

setSourceFileIndex

void setSourceFileIndex(int srcFileIndex)
The value of the sourcefile_index item must be a valid index into the constant_pool table. The constant pool entry at that index must be a CONSTANT_Utf8_info structure representing a string.

Parameters:
srcFileIndex - A valid index into the constant pool table as described above

getSourceFileIndex

int getSourceFileIndex()
The value of the sourcefile_index item must be a valid index into the constant_pool table. The constant pool entry at that index must be a CONSTANT_Utf8_info structure representing a string.

Returns:
int A valid index into the constant pool table as described above