Package javassist.bytecode
Class SourceFileAttribute
java.lang.Object
javassist.bytecode.AttributeInfo
javassist.bytecode.SourceFileAttribute
SourceFile_attribute
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionSourceFileAttribute
(ConstPool cp, String filename) Constructs a SourceFile attribute. -
Method Summary
Modifier and TypeMethodDescriptionMakes a copy.Returns the file name indicated bysourcefile_index
.Methods inherited from class javassist.bytecode.AttributeInfo
get, getConstPool, getName, length, set
-
Field Details
-
tag
The name of this attribute"SourceFile"
.- See Also:
-
-
Constructor Details
-
SourceFileAttribute
Constructs a SourceFile attribute.- Parameters:
cp
- a constant pool table.filename
- the name of the source file.
-
-
Method Details
-
getFileName
Returns the file name indicated bysourcefile_index
. -
copy
Makes a copy. Class names are replaced according to the givenMap
object.- Overrides:
copy
in classAttributeInfo
- Parameters:
newCp
- the constant pool table used by the new copy.classnames
- pairs of replaced and substituted class names.
-