com.vladium.jcd.cls.constant
Class CONSTANT_Long_info

java.lang.Object
  extended bycom.vladium.jcd.cls.constant.CONSTANT_info
      extended bycom.vladium.jcd.cls.constant.CONSTANT_literal_info
          extended bycom.vladium.jcd.cls.constant.CONSTANT_Long_info
All Implemented Interfaces:
java.lang.Cloneable, IClassFormatOutput

public final class CONSTANT_Long_info
extends CONSTANT_literal_info

The CONSTANT_Long_info and CONSTANT_Double_info represent eight-byte numeric (long and double) constants.

The unsigned high_bytes and low_bytes items of the CONSTANT_Long_info structure together contain the value of the long constant (( long ) high_bytes << 32) + low_bytes , where the bytes of each of high_bytes and low_bytes are stored in big-endian (high byte first) order.

Author:
(C) 2001, Vlad Roubtsov

Field Summary
 long m_value
           
static byte TAG
           
 
Constructor Summary
  CONSTANT_Long_info(long value)
           
protected CONSTANT_Long_info(UDataInputStream bytes)
           
 
Method Summary
 java.lang.Object accept(ICONSTANTVisitor visitor, java.lang.Object ctx)
           
 byte tag()
          Returns the tag byte for this CONSTANT type [this data is static class data].
 java.lang.String toString()
           
 int width()
          Overrides the default implementation to return '2'.
 void writeInClassFormat(UDataOutputStream out)
           
 
Methods inherited from class com.vladium.jcd.cls.constant.CONSTANT_info
clone, new_CONSTANT_info, tagToString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAG

public static final byte TAG
See Also:
Constant Field Values

m_value

public long m_value
Constructor Detail

CONSTANT_Long_info

public CONSTANT_Long_info(long value)

CONSTANT_Long_info

protected CONSTANT_Long_info(UDataInputStream bytes)
                      throws java.io.IOException
Method Detail

tag

public final byte tag()
Description copied from class: CONSTANT_info
Returns the tag byte for this CONSTANT type [this data is static class data].

Specified by:
tag in class CONSTANT_info

accept

public java.lang.Object accept(ICONSTANTVisitor visitor,
                               java.lang.Object ctx)
Specified by:
accept in class CONSTANT_info

toString

public java.lang.String toString()
Specified by:
toString in class CONSTANT_info

width

public int width()
Overrides the default implementation to return '2'.

Overrides:
width in class CONSTANT_info
Returns:
int
See Also:
CONSTANT_Long_info, CONSTANT_Long_info

writeInClassFormat

public void writeInClassFormat(UDataOutputStream out)
                        throws java.io.IOException
Specified by:
writeInClassFormat in interface IClassFormatOutput
Overrides:
writeInClassFormat in class CONSTANT_info
Throws:
java.io.IOException