📄 cpoolvalue1.java
字号:
// Copyright (c) 1997 Per M.A. Bothner.// This is free software; for terms and warranty disclaimer see ./COPYING.package gnu.bytecode;import java.io.*;/** A CONSTANT_Integer or CONSTANT_Float entry in the constant pool. */public class CpoolValue1 extends CpoolEntry{ int tag; int value; CpoolValue1 (int tag) { this.tag = tag; } CpoolValue1 (ConstantPool cpool, int tag, int hash, int value) { super (cpool, hash); this.tag = tag; this.value = value; } public int getTag() { return tag; } final static int hashCode (int val) { return val; } void write (DataOutputStream dstr) throws java.io.IOException { dstr.writeByte (tag); dstr.writeInt (value); } public void print (ClassTypeWriter dst, int verbosity) { if (tag == ConstantPool.INTEGER) { if (verbosity > 0) dst.print("Integer "); dst.print(value); if (verbosity > 1 && value != 0) { dst.print("=0x"); dst.print(Integer.toHexString(value)); } } else // tag == ConstantPool.FLOAT { if (verbosity > 0) dst.print("Float "); dst.print(Float.intBitsToFloat(value)); if (verbosity > 1) { dst.print("=0x"); dst.print(Integer.toHexString(value)); } } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -