com.caucho.quercus.env
Class JavaListAdapter

java.lang.Object
  extended by com.caucho.quercus.env.Value
      extended by com.caucho.quercus.env.ArrayValue
          extended by com.caucho.quercus.env.JavaAdapter
              extended by com.caucho.quercus.env.JavaCollectionAdapter
                  extended by com.caucho.quercus.env.JavaListAdapter
All Implemented Interfaces:
java.io.Serializable

public class JavaListAdapter
extends JavaCollectionAdapter

Represents a marshalled Collection argument.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.quercus.env.JavaCollectionAdapter
JavaCollectionAdapter.CollectionEntry, JavaCollectionAdapter.CollectionIterator, JavaCollectionAdapter.CollectionSet, JavaCollectionAdapter.CollectionValueIterator, JavaCollectionAdapter.CollectionValueSet, JavaCollectionAdapter.KeyIterator, JavaCollectionAdapter.ValueCollection, JavaCollectionAdapter.ValueIterator
 
Nested classes/interfaces inherited from class com.caucho.quercus.env.JavaAdapter
JavaAdapter.KeySet
 
Nested classes/interfaces inherited from class com.caucho.quercus.env.ArrayValue
ArrayValue.AbstractGet, ArrayValue.Entry, ArrayValue.EntryIterator, ArrayValue.EntrySet, ArrayValue.GetKey, ArrayValue.GetValue, ArrayValue.KeyComparator, ArrayValue.ValueComparator
 
Field Summary
 
Fields inherited from class com.caucho.quercus.env.ArrayValue
ARRAY, GET_KEY, GET_VALUE, KEY, VALUE
 
Fields inherited from class com.caucho.quercus.env.Value
L, NULL_ARGS, NULL_VALUE_ARRAY, SCALAR_V
 
Constructor Summary
JavaListAdapter(Env env, java.util.List list)
           
JavaListAdapter(java.util.List list, JavaClassDef def)
           
 
Method Summary
 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.
 
Methods inherited from class com.caucho.quercus.env.JavaCollectionAdapter
clear, createTailKey, entrySet, getIterator, getKeyIterator, getSize, getValueIterator, objectEntrySet, values
 
Methods inherited from class com.caucho.quercus.env.JavaAdapter
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, varExport, wrapJava
 
Methods inherited from class com.caucho.quercus.env.ArrayValue
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, isset, jsonEncode, 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
 
Methods inherited from class com.caucho.quercus.env.Value
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, findFunction, generate, getArray, getCallableName, getCalledClass, getClassName, getDirty, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getObject, getQuercusClass, getRef, getResourceType, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, hashCode, increment, initField, isA, isBinary, isBoolean, isDefault, isDouble, isDoubleConvertible, 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, putField, putField, putObject, putThisField, putThisField, rshift, set, setCharValueAt, setFieldInit, setJavaObject, sub_rev, sub, sub, subOne, toArgRef, toAutoObject, toBigDecimal, toBigInteger, toBinaryValue, toBinaryValue, toBinaryValue, toBooleanMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toChar, toCharArrayMarshalCost, toDebugString, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInputStream, toInt, toIntegerMarshalCost, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaDate, toJavaDouble, toJavaFloat, toJavaInteger, toJavaLong, toJavaObject, toJavaObjectMarshalCost, toJavaShort, toJavaString, toJavaURL, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLongMarshalCost, toLongValue, toRef, toRefValue, toShortMarshalCost, toString, toStringBuilder, toStringBuilder, toStringBuilder, toStringBuilder, toStringValue, toStringValue, toUnicode, toUnicodeValue, toUnicodeValue, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, varDump
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaListAdapter

public JavaListAdapter(Env env,
                       java.util.List list)

JavaListAdapter

public JavaListAdapter(java.util.List list,
                       JavaClassDef def)
Method Detail

putImpl

public Value putImpl(Value key,
                     Value value)
Adds a new value.

Overrides:
putImpl in class JavaCollectionAdapter

get

public Value get(Value key)
Gets a new value.

Overrides:
get in class JavaCollectionAdapter

remove

public Value remove(Value key)
Removes a value.

Overrides:
remove in class JavaCollectionAdapter

pop

public Value pop(Env env)
Pops the top value.

Overrides:
pop in class JavaAdapter

contains

public Value contains(Value value)
Returns the corresponding key if this array contains the given value

Overrides:
contains in class JavaAdapter
Parameters:
value - the value to search for in the array
Returns:
the key if it is found in the array, NULL otherwise
Throws:
java.lang.NullPointerException

current

public Value current()
Returns the current value.

Overrides:
current in class JavaAdapter

key

public Value key()
Returns the current key

Overrides:
key in class JavaAdapter

hasCurrent

public boolean hasCurrent()
Returns true if there are more elements.

Overrides:
hasCurrent in class JavaAdapter

next

public Value next()
Returns the next value.

Overrides:
next in class JavaAdapter

prev

public Value prev()
Returns the previous value.

Overrides:
prev in class JavaAdapter

each

public Value each()
The each iterator

Overrides:
each in class JavaAdapter

reset

public Value reset()
Returns the first value.

Overrides:
reset in class JavaAdapter

end

public Value end()
Returns the last value.

Overrides:
end in class JavaAdapter

copy

public Value copy()
Copy for assignment.

Overrides:
copy in class JavaCollectionAdapter

copy

public Value copy(Env env,
                  java.util.IdentityHashMap<Value,Value> map)
Copy for serialization

Overrides:
copy in class JavaCollectionAdapter