|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.luaj.vm.LValue
org.luaj.vm.LNumber
org.luaj.vm.LInteger
public class LInteger
| Field Summary |
|---|
| Fields inherited from class org.luaj.vm.LValue |
|---|
TM_INDEX, TM_METATABLE, TM_MODE, TM_NEWINDEX |
| Method Summary | |
|---|---|
int |
hashCode()
|
static int |
hashCodeOf(int v)
|
boolean |
isInteger()
Returns false by default for non-LNumbers, but subclasses of LNumber must override. |
LString |
luaAsString()
Get the value as a LString |
boolean |
luaBinCmpDouble(int opcode,
double rhs)
|
boolean |
luaBinCmpInteger(int opcode,
int rhs)
|
boolean |
luaBinCmpUnknown(int opcode,
LValue lhs)
|
LValue |
luaBinOpDouble(int opcode,
double rhs)
|
LValue |
luaBinOpInteger(int opcode,
int rhs)
|
LValue |
luaBinOpUnknown(int opcode,
LValue lhs)
|
LValue |
luaUnaryMinus()
Arithmetic negative |
double |
toJavaDouble()
Return value as a double |
float |
toJavaFloat()
Return value as a float |
int |
toJavaInt()
Return value as an integer |
long |
toJavaLong()
Return value as a long |
java.lang.String |
toJavaString()
Convert to a Java String |
static LInteger |
valueOf(int n)
Get an LInteger corresponding to a particular int value |
| Methods inherited from class org.luaj.vm.LNumber |
|---|
equals, isNumber, isString, luaConcatTo, luaGetType, luaToNumber, toJavaBoxedByte, toJavaBoxedCharacter, toJavaBoxedDouble, toJavaBoxedFloat, toJavaBoxedInteger, toJavaBoxedLong, toJavaBoxedShort |
| Methods inherited from class org.luaj.vm.LValue |
|---|
compareError, conversionError, id, isClosure, isFunction, isNil, isTable, isUserData, isValidKey, luaBinCmpString, luaGetEnv, luaGetMetatable, luaGetTable, luaGetTypeName, luaLength, luaSetEnv, luaSetMetatable, luaSetTable, luaStackCall, toJavaBoolean, toJavaBoxedBoolean, toJavaByte, toJavaChar, toJavaInstance, toJavaShort, toString, toStrongReference |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static LInteger valueOf(int n)
public final int hashCode()
hashCode in class java.lang.Objectpublic static int hashCodeOf(int v)
public int toJavaInt()
LValue
toJavaInt in class LValuepublic long toJavaLong()
LValue
toJavaLong in class LValuepublic float toJavaFloat()
LValue
toJavaFloat in class LValuepublic double toJavaDouble()
LValue
toJavaDouble in class LValuepublic LString luaAsString()
LValue
luaAsString in class LValuepublic java.lang.String toJavaString()
LValue
toJavaString in class LValuepublic boolean isInteger()
LNumber
isInteger in class LNumber
public LValue luaBinOpUnknown(int opcode,
LValue lhs)
luaBinOpUnknown in class LValue
public LValue luaBinOpInteger(int opcode,
int rhs)
luaBinOpInteger in class LValue
public LValue luaBinOpDouble(int opcode,
double rhs)
luaBinOpDouble in class LValue
public boolean luaBinCmpUnknown(int opcode,
LValue lhs)
luaBinCmpUnknown in class LValue
public boolean luaBinCmpInteger(int opcode,
int rhs)
luaBinCmpInteger in class LValue
public boolean luaBinCmpDouble(int opcode,
double rhs)
luaBinCmpDouble in class LValuepublic LValue luaUnaryMinus()
luaUnaryMinus in class LValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||