|
||||||||||
| 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
public abstract class LNumber
| Field Summary |
|---|
| Fields inherited from class org.luaj.vm.LValue |
|---|
TM_INDEX, TM_METATABLE, TM_MODE, TM_NEWINDEX |
| Constructor Summary | |
|---|---|
LNumber()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Compare for equivalence by using lua op comparator |
abstract boolean |
isInteger()
Returns false by default for non-LNumbers, but subclasses of LNumber must override. |
boolean |
isNumber()
Returns true if this is or can be made into a number |
boolean |
isString()
In lua all numbers are strings ! |
void |
luaConcatTo(java.io.ByteArrayOutputStream baos)
Write as a string |
int |
luaGetType()
Valid for all types: return the int value identifying the type of this value |
LValue |
luaToNumber()
Convert to a number if possible, or nil otherwise |
java.lang.Byte |
toJavaBoxedByte()
Convert to a Byte value |
java.lang.Character |
toJavaBoxedCharacter()
Convert to a boxed Character value |
java.lang.Double |
toJavaBoxedDouble()
Convert to a boxed Double value |
java.lang.Float |
toJavaBoxedFloat()
Convert to a boxed Float value |
java.lang.Integer |
toJavaBoxedInteger()
Convert to a boxed Integer value |
java.lang.Long |
toJavaBoxedLong()
Convert to a boxed Long value |
java.lang.Short |
toJavaBoxedShort()
Convert to a boxed Short value |
| Methods inherited from class org.luaj.vm.LValue |
|---|
compareError, conversionError, id, isClosure, isFunction, isNil, isTable, isUserData, luaAsString, luaBinCmpDouble, luaBinCmpInteger, luaBinCmpString, luaBinCmpUnknown, luaBinOpDouble, luaBinOpInteger, luaBinOpUnknown, luaGetEnv, luaGetMetatable, luaGetTable, luaGetTypeName, luaLength, luaSetEnv, luaSetMetatable, luaSetTable, luaStackCall, luaUnaryMinus, toJavaBoolean, toJavaBoxedBoolean, toJavaByte, toJavaChar, toJavaDouble, toJavaFloat, toJavaInstance, toJavaInt, toJavaLong, toJavaShort, toJavaString, toString, toStrongReference |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LNumber()
| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int luaGetType()
LValue
luaGetType in class LValuepublic abstract boolean isInteger()
isInteger in class LValuepublic boolean isString()
isString in class LValuepublic java.lang.Byte toJavaBoxedByte()
toJavaBoxedByte in class LValuepublic java.lang.Character toJavaBoxedCharacter()
toJavaBoxedCharacter in class LValuepublic java.lang.Double toJavaBoxedDouble()
toJavaBoxedDouble in class LValuepublic java.lang.Float toJavaBoxedFloat()
toJavaBoxedFloat in class LValuepublic java.lang.Integer toJavaBoxedInteger()
toJavaBoxedInteger in class LValuepublic java.lang.Long toJavaBoxedLong()
toJavaBoxedLong in class LValuepublic java.lang.Short toJavaBoxedShort()
toJavaBoxedShort in class LValuepublic LValue luaToNumber()
luaToNumber in class LValuepublic void luaConcatTo(java.io.ByteArrayOutputStream baos)
luaConcatTo in class LValuepublic boolean isNumber()
isNumber in class LValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||