public class SourceFileAttribute extends AttributeInfo
SourceFile_attribute.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
tag
The name of this attribute
"SourceFile". |
| Constructor and Description |
|---|
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. |
get, getConstPool, getName, length, setpublic static final java.lang.String tag
"SourceFile".public 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.Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.