Package javassist.bytecode
Class SourceFileAttribute
- java.lang.Object
-
- javassist.bytecode.AttributeInfo
-
- javassist.bytecode.SourceFileAttribute
-
public class SourceFileAttribute extends AttributeInfo
SourceFile_attribute.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringtagThe name of this attribute"SourceFile".
-
Constructor Summary
Constructors Constructor Description SourceFileAttribute(ConstPool cp, java.lang.String filename)Constructs a SourceFile attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeInfocopy(ConstPool newCp, java.util.Map<java.lang.String,java.lang.String> classnames)Makes a copy.java.lang.StringgetFileName()Returns the file name indicated bysourcefile_index.-
Methods inherited from class javassist.bytecode.AttributeInfo
get, getConstPool, getName, length, set
-
-
-
-
Field Detail
-
tag
public static final java.lang.String tag
The name of this attribute"SourceFile".- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SourceFileAttribute
public SourceFileAttribute(ConstPool cp, java.lang.String filename)
Constructs a SourceFile attribute.- Parameters:
cp- a constant pool table.filename- the name of the source file.
-
-
Method Detail
-
getFileName
public java.lang.String getFileName()
Returns the file name indicated bysourcefile_index.
-
copy
public AttributeInfo copy(ConstPool newCp, java.util.Map<java.lang.String,java.lang.String> classnames)
Makes a copy. Class names are replaced according to the givenMapobject.- Overrides:
copyin classAttributeInfo- Parameters:
newCp- the constant pool table used by the new copy.classnames- pairs of replaced and substituted class names.
-
-