javassist.bytecode

Class SourceFileAttribute

public class SourceFileAttribute extends AttributeInfo

SourceFile_attribute.
Field Summary
static Stringtag
The name of this attribute "SourceFile".
Constructor Summary
SourceFileAttribute(ConstPool cp, String filename)
Constructs a SourceFile attribute.
Method Summary
AttributeInfocopy(ConstPool newCp, Map classnames)
Makes a copy.
StringgetFileName()
Returns the file name indicated by sourcefile_index.

Field Detail

tag

public static final String tag
The name of this attribute "SourceFile".

Constructor Detail

SourceFileAttribute

public SourceFileAttribute(ConstPool cp, String filename)
Constructs a SourceFile attribute.

Parameters: cp a constant pool table. filename the name of the source file.

Method Detail

copy

public AttributeInfo copy(ConstPool newCp, Map classnames)
Makes a copy. Class names are replaced according to the given Map object.

Parameters: newCp the constant pool table used by the new copy. classnames pairs of replaced and substituted class names.

getFileName

public String getFileName()
Returns the file name indicated by sourcefile_index.
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999-2006 Shigeru Chiba. All Rights Reserved.