?? constant_integer_info.java
字號:
package AST;
import java.util.HashSet;import java.util.LinkedHashSet;import java.io.FileNotFoundException;import java.io.File;import java.util.*;import beaver.*;import java.util.ArrayList;import java.util.zip.*;import java.io.*;public class CONSTANT_Integer_Info extends CONSTANT_Info {
// Declared in BytecodeCONSTANT.jrag at line 134 public int value; // Declared in BytecodeCONSTANT.jrag at line 136 public CONSTANT_Integer_Info(BytecodeParser parser) { super(parser); value = p.readInt(); } // Declared in BytecodeCONSTANT.jrag at line 141 public String toString() { return "IntegerInfo: " + Integer.toString(value); } // Declared in BytecodeCONSTANT.jrag at line 145 public Expr expr() { //return new IntegerLiteral(Integer.toString(value)); return new IntegerLiteral("0x" + Integer.toHexString(value)); } // Declared in BytecodeCONSTANT.jrag at line 149 public Expr exprAsBoolean() { return new BooleanLiteral(value == 0 ? "false" : "true"); }
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -