⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpoolutf8.java

📁 linux下建立JAVA虚拟机的源码KAFFE
💻 JAVA
字号:
// Copyright (c) 1997  Per M.A. Bothner.// This is free software;  for terms and warranty disclaimer see ./COPYING.package gnu.bytecodecvssnap;import java.io.*;public class CpoolUtf8 extends CpoolEntry{  String string;  CpoolUtf8 () { }  CpoolUtf8 (ConstantPool cpool, int h, String s)  {    super (cpool, h);    string = s;  }  public int hashCode ()  {    if (hash == 0)      hash = string.hashCode();    return hash;  }  public final void intern () { string = string.intern(); }  public int getTag() { return 1; } // CONSTANT_CUtf8  public final String getString()  {    return string;  }  void write (DataOutputStream dstr) throws java.io.IOException  {	dstr.writeByte (1);  // CONSTANT_Utf8	dstr.writeUTF (string);  }  public void print (ClassTypeWriter dst, int verbosity)  {    if (verbosity > 0)      dst.print("Utf8: ");    dst.printQuotedString(string);  }};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -