public class CopyArrayValue 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.ValueIteratorL, NULL_ARGS, NULL_VALUE_ARRAY| Constructor and Description |
|---|
CopyArrayValue(ConstArrayValue constArray) |
| Modifier and Type | Method and Description |
|---|---|
ArrayValue |
append(Value value)
Add
|
ArrayValue |
append(Value key,
Value value)
Add
|
void |
clear()
Clears the array
|
int |
cmp(Value rValue)
Returns a negative/positive integer if this Value is
lessthan/greaterthan rValue.
|
Value |
contains(Value value)
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 value)
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 saving a function arguments.
|
Value |
createTailKey()
Pops the top value.
|
boolean |
eq(Value rValue)
Test for equality
|
boolean |
eql(Value rValue)
Test for ===
|
boolean |
equals(java.lang.Object o) |
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.
|
Value |
getArray(Value fieldName)
Returns the value as an array.
|
ArrayValue.Entry |
getHead()
Returns the head.
|
Value |
getObject(Env env,
Value fieldName)
Returns the field value, creating an object if it's unset.
|
int |
getSize()
Returns the size.
|
protected ArrayValue.Entry |
getTail()
Returns the tail.
|
Var |
getVar(Value index)
Returns the array ref.
|
int |
hashCode() |
Value |
pop(Env env)
Pops the top 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 |
shuffle()
Shuffles the array
|
ArrayValue |
slice(Env env,
int start,
int end,
boolean isPreserveKeys)
Slices.
|
ArrayValue |
splice(int start,
int end,
ArrayValue replace)
Splices.
|
boolean |
toBoolean()
Converts to a boolean.
|
Value |
toLocalValue()
Convert to an argument value.
|
Value |
toValue()
Converts to a raw value.
|
ArrayValue |
unshift(Value value)
Add
|
add, callCallback, callCallback, callCallback, copyReturn, current, each, end, entrySet, geq, getBaseIterator, getCount, getCountRecursive, getCurrent, getIterator, getKeyArray, getKeyIterator, getKeys, getRaw, getType, getValueArray, getValueIterator, getValues, getValueType, gt, hasCurrent, isArray, isCallable, isEmpty, isEmpty, isset, jsonEncode, jsonEncodeAssociative, key, keyExists, keyReset, keySet, keysToArray, leq, lt, next, prev, print, printREntry, printRImpl, put, put, put, put, put, put, put, put, put, put, put, putAll, reset, serialize, setCurrent, sort, toArray, toArray, toArrayValue, toAutoArray, toBinaryValueMarshalCost, toCallable, toCharMarshalCost, toDouble, toEntryArray, toJavaCollection, toJavaList, toJavaMap, toJavaObject, toKey, toLocalRef, toLong, toObject, toObject, toString, toStringMarshalCost, toStringValueMarshalCost, toUnicodeValueMarshalCost, values, valuesToArray, valuesToArray, varDumpEntry, varDumpImpl, varExportImplabs, 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, getArray, getCallableName, getCalledClass, getClassName, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getIterator, getObject, getObjectHash, getQuercusClass, getRef, getResourceType, getStaticFieldValue, getStaticFieldVar, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, 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, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLong, toLong, toLong, toLong, toLongMarshalCost, toLongValue, toRef, toRefValue, toShortMarshalCost, toString, toStringBuilder, toStringBuilder, toStringBuilder, toStringBuilder, toStringValue, toStringValue, toUnicode, toUnicodeValue, toUnicodeValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, unsetThisPrivateField, varDump, varExportpublic CopyArrayValue(ConstArrayValue constArray)
public boolean toBoolean()
toBoolean in class ArrayValuepublic Value copy()
copy in class ArrayValuepublic Value copy(Env env, java.util.IdentityHashMap<Value,Value> map)
copy in class ArrayValuepublic Value copySaveFunArg()
copySaveFunArg in class Valuepublic int getSize()
getSize in class ArrayValuepublic void clear()
clear in class ArrayValuepublic Value put(Value key, Value value)
put in class ArrayValuepublic Value put(Value value)
put in class ArrayValuepublic ArrayValue unshift(Value value)
unshift in class ArrayValuepublic ArrayValue splice(int start, int end, ArrayValue replace)
splice in class ArrayValuepublic ArrayValue slice(Env env, int start, int end, boolean isPreserveKeys)
slice in class ArrayValuepublic Value getArray(Value fieldName)
getArray in class ArrayValuepublic Value getArg(Value index, boolean isTop)
getArg in class ArrayValuepublic Value toLocalValue()
toLocalValue in class Valuepublic Value getObject(Env env, Value fieldName)
getObject in class ArrayValuepublic Var putVar()
putVar in class ArrayValuepublic ArrayValue append(Value key, Value value)
append in class ArrayValuepublic ArrayValue append(Value value)
append in class ArrayValuepublic Value get(Value key)
get in class ArrayValuepublic Value contains(Value value)
contains in class ArrayValuevalue - to search for in the arraypublic Value containsStrict(Value value)
containsStrict in class ArrayValuevalue - to search for in the arraypublic Value containsKey(Value key)
containsKey in class ArrayValuekey - to search for in the arraypublic Value remove(Value key)
remove in class ArrayValuepublic Var getVar(Value index)
getVar in class ArrayValuepublic Value pop(Env env)
pop in class ArrayValuepublic Value createTailKey()
createTailKey in class ArrayValuepublic Value shuffle()
shuffle in class ArrayValuepublic ArrayValue.Entry getHead()
ArrayValuegetHead in class ArrayValueprotected ArrayValue.Entry getTail()
ArrayValuegetTail in class ArrayValuepublic int cmp(Value rValue)
Valuecmp in class ArrayValuepublic boolean eq(Value rValue)
ArrayValueeq in class ArrayValuerValue - rhs ArrayValue to compare topublic boolean eql(Value rValue)
ArrayValueeql in class ArrayValuerValue - rhs ArrayValue to compare topublic boolean equals(java.lang.Object o)
equals in class java.lang.Object