|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.program.FunctionArrayDelegate
public class FunctionArrayDelegate
A delegate that performs Array operations for Quercus objects.
Constructor Summary | |
---|---|
FunctionArrayDelegate()
|
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FunctionArrayDelegate()
Method Detail |
---|
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 Value unset(Env env, ObjectValue qThis, Value key)
unset
in interface ArrayDelegate
public long count(Env env, ObjectValue qThis)
count
in interface ArrayDelegate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |