FileDocCategorySizeDatePackage
CONSTANT_Long_info.javaAPI DocAndroid 1.5 API2572Wed May 06 22:41:16 BST 2009com.vladium.jcd.cls.constant

CONSTANT_Long_info

public final class CONSTANT_Long_info extends CONSTANT_literal_info
The CONSTANT_Long_info and {@link 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

Fields Summary
public static final byte
TAG
public long
m_value
Constructors Summary
public CONSTANT_Long_info(long value)

    
    
        
    
        m_value = value;
    
protected CONSTANT_Long_info(com.vladium.jcd.lib.UDataInputStream bytes)

        m_value = bytes.readLong ();
    
Methods Summary
public java.lang.Objectaccept(ICONSTANTVisitor visitor, java.lang.Object ctx)

        return visitor.visit (this, ctx);
    
public final bytetag()

        return TAG;
    
public java.lang.StringtoString()

        return Long.toString (m_value);
    
public intwidth()
Overrides the default implementation to return '2'.

        return 2;
    
public voidwriteInClassFormat(com.vladium.jcd.lib.UDataOutputStream out)

        super.writeInClassFormat (out);
        
        out.writeLong (m_value);