org.luaj.vm
Class LNil

java.lang.Object
  extended by org.luaj.vm.LValue
      extended by org.luaj.vm.LNil

public final class LNil
extends LValue


Field Summary
static LNil NIL
           
 
Fields inherited from class org.luaj.vm.LValue
TM_INDEX, TM_METATABLE, TM_MODE, TM_NEWINDEX
 
Constructor Summary
LNil()
           
 
Method Summary
 boolean isNil()
          Return true if this value is LNil.NIL, false otherwise
 boolean isValidKey()
          Return true if this value is is a valid lua key, false otherwise
 LString luaAsString()
          Get the value as a LString
 int luaGetType()
          Valid for all types: return the int value identifying the type of this value
 boolean toJavaBoolean()
          Return value as a boolean
 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
 int toJavaInt()
          Return value as an integer
 java.lang.String toJavaString()
          Convert to a Java String
 
Methods inherited from class org.luaj.vm.LValue
compareError, conversionError, id, isClosure, isFunction, isInteger, isNumber, isString, isTable, isUserData, luaBinCmpDouble, luaBinCmpInteger, luaBinCmpString, luaBinCmpUnknown, luaBinOpDouble, luaBinOpInteger, luaBinOpUnknown, luaConcatTo, luaGetEnv, luaGetMetatable, luaGetTable, luaGetTypeName, luaLength, luaSetEnv, luaSetMetatable, luaSetTable, luaStackCall, luaToNumber, luaUnaryMinus, toJavaBoxedBoolean, toJavaByte, toJavaChar, toJavaDouble, toJavaFloat, toJavaInstance, toJavaLong, toJavaShort, toString, toStrongReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NIL

public static final LNil NIL
Constructor Detail

LNil

public LNil()
Method Detail

luaAsString

public final LString luaAsString()
Description copied from class: LValue
Get the value as a LString

Overrides:
luaAsString in class LValue

isNil

public boolean isNil()
Description copied from class: LValue
Return true if this value is LNil.NIL, false otherwise

Overrides:
isNil in class LValue

isValidKey

public boolean isValidKey()
Description copied from class: LValue
Return true if this value is is a valid lua key, false otherwise

Overrides:
isValidKey in class LValue

toJavaBoolean

public boolean toJavaBoolean()
Description copied from class: LValue
Return value as a boolean

Overrides:
toJavaBoolean in class LValue

luaGetType

public int luaGetType()
Description copied from class: LValue
Valid for all types: return the int value identifying the type of this value

Specified by:
luaGetType in class LValue

toJavaInt

public int toJavaInt()
Description copied from class: LValue
Return value as an integer

Overrides:
toJavaInt in class LValue

toJavaString

public java.lang.String toJavaString()
Description copied from class: LValue
Convert to a Java String

Overrides:
toJavaString in class LValue

toJavaBoxedByte

public java.lang.Byte toJavaBoxedByte()
Description copied from class: LValue
Convert to a Byte value

Overrides:
toJavaBoxedByte in class LValue

toJavaBoxedCharacter

public java.lang.Character toJavaBoxedCharacter()
Description copied from class: LValue
Convert to a boxed Character value

Overrides:
toJavaBoxedCharacter in class LValue

toJavaBoxedDouble

public java.lang.Double toJavaBoxedDouble()
Description copied from class: LValue
Convert to a boxed Double value

Overrides:
toJavaBoxedDouble in class LValue

toJavaBoxedFloat

public java.lang.Float toJavaBoxedFloat()
Description copied from class: LValue
Convert to a boxed Float value

Overrides:
toJavaBoxedFloat in class LValue

toJavaBoxedInteger

public java.lang.Integer toJavaBoxedInteger()
Description copied from class: LValue
Convert to a boxed Integer value

Overrides:
toJavaBoxedInteger in class LValue

toJavaBoxedLong

public java.lang.Long toJavaBoxedLong()
Description copied from class: LValue
Convert to a boxed Long value

Overrides:
toJavaBoxedLong in class LValue

toJavaBoxedShort

public java.lang.Short toJavaBoxedShort()
Description copied from class: LValue
Convert to a boxed Short value

Overrides:
toJavaBoxedShort in class LValue


Copyright © 2007-2013 Luaj.org. All Rights Reserved.