public class JavaCollectionAdapter extends JavaAdapter
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaCollectionAdapter.CollectionEntry |
class |
JavaCollectionAdapter.CollectionIterator |
class |
JavaCollectionAdapter.CollectionSet |
class |
JavaCollectionAdapter.CollectionValueIterator |
class |
JavaCollectionAdapter.CollectionValueSet |
class |
JavaCollectionAdapter.KeyIterator |
class |
JavaCollectionAdapter.ValueCollection |
class |
JavaCollectionAdapter.ValueIterator |
JavaAdapter.KeySetArrayValue.AbstractGet, ArrayValue.Entry, ArrayValue.EntryIterator, ArrayValue.EntrySet, ArrayValue.GetKey, ArrayValue.GetValue, ArrayValue.KeyComparator, ArrayValue.ValueComparatorL, NULL_ARGS, NULL_VALUE_ARRAY| Constructor and Description |
|---|
JavaCollectionAdapter(java.util.Collection<java.lang.Object> coll,
JavaClassDef def) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the array
|
Value |
copy()
Copy for assignment.
|
Value |
copy(Env env,
java.util.IdentityHashMap<Value,Value> map)
Copy for serialization
|
Value |
createTailKey()
Creatse a tail index.
|
java.util.Set<java.util.Map.Entry<Value,Value>> |
entrySet()
Returns a set of all the of the entries.
|
Value |
get(Value key)
Gets a new value.
|
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.
|
java.util.Iterator<Value> |
getValueIterator(Env env)
Returns an iterator for the field values.
|
java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> |
objectEntrySet()
Returns a collection of the values.
|
Value |
putImpl(Value key,
Value value)
Adds a new value.
|
Value |
remove(Value key)
Removes a value.
|
java.util.Collection<Value> |
values()
Returns a collection of the values.
|
append, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, contains, containsKey, containsStrict, current, each, end, findFunction, getArg, getClassDef, getEnv, getField, getHead, getIndices, getName, getTail, getVar, hasCurrent, isA, key, keyReset, keySet, next, pop, prev, printRImpl, put, put, putField, putVar, reset, serialize, shuffle, sort, splice, toEntryArray, toJavaCollection, toJavaList, toJavaMap, toJavaObject, toJavaObjectNotNull, toObject, toObject, toString, unshift, valuesToArray, valuesToArray, varDumpImpl, varExportImpl, wrapJavaadd, append, callCallback, callCallback, callCallback, cmp, copyReturn, eq, eql, geq, getArray, getBaseIterator, getCount, getCountRecursive, getCurrent, getIterator, getKeyArray, getKeys, getObject, getRaw, getType, getValueArray, getValues, getValueType, gt, isArray, isCallable, isEmpty, isEmpty, isset, jsonEncode, jsonEncodeAssociative, keyExists, keysToArray, leq, lt, print, printREntry, put, put, put, put, put, put, put, put, put, put, put, putAll, serialize, setCurrent, slice, toArray, toArray, toArrayValue, toAutoArray, toBinaryValueMarshalCost, toBoolean, toCallable, toCharMarshalCost, toDouble, toKey, toLocalRef, toLong, toStringMarshalCost, toStringValueMarshalCost, toUnicodeValueMarshalCost, varDumpEntryabs, add, addOne, appendTo, appendTo, appendTo, appendTo, bitAnd, bitOr, bitXor, call, call, call, call, call, call, call, callCopy, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callRef, callRef, callRef, callRef, callRef, callRef, callRef, charValueAt, checkPrivate, checkProtected, clone, copy, copyArrayItem, copySaveFunArg, copyStringBuilder, copyTree, div, div, eqValue, findQuercusClass, generate, get, getArgTail, getArray, getCallableName, getCalledClass, getClassName, getDirty, 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, 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, putObject, putThisField, putThisField, putThisFieldArray, rshift, 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, 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, varExportpublic JavaCollectionAdapter(java.util.Collection<java.lang.Object> coll,
JavaClassDef def)
public void clear()
clear in class JavaAdapterpublic Value copy()
copy in class JavaAdapterpublic Value copy(Env env, java.util.IdentityHashMap<Value,Value> map)
copy in class JavaAdapterpublic int getSize()
getSize in class JavaAdapterpublic Value createTailKey()
createTailKey in class JavaAdapterpublic Value putImpl(Value key, Value value)
JavaAdapterputImpl in class JavaAdapterpublic Value get(Value key)
get in class JavaAdapterpublic Value remove(Value key)
remove in class JavaAdapterpublic java.util.Set<java.util.Map.Entry<Value,Value>> entrySet()
entrySet in class JavaAdapterpublic java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> objectEntrySet()
objectEntrySet in class JavaAdapterpublic java.util.Collection<Value> values()
values in class JavaAdapterpublic 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