@Module public class GlobalArrayValue extends ArrayValueImpl
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 |
|---|
GlobalArrayValue(Env env) |
| Modifier and Type | Method and Description |
|---|---|
ArrayValue |
append(Value key,
Value value)
Adds a new value.
|
void |
clear()
Clears the array
|
Value |
containsKey(Value key)
Gets a new value.
|
Value |
copy()
Copy for assignment.
|
java.util.Set<java.util.Map.Entry<Value,Value>> |
entrySet()
Returns an iterator of the entries.
|
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 index)
Returns the value as an array.
|
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.
|
Value |
getKeys()
Returns the array keys.
|
int |
getSize()
Returns the size.
|
java.util.Iterator<Value> |
getValueIterator(Env env)
Returns an iterator for the field values.
|
Var |
getVar(Value key)
Returns the array ref.
|
boolean |
isset(Value key)
Returns true if the index isset().
|
boolean |
keyExists(Value key)
Returns true if the key exists in the array.
|
void |
print(Env env)
Prints the value.
|
Value |
remove(Value key)
Unsets a value.
|
boolean |
toBoolean()
Converts to a boolean.
|
java.lang.Object |
toObject()
Converts to an object.
|
contains, containsStrict, copy, copyFrom, copyReturn, copySaveFunArg, copyTree, createTailKey, generate, getArgTail, getDirty, getEntries, getHashMask, getHead, getNextAvailableIndex, getObject, getRaw, getRef, getTail, getType, getValues, isArray, pop, put, putVar, shuffle, size, slice, splice, toLocalRef, toLocalValue, toRefValue, toString, unshiftadd, append, callCallback, callCallback, callCallback, cmp, current, each, end, eq, eql, geq, getBaseIterator, getCount, getCountRecursive, getCurrent, getIterator, getKeyArray, getValueArray, getValueType, gt, hasCurrent, isCallable, isEmpty, isEmpty, jsonEncode, jsonEncodeAssociative, key, keyReset, keySet, keysToArray, leq, lt, next, prev, printREntry, printRImpl, put, 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, toLong, 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, div, div, eqValue, findFunction, findQuercusClass, get, getArray, getCallableName, getCalledClass, getClassName, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getObject, getObjectHash, getQuercusClass, 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, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLong, toLong, toLong, toLong, toLongMarshalCost, toLongValue, toRef, toShortMarshalCost, toStringBuilder, toStringBuilder, toStringBuilder, toStringBuilder, toStringValue, toStringValue, toUnicode, toUnicodeValue, toUnicodeValue, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, unsetThisPrivateField, varDump, varExportpublic GlobalArrayValue(Env env)
public java.lang.Object toObject()
toObject in class ArrayValueImplpublic boolean toBoolean()
ArrayValueImpltoBoolean in class ArrayValueImplpublic ArrayValue append(Value key, Value value)
append in class ArrayValueImplpublic Value get(Value key)
get in class ArrayValueImplpublic Var getVar(Value key)
getVar in class ArrayValueImplpublic Value getArg(Value index, boolean isTop)
getArg in class ArrayValueImplpublic Value getArray(Value index)
getArray in class ArrayValueImplpublic Value remove(Value key)
remove in class ArrayValueImplpublic void clear()
ArrayValueImplclear in class ArrayValueImplpublic Value copy()
copy in class ArrayValueImplpublic int getSize()
ArrayValueImplgetSize in class ArrayValueImplpublic Value containsKey(Value key)
containsKey in class ArrayValueImplkey - to search for in the arraypublic boolean isset(Value key)
isset in class ArrayValuepublic boolean keyExists(Value key)
keyExists in class ArrayValuepublic void print(Env env)
print in class ArrayValueenv - public Value getKeys()
getKeys in class ArrayValueImplpublic java.util.Set<java.util.Map.Entry<Value,Value>> entrySet()
entrySet in class ArrayValuepublic java.util.Iterator<java.util.Map.Entry<Value,Value>> getIterator(Env env)
ValuegetIterator in class Valuepublic java.util.Iterator<Value> getKeyIterator(Env env)
ValueValue.getIterator(Env); derived classes may override and
provide a more efficient implementation.getKeyIterator in class ArrayValuepublic java.util.Iterator<Value> getValueIterator(Env env)
ValueValue.getIterator(Env); derived classes may override and
provide a more efficient implementation.getValueIterator in class ArrayValue