public class SourceFileAttribute extends AttributeInfo
SourceFile_attribute
.Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
tag |
The name of this attribute
"SourceFile" . |
Constructor | Description |
---|---|
SourceFileAttribute(ConstPool cp,
java.lang.String filename) |
Constructs a SourceFile attribute.
|
Modifier and Type | Method | Description |
---|---|---|
AttributeInfo |
copy(ConstPool newCp,
java.util.Map<java.lang.String,java.lang.String> classnames) |
Makes a copy.
|
java.lang.String |
getFileName() |
Returns the file name indicated by
sourcefile_index . |
get, getConstPool, getName, length, set
public 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<java.lang.String,java.lang.String> classnames)
Map
object.copy
in class AttributeInfo
newCp
- 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.