at.dms.classfile
Class ConstantValueAttribute
java.lang.Object
at.dms.classfile.Attribute
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 fromcp
- the constant pool
- Throws:
IOException
- an io problem has occured
ClassFileFormatException
- attempt to
write a bad classfile info