public class Print extends Lua
Prototype,
LuaClosure| 限定符和类型 | 字段和说明 |
|---|---|
static String[] |
OPNAMES
String names for each lua opcode value.
|
static PrintStream |
ps |
_VERSION, BITRK, iABC, iABx, iAsBx, iAx, LFIELDS_PER_FLUSH, LUA_FUNC_ENV, LUA_JAVA_OO, LUA_LOCAL_ENV, LUA_MULTRET, luaP_opmodes, MASK_A, MASK_Ax, MASK_B, MASK_Bx, MASK_C, MASK_NOT_A, MASK_NOT_B, MASK_NOT_Bx, MASK_NOT_C, MASK_NOT_OP, MASK_OP, MAX_OP, MAXARG_A, MAXARG_Ax, MAXARG_B, MAXARG_Bx, MAXARG_C, MAXARG_sBx, MAXINDEXRK, NO_REG, NUM_OPCODES, OP_ADD, OP_AND, OP_BAND, OP_BNOT, OP_BOR, OP_BXOR, OP_CALL, OP_CLOSURE, OP_CONCAT, OP_DEFER, OP_DIV, OP_EQ, OP_EXTRAARG, OP_FORLOOP, OP_FORPREP, OP_GE, OP_GETENV, OP_GETGLOBAL, OP_GETTABLE, OP_GETTABUP, OP_GETUPVAL, OP_GT, OP_IDIV, OP_IMPORT, OP_JMP, OP_LE, OP_LEN, OP_LOADBOOL, OP_LOADK, OP_LOADKX, OP_LOADNIL, OP_LT, OP_MOD, OP_MODULE, OP_MOVE, OP_MUL, OP_NEQ, OP_NEWLIST, OP_NEWTABLE, OP_NOT, OP_OR, OP_POW, OP_RETURN, OP_SELF, OP_SETENV, OP_SETGLOBAL, OP_SETLIST, OP_SETTABLE, OP_SETTABUP, OP_SETUPVAL, OP_SHL, OP_SHR, OP_SUB, OP_TAILCALL, OP_TCALL, OP_TEST, OP_TESTSET, OP_TFORCALL, OP_TFOREACH, OP_TFORLOOP, OP_UNM, OP_VARARG, OpArgK, OpArgN, OpArgR, OpArgU, POS_A, POS_Ax, POS_B, POS_Bx, POS_C, POS_OP, SIZE_A, SIZE_Ax, SIZE_B, SIZE_Bx, SIZE_C, SIZE_OP| 构造器和说明 |
|---|
Print() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
print(Prototype prototype)
Pretty-prints contents of a Prototype.
|
static void |
printCode(Prototype f)
Print the code in a prototype
|
static void |
printFunction(Prototype prototype,
boolean full)
Pretty-prints contents of a Prototype in short or long form.
|
static void |
printOpCode(PrintStream ps,
Prototype f,
int pc)
Print an opcode in a prototype
|
static void |
printOpCode(Prototype f,
int pc)
Print an opcode in a prototype
|
static void |
printStack(LuaValue[] stack,
int top,
Varargs varargs) |
static void |
printState(LuaClosure cl,
int pc,
LuaValue[] stack,
int top,
Varargs varargs)
Print the state of a
LuaClosure that is being executed |
public static PrintStream ps
public static final String[] OPNAMES
public static void printCode(Prototype f)
f - the Prototypepublic static void printOpCode(Prototype f, int pc)
f - the Prototypepc - the program counter to look up and printpublic static void printOpCode(PrintStream ps, Prototype f, int pc)
ps - the PrintStream to print tof - the Prototypepc - the program counter to look up and printpublic static void print(Prototype prototype)
prototype - Prototype to print.public static void printFunction(Prototype prototype, boolean full)
prototype - Prototype to print.full - true to print all fields, false to print short form.public static void printState(LuaClosure cl, int pc, LuaValue[] stack, int top, Varargs varargs)
LuaClosure that is being executedcl - the LuaClosurepc - the program counterstack - the stack of LuaValuetop - the top of the stackvarargs - any Varargs value that may applyCopyright © 2020. All rights reserved.