package com.vladium.jcd.cls.constant;
import java.io.IOException;
import com.vladium.jcd.lib.UDataInputStream;
import com.vladium.jcd.lib.UDataOutputStream;
// ----------------------------------------------------------------------------
/**
* The {@link CONSTANT_Long_info} and CONSTANT_Double_info represent eight-byte
* numeric (long and double) constants.<P>
*
* The high_bytes and low_bytes items of the CONSTANT_Double_info structure contain
* the double value in IEEE 754 floating-point "double format" bit layout.
*
* @author (C) 2001, Vlad Roubtsov
*/
public
final class CONSTANT_Double_info extends CONSTANT_literal_info
{
// public: ................................................................
public static final byte TAG = 6;
public double m_value;
public CONSTANT_Double_info (final double value)
{
m_value = value;
}
public final byte tag ()
{
return TAG;
}
// Visitor:
public Object accept (final ICONSTANTVisitor visitor, final Object ctx)
{
return visitor.visit (this, ctx);
}
public String toString ()
{
return Double.toString (m_value);
}
/**
* Overrides the default implementation to return '2'.
*/
public int width ()
{
return 2;
}
// Cloneable: inherited clone() is Ok
// IClassFormatOutput:
public void writeInClassFormat (final UDataOutputStream out) throws IOException
{
super.writeInClassFormat (out);
out.writeDouble (m_value);
}
// protected: .............................................................
protected CONSTANT_Double_info (final UDataInputStream bytes) throws IOException
{
m_value = bytes.readDouble ();
}
// package: ...............................................................
// private: ...............................................................
} // end of class
// ----------------------------------------------------------------------------
CONSTANT_Double_info.rar_The Eight
版权申诉
3 浏览量
2022-09-23
00:12:10
上传
评论
收藏 828B RAR 举报
小贝德罗
- 粉丝: 68
- 资源: 1万+
最新资源
- AT32与Sxx32/Gx32替换对照表
- STM32VET6单片机+XC3S250E(FPGA)+AD9708 DDS信号发生器MCU+FPGA源码+PDF硬件设计原理图
- SCIPOptSuite-9.0.0-win64-VS15.exe
- GIS10.4补丁文件
- fdgsfdgfdsgsf
- 基于CodeMirror5实现的mybatis+sql提示扩展功能,主要是用于在线设计开发场景中的动态sql部分.zip
- 计算机毕业设计-aSP.NET某中学学生成绩管理系统的设计(源代码+)-毕设源码实例.zip
- springboot集成mybatis动态sql.zip
- mybatis中的动态sql, 涉及 where trim set if foreach等
- 简单- 快递运输(Java & JS & Python & C).html
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈