|
||||||||||
| 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.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 |
|---|
_current, 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(Env env,
java.util.List list,
JavaClassDef def)
|
|
| Method Summary | |
|---|---|
Value |
contains(Value value)
Returns the corresponding key if this array contains the given value |
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()
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, copy, copy, createTailKey, entrySet, getIterator, getKeyIterator, getSize, getValueIterator, objectEntrySet, values |
| Methods inherited from class com.caucho.quercus.env.JavaAdapter |
|---|
add, append, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, containsKey, containsStrict, findFunction, getArg, getClassDef, getEnv, getField, getHead, getIndices, getName, getRef, getTail, isA, keyReset, keySet, printRImpl, put, put, putField, putRef, 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 |
|---|
append, cmp, copyReturn, eq, eql, geq, getArray, getCount, getCountRecursive, getKeyArray, getObject, getRaw, getType, getValueArray, getValueType, gt, isArray, isEmpty, leq, lt, print, printREntry, put, put, put, put, put, put, put, put, put, put, putAll, serialize, toArray, toArray, toArrayValue, toBoolean, varDumpEntry |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JavaListAdapter(Env env,
java.util.List list)
public JavaListAdapter(Env env,
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()
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 JavaAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||