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

📄 stacktraceframe.java

📁 一个开源的JAVA虚拟机
💻 JAVA
字号:
/* * This class records a frame in a stack trace. */package aegis;class StackTraceFrame {    /* The Aegis VM assumes that a frame has exactly 4 reference fields        (char[]) and exactly 1 primitive field (int).    */    private char[] className;    private char[] methodName;    private char[] methodSignature;    private char[] fileName;    private int lineNumber;    private StackTraceFrame() { }    public String toString() {	String msg = "" + new String(className) + "." +	    new String(methodName) + new String(methodSignature);	/* fileName or lineNumber may not be present for one of the	   following reasons:	   (1) The SourceFile and LineNumberTable attributes are optional	   attributes: a class file may not have them.	   (2) The VM may be built with the processing of the two attributes	   turned off.	*/	if (fileName != null) {	    msg += " (" + new String(fileName);	    if (lineNumber >= 0)		msg += ": " + Integer.toString(lineNumber);	    msg += ")";	}	return msg;    }}

⌨️ 快捷键说明

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