public class ArrayAccessDelegate extends java.lang.Object implements ArrayDelegate
ArrayAccess
interface.Constructor and Description |
---|
ArrayAccessDelegate() |
Modifier and Type | Method and Description |
---|---|
long |
count(Env env,
ObjectValue qThis)
Returns the array count
|
Value |
get(Env env,
ObjectValue qThis,
Value index)
Returns the value for the specified key.
|
boolean |
isEmpty(Env env,
ObjectValue qThis,
Value index)
Returns true if the value is empty.
|
boolean |
isset(Env env,
ObjectValue qThis,
Value index)
Returns true if the value is set
|
Value |
put(Env env,
ObjectValue qThis,
Value index)
Appends a value.
|
Value |
put(Env env,
ObjectValue qThis,
Value index,
Value value)
Sets the value for the spoecified key.
|
Value |
unset(Env env,
ObjectValue qThis,
Value index)
Removes the value at the speified key.
|
public Value get(Env env, ObjectValue qThis, Value index)
ArrayDelegate
get
in interface ArrayDelegate
public Value put(Env env, ObjectValue qThis, Value index, Value value)
ArrayDelegate
put
in interface ArrayDelegate
public Value put(Env env, ObjectValue qThis, Value index)
ArrayDelegate
put
in interface ArrayDelegate
public boolean isset(Env env, ObjectValue qThis, Value index)
ArrayDelegate
isset
in interface ArrayDelegate
public boolean isEmpty(Env env, ObjectValue qThis, Value index)
ArrayDelegate
isEmpty
in interface ArrayDelegate
public Value unset(Env env, ObjectValue qThis, Value index)
ArrayDelegate
unset
in interface ArrayDelegate
public long count(Env env, ObjectValue qThis)
ArrayDelegate
count
in interface ArrayDelegate