public class FunctionArrayDelegate extends java.lang.Object implements ArrayDelegate
Constructor and Description |
---|
FunctionArrayDelegate() |
Modifier and Type | Method and Description |
---|---|
long |
count(Env env,
ObjectValue qThis)
Returns the value for the specified key.
|
Value |
get(Env env,
ObjectValue qThis,
Value key)
Returns the value for the specified key.
|
boolean |
isEmpty(Env env,
ObjectValue qThis,
Value key)
Returns true if the value is empty.
|
boolean |
isset(Env env,
ObjectValue qThis,
Value key)
Returns true if the value is set
|
Value |
put(Env env,
ObjectValue qThis,
Value value)
Appends a value.
|
Value |
put(Env env,
ObjectValue qThis,
Value key,
Value value)
Sets the value for the spoecified key.
|
void |
setArrayCount(JavaInvoker arrayCount)
Sets the custom function for the array set.
|
void |
setArrayGet(JavaInvoker arrayGet)
Sets the custom function for the array get.
|
void |
setArrayPut(JavaInvoker arrayPut)
Sets the custom function for the array set.
|
Value |
unset(Env env,
ObjectValue qThis,
Value key)
Removes the value at the speified key.
|
public void setArrayGet(JavaInvoker arrayGet)
public void setArrayPut(JavaInvoker arrayPut)
public void setArrayCount(JavaInvoker arrayCount)
public Value get(Env env, ObjectValue qThis, Value key)
get
in interface ArrayDelegate
public Value put(Env env, ObjectValue qThis, Value key, Value value)
put
in interface ArrayDelegate
public Value put(Env env, ObjectValue qThis, Value value)
put
in interface ArrayDelegate
public boolean isset(Env env, ObjectValue qThis, Value key)
isset
in interface ArrayDelegate
public boolean isEmpty(Env env, ObjectValue qThis, Value key)
ArrayDelegate
isEmpty
in interface ArrayDelegate
public Value unset(Env env, ObjectValue qThis, Value key)
unset
in interface ArrayDelegate
public long count(Env env, ObjectValue qThis)
count
in interface ArrayDelegate