|
||||||||||
| 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.LDouble
public class LDouble
| Field Summary |
|---|
| Fields inherited from class org.luaj.vm.LValue |
|---|
TM_INDEX, TM_METATABLE, TM_MODE, TM_NEWINDEX |
| Constructor Summary | |
|---|---|
LDouble(double value)
|
|
| Method Summary | |
|---|---|
int |
hashCode()
|
boolean |
isInteger()
Returns false by default for non-LNumbers, but subclasses of LNumber must override. |
boolean |
luaBinCmpDouble(int opcode,
double rhs)
|
static boolean |
luaBinCmpDoubleDouble(int opcode,
double lhs,
double rhs)
|
boolean |
luaBinCmpInteger(int opcode,
int rhs)
|
boolean |
luaBinCmpUnknown(int opcode,
LValue lhs)
|
LValue |
luaBinOpDouble(int opcode,
double rhs)
|
static LValue |
luaBinOpDoubleDouble(int opcode,
double lhs,
double rhs)
|
LValue |
luaBinOpInteger(int opcode,
int rhs)
|
LValue |
luaBinOpUnknown(int opcode,
LValue lhs)
|
LValue |
luaUnaryMinus()
Arithmetic negative |
static LNumber |
numberOf(double z)
Convert to LNumber, using LInteger if possible |
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 LDouble |
valueOf(double 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, luaAsString, 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 |
| Constructor Detail |
|---|
public LDouble(double value)
| Method Detail |
|---|
public static LDouble valueOf(double value)
public static LNumber numberOf(double z)
public int hashCode()
hashCode in class java.lang.Objectpublic 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 static LValue luaBinOpDoubleDouble(int opcode,
double lhs,
double rhs)
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 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 LValue
public static boolean luaBinCmpDoubleDouble(int opcode,
double lhs,
double rhs)
public LValue luaUnaryMinus()
luaUnaryMinus in class LValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||