|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkoala.dynamicjava.classfile.BytecodeComponent
koala.dynamicjava.classfile.AttributeInfo
koala.dynamicjava.classfile.ConstantValueAttribute
This class represents a constant field value
Field Summary |
Fields inherited from class koala.dynamicjava.classfile.AttributeInfo |
length |
Fields inherited from class koala.dynamicjava.classfile.BytecodeComponent |
constantPool, nameIndex |
Constructor Summary | |
ConstantValueAttribute(ConstantPool cp,
java.lang.Double value)
Creates a new constant value attribute |
|
ConstantValueAttribute(ConstantPool cp,
java.lang.Float value)
Creates a new constant value attribute |
|
ConstantValueAttribute(ConstantPool cp,
java.lang.Integer value)
Creates a new constant value attribute |
|
ConstantValueAttribute(ConstantPool cp,
java.lang.Long value)
Creates a new constant value attribute |
|
ConstantValueAttribute(ConstantPool cp,
java.lang.String value)
Creates a new constant value attribute |
Method Summary | |
void |
write(java.io.DataOutputStream out)
Writes the constant info to the given output stream. |
Methods inherited from class koala.dynamicjava.classfile.BytecodeComponent |
getConstantPool, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConstantValueAttribute(ConstantPool cp, java.lang.Integer value)
cp
- the constant pool where constants are storedvalue
- the value of this constantpublic ConstantValueAttribute(ConstantPool cp, java.lang.Long value)
cp
- the constant pool where constants are storedvalue
- the value of this constantpublic ConstantValueAttribute(ConstantPool cp, java.lang.Float value)
cp
- the constant pool where constants are storedvalue
- the value of this constantpublic ConstantValueAttribute(ConstantPool cp, java.lang.Double value)
cp
- the constant pool where constants are storedvalue
- the value of this constantpublic ConstantValueAttribute(ConstantPool cp, java.lang.String value)
cp
- the constant pool where constants are storedvalue
- the value of this constantMethod Detail |
public void write(java.io.DataOutputStream out) throws java.io.IOException
write
in class BytecodeComponent
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |