koala.dynamicjava.classfile
Class ConstantValueAttribute
java.lang.Object
|
+--koala.dynamicjava.classfile.BytecodeComponent
|
+--koala.dynamicjava.classfile.AttributeInfo
|
+--koala.dynamicjava.classfile.ConstantValueAttribute
- public class ConstantValueAttribute
- extends AttributeInfo
This class represents a constant field value
Method Summary |
void |
write(java.io.DataOutputStream out)
Writes the constant info to the given output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstantValueAttribute
public ConstantValueAttribute(ConstantPool cp,
java.lang.Integer value)
- Creates a new constant value attribute
- Parameters:
cp
- the constant pool where constants are storedvalue
- the value of this constant
ConstantValueAttribute
public ConstantValueAttribute(ConstantPool cp,
java.lang.Long value)
- Creates a new constant value attribute
- Parameters:
cp
- the constant pool where constants are storedvalue
- the value of this constant
ConstantValueAttribute
public ConstantValueAttribute(ConstantPool cp,
java.lang.Float value)
- Creates a new constant value attribute
- Parameters:
cp
- the constant pool where constants are storedvalue
- the value of this constant
ConstantValueAttribute
public ConstantValueAttribute(ConstantPool cp,
java.lang.Double value)
- Creates a new constant value attribute
- Parameters:
cp
- the constant pool where constants are storedvalue
- the value of this constant
ConstantValueAttribute
public ConstantValueAttribute(ConstantPool cp,
java.lang.String value)
- Creates a new constant value attribute
- Parameters:
cp
- the constant pool where constants are storedvalue
- the value of this constant
write
public void write(java.io.DataOutputStream out)
throws java.io.IOException
- Writes the constant info to the given output stream.
- Overrides:
write
in class BytecodeComponent
Copyright © 2001 Stephane Hillion. All Rights Reserved.