Package javassist.bytecode
Class SourceFileAttribute
java.lang.Object
javassist.bytecode.AttributeInfo
javassist.bytecode.SourceFileAttribute
SourceFile_attribute
.-
Field Summary
FieldsFields inherited from class javassist.bytecode.AttributeInfo
constPool, info, name
-
Constructor Summary
ConstructorsConstructorDescriptionSourceFileAttribute
(ConstPool cp, int n, DataInputStream in) SourceFileAttribute
(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
copyAll, get, getConstPool, getLength, getName, getRefClasses, getRefClasses, length, lookup, read, remove, renameClass, renameClass, renameClass, renameClass, set, write, writeAll
-
Field Details
-
tag
The name of this attribute"SourceFile"
.- See Also:
-
-
Constructor Details
-
SourceFileAttribute
SourceFileAttribute(ConstPool cp, int n, DataInputStream in) throws IOException - Throws:
IOException
-
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.
-