|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.classfile.constant.impl.AbstractJConstant
fr.umlv.corosol.classfile.constant.impl.DefaultJConstantDouble
public class DefaultJConstantDouble
The default implementation of JConstantDouble interface.
| Field Summary |
|---|
| Fields inherited from interface fr.umlv.corosol.classfile.constant.JConstant |
|---|
CONSTANT_CLASS, CONSTANT_DOUBLE, CONSTANT_FIELDREF, CONSTANT_FLOAT, CONSTANT_INTEGER, CONSTANT_INTERFACE_METHODREF, CONSTANT_LONG, CONSTANT_METHODREF, CONSTANT_NAME_AND_TYPE, CONSTANT_STRING, CONSTANT_UTF8 |
| Constructor Summary | |
|---|---|
DefaultJConstantDouble()
Default constructor. |
|
DefaultJConstantDouble(double doubleValue)
Creates a new CONSTANT_Double_info entry with the specified double value. |
|
| Method Summary | |
|---|---|
double |
getDoubleValue()
Returns the value stored in this constant pool entry. |
void |
pushConstantValue(JStackFrame frame)
Pushes the value onto the top of the operand stack of the specified stack frame. |
void |
readItem(JClassFileInput in)
Extracts the data of this constant pool entry from the specified input stream. |
void |
setDoubleValue(double doubleValue)
Sets the double value stored in this constant pool entry with the specified value. |
java.lang.String |
toString()
Returns a string representation of this constant pool entry. |
void |
writeItem(JClassFileOutput out)
Writes the data of this constant pool entry to a classfile via the specified output stream. |
| Methods inherited from class fr.umlv.corosol.classfile.constant.impl.AbstractJConstant |
|---|
getConstantPool, getLength, getTag, setConstantPool |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface fr.umlv.corosol.classfile.constant.JConstant |
|---|
getLength, getTag |
| Methods inherited from interface fr.umlv.corosol.classfile.JClassFileItem |
|---|
getConstantPool, setConstantPool |
| Constructor Detail |
|---|
public DefaultJConstantDouble()
public DefaultJConstantDouble(double doubleValue)
doubleValue - a double value to be stored in this entry| Method Detail |
|---|
public void readItem(JClassFileInput in)
throws java.io.IOException
readItem in interface JClassFileItemin - a class file input stream
java.io.IOException - if an I/O error occurs when
reading the datas of this constant pool entry
public void writeItem(JClassFileOutput out)
throws java.io.IOException
writeItem in interface JClassFileItemout - a class file output stream
java.io.IOException - if an I/O error occurs when
writing into the classfilepublic void pushConstantValue(JStackFrame frame)
pushConstantValue in interface JLoadableConstantframe - a stack framepublic double getDoubleValue()
getDoubleValue in interface JConstantDoublepublic void setDoubleValue(double doubleValue)
setDoubleValue in interface JConstantDoubledoubleValue - an double value to be stored in this entrypublic java.lang.String toString()
toString in interface JConstanttoString in class AbstractJConstant
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||