public class LeoBoolean extends LeoObject
LeoObject.LeoType
Modifier and Type | Field and Description |
---|---|
static LeoBoolean |
LEOFALSE
False
|
static LeoBoolean |
LEOTRUE
True
|
Modifier and Type | Method and Description |
---|---|
LeoObject |
$add(LeoObject other) |
LeoObject |
$band(LeoObject other) |
LeoObject |
$bnot() |
LeoObject |
$bor(LeoObject other) |
boolean |
$eq(LeoObject other)
Determines if it equals another object.
|
boolean |
$gt(LeoObject other)
If it's greater than to another object
|
boolean |
$lt(LeoObject other)
If it's less than to another object
|
LeoObject |
$xor(LeoObject other) |
double |
asDouble() |
int |
asInt() |
long |
asLong() |
LeoObject |
clone() |
Object |
getValue() |
Object |
getValue(Class<?> type)
Attempts to narrow the
LeoObject to a more specific Java Type |
int |
hashCode() |
boolean |
isAssignable(Class<?> javaType)
Determines if the supplied Java type can be assigned to this
LeoObject . |
boolean |
isBoolean() |
boolean |
isFalse() |
boolean |
isTrue()
Determines if the supplied object is of type TRUE.
|
static LeoBoolean |
read(LeoObject env,
DataInput in)
|
String |
toString() |
static LeoBoolean |
valueOf(boolean value)
Gets the instance of the boolean.
|
void |
write(DataOutput out)
Writes this object out
|
$add, $add, $add, $band, $band, $band, $bor, $bor, $bor, $bsl, $bsl, $bsl, $bsl, $bsr, $bsr, $bsr, $bsr, $div, $div, $div, $div, $eq, $eq, $eq, $eq, $gt, $gt, $gt, $gte, $gte, $gte, $gte, $index, $index, $index, $index, $lt, $lt, $lt, $lte, $lte, $lte, $lte, $mod, $mod, $mod, $mod, $mul, $mul, $mul, $mul, $neg, $neq, $neq, $neq, $neq, $req, $sindex, $sub, $sub, $sub, $sub, $xor, $xor, $xor, as, as, asByte, asChar, asFloat, asShort, call, call, call, call, call, call, call, compareTo, equals, getLocals, getNativeMember, getNativeMethod, getNativeMethod, getNumberOfArgs, getObject, getObject, getOuters, getScope, getType, hasNativeMethod, hasNativeMethod, hasObject, hasObject, hasVarargs, isArray, isClass, isError, isFunction, isGenerator, isMap, isNamespace, isNativeClass, isNativeFunction, isNull, isNumber, isOfType, isOfType, isOfType, isOfType, isOuter, isScopedObject, isString, isTrue, removeInterfaceMethods, rethrow, setObject, setObject, throwAttributeAccessError, throwAttributeError, throwAttributeError, throwClassNotFoundError, throwDivideByZeroError, throwIfError, throwMethodError, throwNativeMethodError, throwNotImplementedError, toJavaObject, toLeoString, valueOf, xcall, xcall, xcall, xcall, xcall, xcall, xcall, xgetObject, xgetObject
public static final LeoBoolean LEOTRUE
public static final LeoBoolean LEOFALSE
public int asInt()
public double asDouble()
public long asLong()
public boolean isTrue()
LeoObject
public boolean isFalse()
public static LeoBoolean valueOf(boolean value)
value
- public boolean $eq(LeoObject other)
LeoObject
public boolean $gt(LeoObject other)
LeoObject
public boolean $lt(LeoObject other)
LeoObject
public Object getValue()
public Object getValue(Class<?> type)
LeoObject
LeoObject
to a more specific Java Typepublic boolean isAssignable(Class<?> javaType)
LeoObject
LeoObject
.isAssignable
in class LeoObject
LeoObject
public LeoObject clone()
public void write(DataOutput out) throws IOException
LeoObject
write
in class LeoObject
IOException
public static LeoBoolean read(LeoObject env, DataInput in) throws IOException
in
- LeoObject
IOException
Copyright © 2010–2015. All rights reserved.