public class SourceFileAttribute extends AttributeInfo
SourceFile_attribute.| Modifier and Type | Field | Description |
|---|---|---|
static String |
tag |
The name of this attribute
"SourceFile". |
constPool| Constructor | Description |
|---|---|
SourceFileAttribute(ConstPool cp,
String filename) |
Constructs a SourceFile attribute.
|
| Modifier and Type | Method | Description |
|---|---|---|
AttributeInfo |
copy(ConstPool newCp,
Map<String,String> classnames) |
Makes a copy.
|
String |
getFileName() |
Returns the file name indicated by
sourcefile_index. |
get, getConstPool, getName, length, setpublic static final String tag
"SourceFile".public String getFileName()
sourcefile_index.public AttributeInfo copy(ConstPool newCp, Map<String,String> classnames)
Map object.copy in class AttributeInfonewCp - the constant pool table used by the new copy.classnames - pairs of replaced and substituted
class names.Copyright © 2018 Shigeru Chiba, www.javassist.org. All rights reserved.