|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.env.Value
com.caucho.quercus.env.ArrayValue
com.caucho.quercus.env.JavaAdapter
com.caucho.quercus.env.JavaCollectionAdapter
com.caucho.quercus.env.JavaListAdapter
public class JavaListAdapter
Represents a marshalled Collection argument.
| 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JavaListAdapter(Env env,
java.util.List list)
public JavaListAdapter(java.util.List list,
JavaClassDef def)
| Method Detail |
|---|
public Value putImpl(Value key,
Value value)
putImpl in class JavaCollectionAdapterpublic Value get(Value key)
get in class JavaCollectionAdapterpublic Value remove(Value key)
remove in class JavaCollectionAdapterpublic Value pop(Env env)
pop in class JavaAdapterpublic Value contains(Value value)
contains in class JavaAdaptervalue - the value to search for in the array
java.lang.NullPointerExceptionpublic Value current()
current in class JavaAdapterpublic Value key()
key in class JavaAdapterpublic boolean hasCurrent()
hasCurrent in class JavaAdapterpublic Value next()
next in class JavaAdapterpublic Value prev()
prev in class JavaAdapterpublic Value each()
each in class JavaAdapterpublic Value reset()
reset in class JavaAdapterpublic Value end()
end in class JavaAdapterpublic Value copy()
copy in class JavaCollectionAdapter
public Value copy(Env env,
java.util.IdentityHashMap<Value,Value> map)
copy in class JavaCollectionAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||