public class ArrayIterator extends java.lang.Object implements SeekableIterator, ArrayAccess, Countable
Modifier and Type | Field and Description |
---|---|
static int |
ARRAY_AS_PROPS |
static int |
STD_PROP_LIST |
Constructor and Description |
---|
ArrayIterator(Env env,
Value qThis,
Value value,
int flags) |
Modifier and Type | Method and Description |
---|---|
void |
append(Value value) |
void |
asort(ArrayValue array,
long sortFlag) |
int |
count(Env env) |
Value |
current(Env env)
Returns the current value.
|
Value |
getArrayCopy() |
int |
getFlags() |
Value |
key(Env env)
Returns the current key.
|
void |
ksort(long sortFlag) |
void |
natcasesort() |
void |
natsort() |
void |
next(Env env)
Advances to the next row.
|
boolean |
offsetExists(Env env,
Value offset) |
Value |
offsetGet(Env env,
Value offset) |
Value |
offsetSet(Env env,
Value offset,
Value value) |
Value |
offsetUnset(Env env,
Value offset) |
void |
rewind(Env env)
Rewinds the iterator so it is at the first row.
|
void |
rewindJava(Env env) |
void |
seek(Env env,
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(Env env)
Returns true if the iterator currently points to a valid row.
|
void |
varDumpImpl(Env env,
Value obj,
WriteStream out,
int depth,
java.util.IdentityHashMap<Value,java.lang.String> valueSet) |
public static final int STD_PROP_LIST
public static final int ARRAY_AS_PROPS
public void append(Value value)
public void asort(ArrayValue array, long sortFlag)
public Value current(Env env)
Iterator
public Value getArrayCopy()
public int getFlags()
public void ksort(long sortFlag)
public void natcasesort()
public void natsort()
public void next(Env env)
Iterator
public boolean offsetExists(Env env, Value offset)
offsetExists
in interface ArrayAccess
public Value offsetGet(Env env, Value offset)
offsetGet
in interface ArrayAccess
public Value offsetSet(Env env, Value offset, Value value)
offsetSet
in interface ArrayAccess
public Value offsetUnset(Env env, Value offset)
offsetUnset
in interface ArrayAccess
public void rewindJava(Env env)
public void rewind(Env env)
Iterator
public void setFlags(Value flags)
public void seek(Env env, int index)
SeekableIterator
seek
in interface SeekableIterator
public void uasort(Callback func, long sortFlag)
public void uksort(Callback func, long sortFlag)
public boolean valid(Env env)
Iterator
public void varDumpImpl(Env env, Value obj, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet) throws java.io.IOException
java.io.IOException