|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.lib.spl.ArrayIterator
public class ArrayIterator
| Field Summary | |
|---|---|
static int |
ARRAY_AS_PROPS
|
static int |
STD_PROP_LIST
|
| Constructor Summary | |
|---|---|
ArrayIterator(Env env,
Value value,
int flags)
|
|
| Method Summary | |
|---|---|
void |
append(Value value)
|
void |
asort(ArrayValue array,
long sortFlag)
|
int |
count()
|
Value |
current()
Returns the current value. |
Value |
getArrayCopy()
|
int |
getFlags()
|
Value |
key()
Returns the current key. |
void |
ksort(long sortFlag)
|
void |
natcasesort()
|
void |
natsort()
|
void |
next()
Advances to the next row. |
boolean |
offsetExists(Value offset)
|
Value |
offsetGet(Value offset)
|
Value |
offsetSet(Value offset,
Value value)
|
Value |
offsetUnset(Value offset)
|
void |
rewind()
Rewinds the iterator so it is at the first row. |
void |
seek(int index)
Seeks to the given offset. |
void |
setFlags(Value flags)
|
void |
uasort(Callback func,
long sortFlag)
|
void |
uksort(Callback func,
long sortFlag)
|
boolean |
valid()
Returns true if the iterator currently points to a valid row. |
void |
varDumpImpl(Env env,
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 |
|---|
public static final int STD_PROP_LIST
public static final int ARRAY_AS_PROPS
| Constructor Detail |
|---|
public ArrayIterator(Env env,
Value value,
int flags)
| Method Detail |
|---|
public void append(Value value)
public void asort(ArrayValue array,
long sortFlag)
public int count()
count in interface Countablepublic Value current()
Iterator
current in interface Iteratorpublic Value getArrayCopy()
public int getFlags()
public Value key()
Iterator
key in interface Iteratorpublic void ksort(long sortFlag)
public void natcasesort()
public void natsort()
public void next()
Iterator
next in interface Iteratorpublic boolean offsetExists(Value offset)
offsetExists in interface ArrayAccesspublic Value offsetGet(Value offset)
offsetGet in interface ArrayAccess
public Value offsetSet(Value offset,
Value value)
offsetSet in interface ArrayAccesspublic Value offsetUnset(Value offset)
offsetUnset in interface ArrayAccesspublic void rewind()
Iterator
rewind in interface Iteratorpublic void setFlags(Value flags)
public void seek(int index)
SeekableIterator
seek in interface SeekableIterator
public void uasort(Callback func,
long sortFlag)
public void uksort(Callback func,
long sortFlag)
public boolean valid()
Iterator
valid in interface Iterator
public void varDumpImpl(Env env,
WriteStream out,
int depth,
java.util.IdentityHashMap<Value,java.lang.String> valueSet)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||