|
||||||||||
| 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.JavaMapAdapter
public class JavaMapAdapter
Represents a marshalled Map argument.
| Nested Class Summary | |
|---|---|
class |
JavaMapAdapter.KeyIterator
|
class |
JavaMapAdapter.MapIterator
|
class |
JavaMapAdapter.MapSet
|
class |
JavaMapAdapter.ValueCollection
|
class |
JavaMapAdapter.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 | |
|---|---|
JavaMapAdapter(Env env,
java.util.Map map)
|
|
JavaMapAdapter(java.util.Map map,
JavaClassDef def)
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears the array |
Value |
containsKey(Value key)
Returns the corresponding valeu if this array contains the given key |
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. |
int |
size()
|
java.lang.Object |
toJavaObject(Env env,
java.lang.Class type)
Converts to a java object. |
java.util.Collection<Value> |
values()
Returns a collection of the 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, contains, 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, 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 JavaMapAdapter(Env env,
java.util.Map map)
public JavaMapAdapter(java.util.Map map,
JavaClassDef def)
| Method Detail |
|---|
public void clear()
clear in class JavaAdapterpublic int size()
public java.lang.Object toJavaObject(Env env,
java.lang.Class type)
toJavaObject in class Valuepublic Value copy()
copy in class JavaAdapter
public Value copy(Env env,
java.util.IdentityHashMap<Value,Value> map)
copy in class JavaAdapterpublic int getSize()
getSize in class JavaAdapterpublic Value get(Value key)
get in class JavaAdapterpublic Value remove(Value key)
remove in class JavaAdapterpublic Value createTailKey()
createTailKey in class JavaAdapter
public Value putImpl(Value key,
Value value)
putImpl in class JavaAdapterpublic Value containsKey(Value key)
containsKey in class JavaAdapterkey - the key to search for in the array
public 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 ArrayValuepublic java.util.Iterator<java.util.Map.Entry<Value,Value>> getIterator(Env env)
Value
getIterator in class Valuepublic 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 JavaAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||