public class SourceFileAttribute extends AttributeInfo
SourceFile_attribute.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
tag
The name of this attribute
"SourceFile". |
constPool, info, name| Constructor and Description |
|---|
SourceFileAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
SourceFileAttribute(ConstPool cp,
java.lang.String filename)
Constructs a SourceFile attribute.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeInfo |
copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
java.lang.String |
getFileName()
Returns the file name indicated by
sourcefile_index. |
copyAll, get, getConstPool, getLength, getName, getRefClasses, getRefClasses, length, lookup, read, remove, renameClass, renameClass, renameClass, renameClass, set, write, writeAllpublic static final java.lang.String tag
"SourceFile".SourceFileAttribute(ConstPool cp, int n, java.io.DataInputStream in) throws java.io.IOException
java.io.IOExceptionpublic SourceFileAttribute(ConstPool cp, java.lang.String filename)
cp - a constant pool table.filename - the name of the source file.public java.lang.String getFileName()
sourcefile_index.public AttributeInfo copy(ConstPool newCp, java.util.Map classnames)
Map object.copy in class AttributeInfonewCp - the constant pool table used by the new copy.classnames - pairs of replaced and substituted
class names.