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

CONSTANT_Integer_info

public final class CONSTANT_Integer_info extends CONSTANT_literal_info
The CONSTANT_Integer_info and CONSTANT_Float_info structures represent four-byte numeric (int and float) constants.

The bytes item of the CONSTANT_Integer_info structure contains the value of the int constant. The bytes of the value are stored in big-endian (high byte first) order.

author
(C) 2001, Vlad Roubtsov

Fields Summary
public static final byte
TAG
public int
m_value
Constructors Summary
public CONSTANT_Integer_info(int value)

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

        m_value = bytes.readInt ();
    
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 Integer.toString (m_value);
    
public voidwriteInClassFormat(com.vladium.jcd.lib.UDataOutputStream out)

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