CODE, CONSTANT_VALUE, DEPRECATED, ENCLOSING_METHOD, EXCEPTIONS, INNER_CLASSES, LINE_NUMBER_TABLE, LOCAL_VARIABLE_TABLE, RUNTIME_INVISIBLE_ANNOTATIONS, RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS, RUNTIME_VISIBLE_ANNOTATIONS, RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS, SIGNATURE, SOURCE_FILE, STACK_MAP_TABLE, SYNTHETIC
Constructor and Description |
---|
SourceFileAttr(ConstantPool cp,
String fileName) |
SourceFileAttr(ConstantPool cp,
String name,
int length,
DataInput din) |
SourceFileAttr(ConstantPool cp,
String name,
String fileName) |
Modifier and Type | Method and Description |
---|---|
ConstantUTFInfo |
getFileName()
Returns the source file name.
|
int |
getLength()
Returns the length of the source file attribute, which is 2 bytes.
|
void |
writeDataTo(DataOutput dout)
Write just the attribute specific data.
|
getAttributes, getConstantPool, getName, getNameConstant, readFrom, skipBytes, writeTo
public SourceFileAttr(ConstantPool cp, String fileName)
public SourceFileAttr(ConstantPool cp, String name, String fileName)
public SourceFileAttr(ConstantPool cp, String name, int length, DataInput din) throws IOException
IOException
public ConstantUTFInfo getFileName()
public int getLength()
public void writeDataTo(DataOutput dout) throws IOException
Attribute
writeDataTo
in class Attribute
IOException
Copyright © 2004-2015 Cojen. All Rights Reserved.