at.dms.classfile
Class ConstantValueAttribute

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

public class ConstantValueAttribute
extends Attribute

VMS 4.7.2: Constant Value Attribute. A ConstantValue attribute represents the value of a constant field that must be (explicitly or implicitly) static


Field Summary
 
Fields inherited from class at.dms.classfile.Attribute
EMPTY
 
Constructor Summary
ConstantValueAttribute(DataInput in, ConstantPool cp)
          Constructs a constant value attribute from a class file stream.
ConstantValueAttribute(Object value)
          Create a new constant attribute whose constant value is picked up from constant pool with the given entry.
 
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

ConstantValueAttribute

public ConstantValueAttribute(Object value)
Create a new constant attribute whose constant value is picked up from constant pool with the given entry.

Parameters:
value - the value

ConstantValueAttribute

public ConstantValueAttribute(DataInput in,
                              ConstantPool cp)
                       throws IOException,
                              ClassFileFormatException
Constructs a constant value 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