at.dms.classfile
Class SourceFileAttribute

java.lang.Object
  extended by at.dms.classfile.Attribute
      extended by at.dms.classfile.SourceFileAttribute

public class SourceFileAttribute
extends Attribute

VMS 4.7.7 : Source File Attribute. This attribute represents the name of the source file from which this class file was compiled.


Field Summary
 
Fields inherited from class at.dms.classfile.Attribute
EMPTY
 
Constructor Summary
SourceFileAttribute(DataInput in, ConstantPool cp)
          Constructs a source file attribute from a class file stream.
SourceFileAttribute(String name)
          Create a source file attribute.
 
Method Summary
 
Methods inherited from class at.dms.classfile.Attribute
read, readCodeInfoAttribute, readInterfaceOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceFileAttribute

public SourceFileAttribute(String name)
Create a source file attribute.

Parameters:
name - the name of the source file

SourceFileAttribute

public SourceFileAttribute(DataInput in,
                           ConstantPool cp)
                    throws IOException,
                           ClassFileFormatException
Constructs a source file attribute from a class file stream.

Parameters:
in - the stream to read from
cp - the constant pool
Throws:
IOException - an io problem has occured
ClassFileFormatException - attempt to write a bad classfile info