class CLSourceFileAttribute extends CLAttributeInfo
Modifier and Type | Field and Description |
---|---|
int |
sourceFileIndex
SourceFile_attribute.sourcefile_index item.
|
attributeLength, attributeNameIndex
Constructor and Description |
---|
CLSourceFileAttribute(int attributeNameIndex,
long attributeLength,
int sourceFileIndex)
Construct a CLSourceFileAttribute object.
|
Modifier and Type | Method and Description |
---|---|
void |
write(CLOutputStream out)
Write the contents of this attribute to the specified output stream.
|
void |
writeToStdOut(PrettyPrinter p)
Write the contents of this attribute to STDOUT in a format similar to
that of javap.
|
public CLSourceFileAttribute(int attributeNameIndex, long attributeLength, int sourceFileIndex)
attributeNameIndex
- SourceFile_attribute.attribute_name_index item.attributeLength
- SourceFile_attribute.attribute_length item.sourceFileIndex
- SourceFile_attribute.sourcefile_index item.public void write(CLOutputStream out) throws IOException
CLAttributeInfo
write
in class CLAttributeInfo
out
- output stream.IOException
- if an error occurs while writing.public void writeToStdOut(PrettyPrinter p)
CLAttributeInfo
writeToStdOut
in class CLAttributeInfo
p
- for pretty printing with indentation.