public class SourceFileAttr extends Attribute
Constructor and Description |
---|
SourceFileAttr(int index,
ClassType ctype) |
SourceFileAttr(java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
void |
assignConstants(ClassType cl)
Add any needed constant pool entries for this Attribute.
|
static java.lang.String |
fixSourceFile(java.lang.String fname) |
int |
getLength()
Return the length of the attribute in bytes.
|
java.lang.String |
getSourceFile() |
void |
print(ClassTypeWriter dst) |
static void |
setSourceFile(ClassType cl,
java.lang.String filename) |
void |
setSourceFile(java.lang.String filename) |
void |
write(java.io.DataOutputStream dstr)
Write out the contents of the Attribute.
|
addToFrontOf, assignConstants, count, get, getConstants, getContainer, getLengthAll, getName, getNameIndex, getNext, isSkipped, setContainer, setName, setNameIndex, setNext, setSkipped, setSkipped, writeAll
public SourceFileAttr(java.lang.String filename)
public SourceFileAttr(int index, ClassType ctype)
public java.lang.String getSourceFile()
public void setSourceFile(java.lang.String filename)
public static java.lang.String fixSourceFile(java.lang.String fname)
public static void setSourceFile(ClassType cl, java.lang.String filename)
public void assignConstants(ClassType cl)
Attribute
assignConstants
in class Attribute
public final int getLength()
Attribute
public void write(java.io.DataOutputStream dstr) throws java.io.IOException
Attribute
public void print(ClassTypeWriter dst)