jef.dna.constantInfo.impl
Class ConstantDouble

java.lang.Object
  extended by jef.dna.constantInfo.impl.ConstantAncestor
      extended by jef.dna.constantInfo.impl.ConstantDouble
All Implemented Interfaces:
java.lang.Cloneable, ConstantInfo, ConstDouble

@ClosingCpInfo
public class ConstantDouble
extends ConstantAncestor
implements ConstDouble


Field Summary
protected static java.lang.String className
           
protected static Logger logger
           
protected  java.lang.String type
           
 
Fields inherited from class jef.dna.constantInfo.impl.ConstantAncestor
cpt, tag
 
Constructor Summary
ConstantDouble()
           
 
Method Summary
 java.lang.Object clone()
          The clone() method will return a new instance whose reference to the containing ConstantPoolTable instance is set to null.
 void fromStream(java.io.DataInputStream dis)
          This method does not perform anything.
 int getHighBytes()
          The high_bytes and low_bytes items of the CONSTANT_Double_info structure together represent the double value in IEEE 754 floating-point double format.
 int getLowBytes()
          The high_bytes and low_bytes items of the CONSTANT_Double_info structure together represent the double value in IEEE 754 floating-point double format.
protected  void innerValidations(ConstantPoolTable cpt)
           
 void setHighBytes(int highB)
          The high_bytes and low_bytes items of the CONSTANT_Double_info structure together represent the double value in IEEE 754 floating-point double format.
 void setLowBytes(int lowB)
          The high_bytes and low_bytes items of the CONSTANT_Double_info structure together represent the double value in IEEE 754 floating-point double format.
 void toStream(java.io.DataOutputStream dos)
          This method does not perform anything.
 
Methods inherited from class jef.dna.constantInfo.impl.ConstantAncestor
getCpt, getTag, getType, setCpt, setTag, updateRefs, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jef.dna.constantInfo.ConstantInfo
getCpt, getTag, getType, setCpt, setTag, updateRefs, validate
 

Field Detail

type

protected java.lang.String type

className

protected static java.lang.String className

logger

protected static Logger logger
Constructor Detail

ConstantDouble

public ConstantDouble()
Method Detail

getHighBytes

public int getHighBytes()
Description copied from interface: ConstDouble
The high_bytes and low_bytes items of the CONSTANT_Double_info structure together represent the double value in IEEE 754 floating-point double format.

Specified by:
getHighBytes in interface ConstDouble
Returns:
int The high part of the double constant

setHighBytes

public void setHighBytes(int highB)
Description copied from interface: ConstDouble
The high_bytes and low_bytes items of the CONSTANT_Double_info structure together represent the double value in IEEE 754 floating-point double format.

Specified by:
setHighBytes in interface ConstDouble
Parameters:
highB - The high part of the double constant

getLowBytes

public int getLowBytes()
Description copied from interface: ConstDouble
The high_bytes and low_bytes items of the CONSTANT_Double_info structure together represent the double value in IEEE 754 floating-point double format.

Specified by:
getLowBytes in interface ConstDouble
Returns:
int The low part of the double constant

setLowBytes

public void setLowBytes(int lowB)
Description copied from interface: ConstDouble
The high_bytes and low_bytes items of the CONSTANT_Double_info structure together represent the double value in IEEE 754 floating-point double format.

Specified by:
setLowBytes in interface ConstDouble
Parameters:
lowB - The low part of the double constant

toStream

public void toStream(java.io.DataOutputStream dos)
              throws DnaSerializationException
Description copied from class: ConstantAncestor
This method does not perform anything. Implementation subclasses have to provide their own implementation.

Specified by:
toStream in interface ConstantInfo
Specified by:
toStream in class ConstantAncestor
Parameters:
dos - The DataOutputStream to write the object to
Throws:
DnaSerializationException

fromStream

public void fromStream(java.io.DataInputStream dis)
                throws DnaDeserializationException
Description copied from class: ConstantAncestor
This method does not perform anything. Implementation subclasses have to provide their own implementation.

Specified by:
fromStream in interface ConstantInfo
Specified by:
fromStream in class ConstantAncestor
Parameters:
dis - The DataInputStream for reading the Constant Info fields
Throws:
DnaDeserializationException

innerValidations

protected void innerValidations(ConstantPoolTable cpt)
                         throws ConstantInfoValidationException,
                                ConstantInfoAttributeOutOfRangeException
Specified by:
innerValidations in class ConstantAncestor
Throws:
ConstantInfoValidationException
ConstantInfoAttributeOutOfRangeException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
The clone() method will return a new instance whose reference to the containing ConstantPoolTable instance is set to null. It is up to you appropriately setting it to the correct value.

Specified by:
clone in interface ConstantInfo
Overrides:
clone in class ConstantAncestor
Returns:
The clone
Throws:
java.lang.CloneNotSupportedException