org.luaj.vm
Class LBoolean

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

public final class LBoolean
extends LValue


Field Summary
static LBoolean FALSE
           
static LBoolean TRUE
           
 
Fields inherited from class org.luaj.vm.LValue
TM_INDEX, TM_METATABLE, TM_MODE, TM_NEWINDEX
 
Method Summary
 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
 int toJavaInt()
          Return value as an integer
 java.lang.String toJavaString()
          Convert to a Java String
static LBoolean valueOf(boolean value)
           
 
Methods inherited from class org.luaj.vm.LValue
compareError, conversionError, id, isClosure, isFunction, isInteger, isNil, isNumber, isString, isTable, isUserData, luaBinCmpDouble, luaBinCmpInteger, luaBinCmpString, luaBinCmpUnknown, luaBinOpDouble, luaBinOpInteger, luaBinOpUnknown, luaConcatTo, luaGetEnv, luaGetMetatable, luaGetTable, luaGetTypeName, luaLength, luaSetEnv, luaSetMetatable, luaSetTable, luaStackCall, luaToNumber, luaUnaryMinus, toJavaBoxedBoolean, toJavaBoxedByte, toJavaBoxedCharacter, toJavaBoxedDouble, toJavaBoxedFloat, toJavaBoxedInteger, toJavaBoxedLong, toJavaBoxedShort, 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

TRUE

public static final LBoolean TRUE

FALSE

public static final LBoolean FALSE
Method Detail

toJavaString

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

Overrides:
toJavaString in class LValue

luaAsString

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

Overrides:
luaAsString in class LValue

toJavaBoolean

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

Overrides:
toJavaBoolean in class LValue

toJavaInt

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

Overrides:
toJavaInt in class LValue

valueOf

public static final LBoolean valueOf(boolean value)

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


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