com.caucho.quercus.lib.spl
Class ArrayObject

java.lang.Object
  extended by com.caucho.quercus.lib.spl.ArrayObject
All Implemented Interfaces:
ArrayAccess, Countable, IteratorAggregate, Traversable

public class ArrayObject
extends java.lang.Object
implements ArrayAccess, Countable, IteratorAggregate, Traversable


Field Summary
static int ARRAY_AS_PROPS
           
static int STD_PROP_LIST
           
 
Constructor Summary
ArrayObject(Env env, Value value, int flags, java.lang.String iteratorClassName)
           
 
Method Summary
 Value __getField(StringValue key)
           
 void append(Value value)
           
 void asort(long sortFlag)
           
 int count()
           
 Value exchangeArray(ArrayValue array)
           
 Value getArrayCopy()
           
 int getFlags()
           
 ObjectValue getIterator()
          Returns the iterator.
 java.lang.String getIteratorClass()
           
 void ksort(long sortFlag)
           
 void natcasesort()
           
 void natsort()
           
 boolean offsetExists(Value offset)
           
 Value offsetGet(Value offset)
           
 Value offsetSet(Value offset, Value value)
           
 Value offsetUnset(Value offset)
           
 void printRImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet)
           
 void setFlags(Value flags)
           
 void setIteratorClass(java.lang.String iteratorClass)
           
 void uasort(Callable func)
           
 void uksort(Callable func, long sortFlag)
           
 void varDumpImpl(Env env, Value object, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STD_PROP_LIST

public static final int STD_PROP_LIST
See Also:
Constant Field Values

ARRAY_AS_PROPS

public static final int ARRAY_AS_PROPS
See Also:
Constant Field Values
Constructor Detail

ArrayObject

public ArrayObject(Env env,
                   Value value,
                   int flags,
                   java.lang.String iteratorClassName)
Method Detail

append

public void append(Value value)

asort

public void asort(long sortFlag)

count

public int count()
Specified by:
count in interface Countable

exchangeArray

public Value exchangeArray(ArrayValue array)

getArrayCopy

public Value getArrayCopy()

getFlags

public int getFlags()

getIterator

public ObjectValue getIterator()
Description copied from interface: IteratorAggregate
Returns the iterator.

Specified by:
getIterator in interface IteratorAggregate

getIteratorClass

public java.lang.String getIteratorClass()

ksort

public void ksort(long sortFlag)

natcasesort

public void natcasesort()

natsort

public void natsort()

offsetExists

public boolean offsetExists(Value offset)
Specified by:
offsetExists in interface ArrayAccess

offsetGet

public Value offsetGet(Value offset)
Specified by:
offsetGet in interface ArrayAccess

offsetSet

public Value offsetSet(Value offset,
                       Value value)
Specified by:
offsetSet in interface ArrayAccess

offsetUnset

public Value offsetUnset(Value offset)
Specified by:
offsetUnset in interface ArrayAccess

setFlags

public void setFlags(Value flags)

setIteratorClass

public void setIteratorClass(java.lang.String iteratorClass)

uasort

public void uasort(Callable func)

uksort

public void uksort(Callable func,
                   long sortFlag)

__getField

public Value __getField(StringValue key)

printRImpl

public void printRImpl(Env env,
                       WriteStream out,
                       int depth,
                       java.util.IdentityHashMap<Value,java.lang.String> valueSet)
                throws java.io.IOException
Throws:
java.io.IOException

varDumpImpl

public void varDumpImpl(Env env,
                        Value object,
                        WriteStream out,
                        int depth,
                        java.util.IdentityHashMap<Value,java.lang.String> valueSet)
                 throws java.io.IOException
Throws:
java.io.IOException