javar.attributes
Class SourceFile
java.lang.Object
|
+--javar.attributes.Attribute
|
+--javar.attributes.SourceFile
- public class SourceFile
- extends Attribute
This class represents an attribute of the class which tells the source file
that it was loaded from.
- Author:
- Ben Litchfield
|
Method Summary |
void |
load(DataInputStream in)
This will load in the data for the attribute |
byte[] |
toBytes()
This will take this attribute and convert it into
an array of bytes that can be stored in a classfile. |
SourceFile
public SourceFile(ConstantPool p,
long n)
- Constructor
toBytes
public byte[] toBytes()
- This will take this attribute and convert it into
an array of bytes that can be stored in a classfile.
- Specified by:
toBytes in class Attribute
- Returns:
- array of bytes representing this attribute
load
public void load(DataInputStream in)
- This will load in the data for the attribute
- Specified by:
load in class Attribute