|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.luaj.vm2.Lua
public class Lua
Constants for lua limits and opcodes.
This is a direct translation of C lua distribution header file constants for bytecode creation and processing.
Field Summary | |
---|---|
static java.lang.String |
_VERSION
version is supplied by ant build task |
static int |
BITRK
this bit 1 means constant (0 means register) |
static int |
iABC
|
static int |
iABx
|
static int |
iAsBx
|
static int |
LFIELDS_PER_FLUSH
|
static int |
LUA_MULTRET
use return values from previous op |
static int[] |
luaP_opmodes
|
static int |
MASK_A
|
static int |
MASK_B
|
static int |
MASK_Bx
|
static int |
MASK_C
|
static int |
MASK_NOT_A
|
static int |
MASK_NOT_B
|
static int |
MASK_NOT_Bx
|
static int |
MASK_NOT_C
|
static int |
MASK_NOT_OP
|
static int |
MASK_OP
|
static int |
MAX_OP
|
static int |
MAXARG_A
|
static int |
MAXARG_B
|
static int |
MAXARG_Bx
|
static int |
MAXARG_C
|
static int |
MAXARG_sBx
|
static int |
MAXINDEXRK
|
static int |
NO_REG
invalid register that fits in 8 bits |
static int |
NUM_OPCODES
|
static int |
OP_ADD
|
static int |
OP_AND
|
static int |
OP_CALL
|
static int |
OP_CLOSE
|
static int |
OP_CLOSURE
|
static int |
OP_CONCAT
|
static int |
OP_DIV
|
static int |
OP_EQ
|
static int |
OP_FORLOOP
|
static int |
OP_FORPREP
|
static int |
OP_GE
|
static int |
OP_GETGLOBAL
|
static int |
OP_GETTABLE
|
static int |
OP_GETUPVAL
|
static int |
OP_GT
|
static int |
OP_JMP
|
static int |
OP_LE
|
static int |
OP_LEN
|
static int |
OP_LOADBOOL
|
static int |
OP_LOADK
|
static int |
OP_LOADNIL
|
static int |
OP_LT
|
static int |
OP_MOD
|
static int |
OP_MOVE
|
static int |
OP_MUL
|
static int |
OP_NEQ
|
static int |
OP_NEWTABLE
|
static int |
OP_NOT
|
static int |
OP_OR
|
static int |
OP_POW
|
static int |
OP_RETURN
|
static int |
OP_SELF
|
static int |
OP_SETGLOBAL
|
static int |
OP_SETLIST
|
static int |
OP_SETTABLE
|
static int |
OP_SETUPVAL
|
static int |
OP_SUB
|
static int |
OP_TAILCALL
|
static int |
OP_TEST
|
static int |
OP_TESTSET
|
static int |
OP_TFORLOOP
|
static int |
OP_UNM
|
static int |
OP_VARARG
|
static int |
OpArgK
|
static int |
OpArgN
|
static int |
OpArgR
|
static int |
OpArgU
|
static int |
POS_A
|
static int |
POS_B
|
static int |
POS_Bx
|
static int |
POS_C
|
static int |
POS_OP
|
static int |
SIZE_A
|
static int |
SIZE_B
|
static int |
SIZE_Bx
|
static int |
SIZE_C
|
static int |
SIZE_OP
|
static int |
VARARG_HASARG
masks for new-style vararg |
static int |
VARARG_ISVARARG
|
static int |
VARARG_NEEDSARG
|
Constructor Summary | |
---|---|
Lua()
|
Method Summary | |
---|---|
static int |
GET_OPCODE(int i)
|
static int |
GETARG_A(int i)
|
static int |
GETARG_B(int i)
|
static int |
GETARG_Bx(int i)
|
static int |
GETARG_C(int i)
|
static int |
GETARG_sBx(int i)
|
static int |
getBMode(int m)
|
static int |
getCMode(int m)
|
static int |
getOpMode(int m)
|
static int |
INDEXK(int r)
gets the index of the constant |
static boolean |
ISK(int x)
test whether value is a constant |
static int |
RKASK(int x)
code a constant index as a RK value |
static boolean |
testAMode(int m)
|
static boolean |
testTMode(int m)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String _VERSION
public static final int LUA_MULTRET
public static final int VARARG_HASARG
public static final int VARARG_ISVARARG
public static final int VARARG_NEEDSARG
public static final int iABC
public static final int iABx
public static final int iAsBx
public static final int SIZE_C
public static final int SIZE_B
public static final int SIZE_Bx
public static final int SIZE_A
public static final int SIZE_OP
public static final int POS_OP
public static final int POS_A
public static final int POS_C
public static final int POS_B
public static final int POS_Bx
public static final int MAX_OP
public static final int MAXARG_A
public static final int MAXARG_B
public static final int MAXARG_C
public static final int MAXARG_Bx
public static final int MAXARG_sBx
public static final int MASK_OP
public static final int MASK_A
public static final int MASK_B
public static final int MASK_C
public static final int MASK_Bx
public static final int MASK_NOT_OP
public static final int MASK_NOT_A
public static final int MASK_NOT_B
public static final int MASK_NOT_C
public static final int MASK_NOT_Bx
public static final int BITRK
public static final int MAXINDEXRK
public static final int NO_REG
public static final int OP_MOVE
public static final int OP_LOADK
public static final int OP_LOADBOOL
public static final int OP_LOADNIL
public static final int OP_GETUPVAL
public static final int OP_GETGLOBAL
public static final int OP_GETTABLE
public static final int OP_SETGLOBAL
public static final int OP_SETUPVAL
public static final int OP_SETTABLE
public static final int OP_NEWTABLE
public static final int OP_SELF
public static final int OP_ADD
public static final int OP_SUB
public static final int OP_MUL
public static final int OP_DIV
public static final int OP_MOD
public static final int OP_POW
public static final int OP_UNM
public static final int OP_NOT
public static final int OP_LEN
public static final int OP_CONCAT
public static final int OP_JMP
public static final int OP_EQ
public static final int OP_LT
public static final int OP_LE
public static final int OP_TEST
public static final int OP_TESTSET
public static final int OP_CALL
public static final int OP_TAILCALL
public static final int OP_RETURN
public static final int OP_FORLOOP
public static final int OP_FORPREP
public static final int OP_TFORLOOP
public static final int OP_SETLIST
public static final int OP_CLOSE
public static final int OP_CLOSURE
public static final int OP_VARARG
public static final int NUM_OPCODES
public static final int OP_GT
public static final int OP_GE
public static final int OP_NEQ
public static final int OP_AND
public static final int OP_OR
public static final int OpArgN
public static final int OpArgU
public static final int OpArgR
public static final int OpArgK
public static final int[] luaP_opmodes
public static final int LFIELDS_PER_FLUSH
Constructor Detail |
---|
public Lua()
Method Detail |
---|
public static int GET_OPCODE(int i)
public static int GETARG_A(int i)
public static int GETARG_B(int i)
public static int GETARG_C(int i)
public static int GETARG_Bx(int i)
public static int GETARG_sBx(int i)
public static boolean ISK(int x)
public static int INDEXK(int r)
public static int RKASK(int x)
public static int getOpMode(int m)
public static int getBMode(int m)
public static int getCMode(int m)
public static boolean testAMode(int m)
public static boolean testTMode(int m)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |