All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yworks.yguard.obf.classfile.DoubleCpInfo Maven / Gradle / Ivy

/*
 * YGuard -- an obfuscation library for Java(TM) classfiles.
 *
 * Original Copyright (c) 1999 Mark Welsh ([email protected])
 * Modifications Copyright (c) 2002 yWorks GmbH ([email protected])
 *
 */
package com.yworks.yguard.obf.classfile;

import java.io.*;

/**
 * Representation of a 'double' entry in the ConstantPool (takes up two indices).
 *
 * @author Mark Welsh
 */
public class DoubleCpInfo extends CpInfo
{
    // Constants -------------------------------------------------------------


    // Fields ----------------------------------------------------------------
    private int u4highBytes;
    private int u4lowBytes;


    // Class Methods ---------------------------------------------------------


    /**
     * Instantiates a new Double cp info.
     */
    protected DoubleCpInfo()
    {
        super(CONSTANT_Double);
    }


    // Instance Methods ------------------------------------------------------
    /** Read the 'info' data following the u1tag byte. */
    protected void readInfo(DataInput din) throws java.io.IOException
    {
        u4highBytes = din.readInt();
        u4lowBytes = din.readInt();
    }

    /** Write the 'info' data following the u1tag byte. */
    protected void writeInfo(DataOutput dout) throws java.io.IOException
    {
        dout.writeInt(u4highBytes);
        dout.writeInt(u4lowBytes);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy