public class ArrayValueWrapper extends ArrayValue
ArrayValue.AbstractGet, ArrayValue.Entry, ArrayValue.EntryIterator, ArrayValue.EntrySet, ArrayValue.GetKey, ArrayValue.GetValue, ArrayValue.KeyComparator, ArrayValue.KeyIterator, ArrayValue.KeySet, ArrayValue.ValueCollection, ArrayValue.ValueComparator, ArrayValue.ValueIterator
L, NULL_ARGS, NULL_VALUE_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
ArrayValueWrapper(ArrayValue array) |
Modifier and Type | Method and Description |
---|---|
Value |
add(Value rValue)
Returns a union of this array and the rValue as array.
|
ArrayValue |
append(Value key,
Value value)
Adds a new value.
|
void |
clear()
Clears the array
|
Value |
contains(Value key)
Returns the corresponding key if this array contains the given value
|
Value |
containsKey(Value key)
Returns the corresponding value if this array contains the given key
|
Value |
containsStrict(Value key)
Returns the corresponding key if this array contains the given value
|
Value |
copy()
Copy for assignment.
|
Value |
copy(Env env,
java.util.IdentityHashMap<Value,Value> map)
Copy for serialization
|
Value |
copySaveFunArg()
Copy for assignment.
|
Value |
createTailKey()
Creatse a tail index.
|
Value |
current()
Returns the current value.
|
Value |
each()
The each iterator
|
Value |
end()
Returns the last value.
|
Value |
get(Value key)
Gets a new value.
|
Value |
getArg(Value index,
boolean isTop)
Returns the value as an argument which may be a reference.
|
ArrayValue |
getArray()
Returns the wrapped array.
|
ArrayValue.Entry |
getHead()
Returns the head.
|
java.util.Iterator<java.util.Map.Entry<Value,Value>> |
getIterator(Env env)
Returns an iterator for the key => value pairs.
|
java.util.Iterator<Value> |
getKeyIterator(Env env)
Returns an iterator for the field keys.
|
int |
getSize()
Returns the size.
|
protected ArrayValue.Entry |
getTail()
Returns the tail.
|
java.util.Iterator<Value> |
getValueIterator(Env env)
Returns an iterator for the field values.
|
Var |
getVar(Value index)
Returns the array ref.
|
boolean |
hasCurrent()
Returns true if there are more elements.
|
boolean |
isset(Value key)
Returns true if the index isset().
|
Value |
key()
Returns the current key
|
Value |
next()
Returns the next value.
|
Value |
pop(Env env)
Pops the top value.
|
Value |
prev()
Returns the previous value.
|
Value |
put(Value value)
Add
|
Value |
put(Value key,
Value value)
Adds a new value.
|
Var |
putVar()
Sets the array ref.
|
Value |
remove(Value key)
Removes a value.
|
Value |
reset()
Returns the first value.
|
Value |
shuffle()
Shuffles the array
|
ArrayValue |
splice(int start,
int end,
ArrayValue replace)
Splices values
|
ArrayValue |
unshift(Value value)
Add to front.
|
append, callCallback, callCallback, callCallback, cmp, copyReturn, entrySet, eq, eql, geq, getArray, getBaseIterator, getCount, getCountRecursive, getCurrent, getIterator, getKeyArray, getKeys, getObject, getRaw, getType, getValueArray, getValues, getValueType, gt, isArray, isCallable, isEmpty, isEmpty, jsonEncode, jsonEncodeAssociative, keyExists, keyReset, keySet, keysToArray, leq, lt, print, printREntry, printRImpl, put, put, put, put, put, put, put, put, put, put, put, putAll, serialize, setCurrent, slice, sort, toArray, toArray, toArrayValue, toAutoArray, toBinaryValueMarshalCost, toBoolean, toCallable, toCharMarshalCost, toDouble, toEntryArray, toJavaCollection, toJavaList, toJavaMap, toJavaObject, toKey, toLocalRef, toLong, toObject, toObject, toString, toStringMarshalCost, toStringValueMarshalCost, toUnicodeValueMarshalCost, values, valuesToArray, valuesToArray, varDumpEntry, varDumpImpl, varExportImpl
abs, add, addOne, appendTo, appendTo, appendTo, appendTo, bitAnd, bitOr, bitXor, call, call, call, call, call, call, call, callCopy, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callRef, callRef, callRef, callRef, callRef, callRef, callRef, charValueAt, checkPrivate, checkProtected, clone, copy, copyArrayItem, copyStringBuilder, copyTree, div, div, eqValue, findFunction, findQuercusClass, generate, get, getArgTail, getCallableName, getCalledClass, getClassName, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getObject, getObjectHash, getQuercusClass, getRef, getResourceType, getStaticFieldValue, getStaticFieldVar, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, hashCode, increment, initField, initField, initField, initIncompleteField, isA, isA, isBinary, isBoolean, isDefault, isDouble, isDoubleConvertible, isFieldExists, isFieldInit, isLong, isLongConvertible, isNull, isNumberConvertible, isNumeric, isObject, isResource, isset, issetField, issetThisField, isString, isUnicode, isVar, length, lshift, mod, mul, mul, neg, nextIndex, pos, postdecr, postincr, postincr, predecr, preincr, preincr, print, printDepth, printJavaChar, printJavaString, printR, put, putArray, putField, putField, putField, putObject, putThisField, putThisField, putThisFieldArray, rshift, serialize, set, setCharValueAt, setFieldInit, setJavaObject, setStaticFieldRef, sub_rev, sub, sub, subOne, toArgRef, toAutoObject, toBigDecimal, toBigInteger, toBinaryValue, toBinaryValue, toBinaryValue, toBooleanMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toChar, toCharArrayMarshalCost, toDebugString, toDouble, toDouble, toDouble, toDouble, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInputStream, toInt, toIntegerMarshalCost, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaDate, toJavaDouble, toJavaEnum, toJavaFloat, toJavaInteger, toJavaLong, toJavaObject, toJavaObjectMarshalCost, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLong, toLong, toLong, toLong, toLongMarshalCost, toLongValue, toRef, toRefValue, toShortMarshalCost, toString, toStringBuilder, toStringBuilder, toStringBuilder, toStringBuilder, toStringValue, toStringValue, toUnicode, toUnicodeValue, toUnicodeValue, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, unsetThisPrivateField, varDump, varExport
protected ArrayValueWrapper(ArrayValue array)
public ArrayValue getArray()
public Value copy()
copy
in class ArrayValue
public Value copySaveFunArg()
copySaveFunArg
in class Value
public Value copy(Env env, java.util.IdentityHashMap<Value,Value> map)
copy
in class ArrayValue
public int getSize()
getSize
in class ArrayValue
public void clear()
clear
in class ArrayValue
public Value put(Value key, Value value)
put
in class ArrayValue
public ArrayValue append(Value key, Value value)
append
in class ArrayValue
public Value put(Value value)
put
in class ArrayValue
public ArrayValue unshift(Value value)
unshift
in class ArrayValue
public ArrayValue splice(int start, int end, ArrayValue replace)
splice
in class ArrayValue
public Value getArg(Value index, boolean isTop)
getArg
in class ArrayValue
public Var putVar()
putVar
in class ArrayValue
public Value createTailKey()
createTailKey
in class ArrayValue
public Value get(Value key)
get
in class ArrayValue
public Value remove(Value key)
remove
in class ArrayValue
public boolean isset(Value key)
isset
in class ArrayValue
public Var getVar(Value index)
getVar
in class ArrayValue
public Value pop(Env env)
pop
in class ArrayValue
public Value shuffle()
shuffle
in class ArrayValue
public ArrayValue.Entry getHead()
getHead
in class ArrayValue
protected ArrayValue.Entry getTail()
getTail
in class ArrayValue
public Value current()
current
in class ArrayValue
public Value key()
key
in class ArrayValue
public boolean hasCurrent()
hasCurrent
in class ArrayValue
public Value next()
next
in class ArrayValue
public Value prev()
prev
in class ArrayValue
public Value each()
each
in class ArrayValue
public Value reset()
reset
in class ArrayValue
public Value end()
end
in class ArrayValue
public Value contains(Value key)
contains
in class ArrayValue
value
- to search for in the arraypublic Value containsStrict(Value key)
containsStrict
in class ArrayValue
value
- to search for in the arraypublic Value containsKey(Value key)
containsKey
in class ArrayValue
key
- to search for in the arraypublic Value add(Value rValue)
ArrayValue
ArrayValue.put(Value)
method.add
in class ArrayValue
public java.util.Iterator<java.util.Map.Entry<Value,Value>> getIterator(Env env)
Value
getIterator
in class Value
public java.util.Iterator<Value> getKeyIterator(Env env)
Value
Value.getIterator(Env)
; derived classes may override and
provide a more efficient implementation.getKeyIterator
in class ArrayValue
public java.util.Iterator<Value> getValueIterator(Env env)
Value
Value.getIterator(Env)
; derived classes may override and
provide a more efficient implementation.getValueIterator
in class ArrayValue