public class JavaListAdapter extends JavaCollectionAdapter
JavaCollectionAdapter.CollectionEntry, JavaCollectionAdapter.CollectionIterator, JavaCollectionAdapter.CollectionSet, JavaCollectionAdapter.CollectionValueIterator, JavaCollectionAdapter.CollectionValueSet, JavaCollectionAdapter.KeyIterator, JavaCollectionAdapter.ValueCollection, JavaCollectionAdapter.ValueIterator
JavaAdapter.KeySet
ArrayValue.AbstractGet, ArrayValue.Entry, ArrayValue.EntryIterator, ArrayValue.EntrySet, ArrayValue.GetKey, ArrayValue.GetValue, ArrayValue.KeyComparator, ArrayValue.ValueComparator
L, NULL_ARGS, NULL_VALUE_ARRAY
Constructor and Description |
---|
JavaListAdapter(Env env,
java.util.List list) |
JavaListAdapter(java.util.List list,
JavaClassDef def) |
Modifier and Type | Method and Description |
---|---|
Value |
contains(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 |
current()
Returns the current value.
|
Value |
each()
The each iterator
|
Value |
end()
Returns the last value.
|
Value |
get(Value key)
Gets a new value.
|
boolean |
hasCurrent()
Returns true if there are more elements.
|
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 |
putImpl(Value key,
Value value)
Adds a new value.
|
Value |
remove(Value key)
Removes a value.
|
Value |
reset()
Returns the first value.
|
clear, createTailKey, entrySet, getIterator, getKeyIterator, getSize, getValueIterator, objectEntrySet, values
append, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, containsKey, containsStrict, findFunction, getArg, getClassDef, getEnv, getField, getHead, getIndices, getName, getTail, getVar, isA, keyReset, keySet, printRImpl, put, put, putField, putVar, serialize, shuffle, sort, splice, toEntryArray, toJavaCollection, toJavaList, toJavaMap, toJavaObject, toJavaObjectNotNull, toObject, toObject, toString, unshift, valuesToArray, valuesToArray, varDumpImpl, varExportImpl, wrapJava
add, 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, varDumpEntry
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, 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, varExport
public JavaListAdapter(Env env, java.util.List list)
public JavaListAdapter(java.util.List list, JavaClassDef def)
public Value putImpl(Value key, Value value)
putImpl
in class JavaCollectionAdapter
public Value get(Value key)
get
in class JavaCollectionAdapter
public Value remove(Value key)
remove
in class JavaCollectionAdapter
public Value pop(Env env)
pop
in class JavaAdapter
public Value contains(Value value)
contains
in class JavaAdapter
value
- the value to search for in the arrayjava.lang.NullPointerException
public Value current()
current
in class JavaAdapter
public Value key()
key
in class JavaAdapter
public boolean hasCurrent()
hasCurrent
in class JavaAdapter
public Value next()
next
in class JavaAdapter
public Value prev()
prev
in class JavaAdapter
public Value each()
each
in class JavaAdapter
public Value reset()
reset
in class JavaAdapter
public Value end()
end
in class JavaAdapter
public Value copy()
copy
in class JavaCollectionAdapter