com.caucho.quercus.lib.spl
Class CountableDelegate

java.lang.Object
  extended by com.caucho.quercus.lib.spl.CountableDelegate
All Implemented Interfaces:
CountDelegate

public class CountableDelegate
extends java.lang.Object
implements CountDelegate

A delegate that intercepts the global count() function and calls count() method on target objects that implement the Countable interface.


Constructor Summary
CountableDelegate()
           
 
Method Summary
 int count(ObjectValue qThis)
          Returns the object's count
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountableDelegate

public CountableDelegate()
Method Detail

count

public int count(ObjectValue qThis)
Description copied from interface: CountDelegate
Returns the object's count

Specified by:
count in interface CountDelegate