public class LeoInteger extends LeoObject
LeoObject.LeoType
Modifier and Type | Method and Description |
---|---|
LeoObject |
$add(double other) |
LeoObject |
$add(int other) |
LeoObject |
$add(LeoObject other) |
LeoObject |
$add(long other) |
LeoObject |
$band(double other) |
LeoObject |
$band(int other) |
LeoObject |
$band(LeoObject other) |
LeoObject |
$band(long other) |
LeoObject |
$bnot() |
LeoObject |
$bor(double other) |
LeoObject |
$bor(int other) |
LeoObject |
$bor(LeoObject other) |
LeoObject |
$bor(long other) |
LeoObject |
$bsl(double other) |
LeoObject |
$bsl(int other) |
LeoObject |
$bsl(LeoObject other) |
LeoObject |
$bsl(long other) |
LeoObject |
$bsr(double other) |
LeoObject |
$bsr(int other) |
LeoObject |
$bsr(LeoObject other) |
LeoObject |
$bsr(long other) |
LeoObject |
$div(double other) |
LeoObject |
$div(int other) |
LeoObject |
$div(LeoObject other) |
LeoObject |
$div(long other) |
boolean |
$eq(double other) |
boolean |
$eq(int other) |
boolean |
$eq(LeoObject other)
Determines if it equals another object.
|
boolean |
$eq(long other) |
boolean |
$gt(double other) |
boolean |
$gt(int other) |
boolean |
$gt(LeoObject other)
If it's greater than to another object
|
boolean |
$gt(long other) |
boolean |
$gte(double other) |
boolean |
$gte(int other) |
boolean |
$gte(LeoObject other)
If it's greater than or equal to another object.
|
boolean |
$gte(long other) |
boolean |
$lt(double other) |
boolean |
$lt(int other) |
boolean |
$lt(LeoObject other)
If it's less than to another object
|
boolean |
$lt(long other) |
boolean |
$lte(double other) |
boolean |
$lte(int other) |
boolean |
$lte(LeoObject other)
If it's less than or equal to another object.
|
boolean |
$lte(long other) |
LeoObject |
$mod(double other) |
LeoObject |
$mod(int other) |
LeoObject |
$mod(LeoObject other) |
LeoObject |
$mod(long other) |
LeoObject |
$mul(double other) |
LeoObject |
$mul(int other) |
LeoObject |
$mul(LeoObject other) |
LeoObject |
$mul(long other) |
LeoObject |
$neg() |
LeoObject |
$sub(double other) |
LeoObject |
$sub(int other) |
LeoObject |
$sub(LeoObject other) |
LeoObject |
$sub(long other) |
LeoObject |
$xor(double other) |
LeoObject |
$xor(int other) |
LeoObject |
$xor(LeoObject other) |
LeoObject |
$xor(long other) |
byte |
asByte() |
char |
asChar() |
double |
asDouble() |
float |
asFloat() |
int |
asInt() |
long |
asLong() |
short |
asShort() |
LeoObject |
clone() |
int |
getNumber() |
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 |
isNumber() |
boolean |
isTrue()
Determines if the supplied object is of type TRUE.
|
static LeoInteger |
read(DataInput in)
|
String |
toString() |
static LeoInteger |
valueOf(int number) |
void |
write(DataOutput out)
Writes this object out
|
$eq, $index, $index, $index, $index, $neq, $neq, $neq, $neq, $req, $sindex, as, as, 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, isBoolean, isClass, isError, isFunction, isGenerator, isMap, isNamespace, isNativeClass, isNativeFunction, isNull, isOfType, isOfType, isOfType, isOfType, isOuter, isScopedObject, isString, isTrue, read, 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 LeoInteger valueOf(int number)
public int getNumber()
public int asInt()
public double asDouble()
public long asLong()
public float asFloat()
public byte asByte()
public short asShort()
public char asChar()
public boolean isTrue()
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 boolean $eq(LeoObject other)
LeoObject
public boolean $gt(LeoObject other)
LeoObject
public boolean $lt(LeoObject other)
LeoObject
public boolean $gte(LeoObject other)
LeoObject
public boolean $lte(LeoObject other)
LeoObject
public void write(DataOutput out) throws IOException
LeoObject
write
in class LeoObject
IOException
public static LeoInteger read(DataInput in) throws IOException
in
- LeoObject
IOException
Copyright © 2010–2015. All rights reserved.