net.sf.rej.java.constantpool
Class DoubleInfo

java.lang.Object
  extended by net.sf.rej.java.constantpool.ConstantPoolInfo
      extended by net.sf.rej.java.constantpool.DoubleInfo

public class DoubleInfo
extends ConstantPoolInfo

DoubleInfo objects are double info entries in the constant pool.

Author:
Sami Koivu

Field Summary
 
Fields inherited from class net.sf.rej.java.constantpool.ConstantPoolInfo
CLASS, DOUBLE, FIELD_REF, FLOAT, INTEGER, INTERFACE_METHOD_REF, LONG, METHOD_REF, NAME_AND_TYPE, STRING, UTF8
 
Constructor Summary
DoubleInfo(double value, ConstantPool pool)
           
DoubleInfo(long highBytes, long lowBytes, ConstantPool pool)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 byte[] getData()
          Return the data of this entry in the form that it can be written to a class file.
 double getDoubleValue()
           
 long getHighBytes()
           
 long getLowBytes()
           
 java.lang.String getTypeString()
          Return a String describing the type of this instance.
 int hashCode()
           
 void setDoubleValue(double newValue)
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.rej.java.constantpool.ConstantPoolInfo
getCPI, getType, getValue
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleInfo

public DoubleInfo(long highBytes,
                  long lowBytes,
                  ConstantPool pool)

DoubleInfo

public DoubleInfo(double value,
                  ConstantPool pool)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getData

public byte[] getData()
Description copied from class: ConstantPoolInfo
Return the data of this entry in the form that it can be written to a class file.

Specified by:
getData in class ConstantPoolInfo
Returns:
byte[] array with data

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

getTypeString

public java.lang.String getTypeString()
Description copied from class: ConstantPoolInfo
Return a String describing the type of this instance.

Specified by:
getTypeString in class ConstantPoolInfo
Returns:
The type of this entry as a String.

getDoubleValue

public double getDoubleValue()

setDoubleValue

public void setDoubleValue(double newValue)

getLowBytes

public long getLowBytes()

getHighBytes

public long getHighBytes()