com.caucho.quercus.program
Class FunctionArrayDelegate

java.lang.Object
  extended by com.caucho.quercus.program.FunctionArrayDelegate
All Implemented Interfaces:
ArrayDelegate

public class FunctionArrayDelegate
extends java.lang.Object
implements ArrayDelegate

A delegate that performs Array operations for Quercus objects.


Constructor Summary
FunctionArrayDelegate()
           
 
Method Summary
 long count(ObjectValue qThis)
          Returns the value for the specified key.
 Value get(ObjectValue qThis, Value key)
          Returns the value for the specified key.
 boolean isset(ObjectValue qThis, Value key)
          Returns true if the value is set
 Value put(ObjectValue qThis, Value value)
          Appends a value.
 Value put(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(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

FunctionArrayDelegate

public FunctionArrayDelegate()
Method Detail

setArrayGet

public void setArrayGet(JavaInvoker arrayGet)
Sets the custom function for the array get.


setArrayPut

public void setArrayPut(JavaInvoker arrayPut)
Sets the custom function for the array set.


setArrayCount

public void setArrayCount(JavaInvoker arrayCount)
Sets the custom function for the array set.


get

public Value get(ObjectValue qThis,
                 Value key)
Returns the value for the specified key.

Specified by:
get in interface ArrayDelegate

put

public Value put(ObjectValue qThis,
                 Value key,
                 Value value)
Sets the value for the spoecified key.

Specified by:
put in interface ArrayDelegate

put

public Value put(ObjectValue qThis,
                 Value value)
Appends a value.

Specified by:
put in interface ArrayDelegate

isset

public boolean isset(ObjectValue qThis,
                     Value key)
Returns true if the value is set

Specified by:
isset in interface ArrayDelegate

unset

public Value unset(ObjectValue qThis,
                   Value key)
Removes the value at the speified key.

Specified by:
unset in interface ArrayDelegate

count

public long count(ObjectValue qThis)
Returns the value for the specified key.

Specified by:
count in interface ArrayDelegate