public class LeoNativeFunction extends LeoObject
LeoNativeFunction
is a function or better known as a Closure.LeoObject.LeoType
Constructor and Description |
---|
LeoNativeFunction(List<Method> overloads,
Object instance) |
LeoNativeFunction(Method method,
Object instance) |
Modifier and Type | Method and Description |
---|---|
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 |
call()
Invokes the function
|
LeoObject |
call(LeoObject arg1)
Invokes the function
|
LeoObject |
call(LeoObject[] args)
Invokes the function
|
LeoObject |
call(LeoObject arg1,
LeoObject arg2)
Invokes the function
|
LeoObject |
call(LeoObject arg1,
LeoObject arg2,
LeoObject arg3)
Invokes the function
|
LeoObject |
call(LeoObject arg1,
LeoObject arg2,
LeoObject arg3,
LeoObject arg4)
Invokes the function
|
LeoObject |
call(LeoObject arg1,
LeoObject arg2,
LeoObject arg3,
LeoObject arg4,
LeoObject arg5)
Invokes the function
|
LeoObject |
clone() |
Object |
getInstance() |
LeoObject |
getMethodName() |
int |
getNumberOfArgs() |
Class<?> |
getOwnerClass() |
Object |
getValue() |
boolean |
isFunction() |
boolean |
isNativeFunction() |
LeoObject |
nativeCall(LeoObject... args)
Invokes the native function using Java reflection.
|
void |
write(DataOutput out)
Writes this object out
|
$add, $add, $add, $add, $band, $band, $band, $band, $bnot, $bor, $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, $xor, as, as, asByte, asChar, asDouble, asFloat, asInt, asLong, asShort, compareTo, equals, getLocals, getNativeMember, getNativeMethod, getNativeMethod, getObject, getObject, getOuters, getScope, getType, getValue, hasNativeMethod, hasNativeMethod, hasObject, hasObject, hasVarargs, isArray, isAssignable, isBoolean, isClass, isError, isGenerator, isMap, isNamespace, isNativeClass, isNull, isNumber, isOfType, isOfType, isOfType, isOfType, isOuter, isScopedObject, isString, isTrue, isTrue, read, removeInterfaceMethods, rethrow, setObject, setObject, throwAttributeAccessError, throwAttributeError, throwAttributeError, throwClassNotFoundError, throwDivideByZeroError, throwIfError, throwMethodError, throwNativeMethodError, throwNotImplementedError, toJavaObject, toLeoString, toString, valueOf, xcall, xcall, xcall, xcall, xcall, xcall, xcall, xgetObject, xgetObject
public LeoNativeFunction(List<Method> overloads, Object instance)
overloads
- instance
- public Class<?> getOwnerClass()
public Object getInstance()
public LeoObject getMethodName()
public boolean isFunction()
isFunction
in class LeoObject
public boolean isNativeFunction()
isNativeFunction
in class LeoObject
public int getNumberOfArgs()
getNumberOfArgs
in class LeoObject
public LeoObject call(LeoObject arg1)
LeoObject
public LeoObject call(LeoObject arg1, LeoObject arg2)
LeoObject
public LeoObject call(LeoObject arg1, LeoObject arg2, LeoObject arg3)
LeoObject
public LeoObject call(LeoObject arg1, LeoObject arg2, LeoObject arg3, LeoObject arg4)
LeoObject
public LeoObject call(LeoObject arg1, LeoObject arg2, LeoObject arg3, LeoObject arg4, LeoObject arg5)
LeoObject
public LeoObject call(LeoObject[] args)
LeoObject
public LeoObject nativeCall(LeoObject... args)
args
- public boolean $eq(LeoObject other)
LeoObject
public boolean $gt(LeoObject other)
LeoObject
public boolean $lt(LeoObject other)
LeoObject
public Object getValue()
public LeoObject clone()
public void write(DataOutput out) throws IOException
LeoObject
write
in class LeoObject
IOException
Copyright © 2010–2015. All rights reserved.