com.caucho.quercus.env
Class CopyObjectExtValue

java.lang.Object
  extended by com.caucho.quercus.env.Value
      extended by com.caucho.quercus.env.ObjectValue
          extended by com.caucho.quercus.env.ObjectExtValue
              extended by com.caucho.quercus.env.CopyObjectExtValue
All Implemented Interfaces:
java.io.Serializable

public class CopyObjectExtValue
extends ObjectExtValue

Represents a copy of an object value for serialization/apc

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.quercus.env.ObjectExtValue
ObjectExtValue.Entry, ObjectExtValue.EntryIterator, ObjectExtValue.EntrySet, ObjectExtValue.KeyIterator, ObjectExtValue.KeyValueIterator, ObjectExtValue.ValueIterator
 
Field Summary
 
Fields inherited from class com.caucho.quercus.env.ObjectValue
_className, _incompleteObjectName, _quercusClass
 
Fields inherited from class com.caucho.quercus.env.Value
L, NULL_ARGS, NULL_VALUE_ARRAY, SCALAR_V
 
Constructor Summary
CopyObjectExtValue(Env env, ObjectExtValue copy, CopyRoot root)
           
 
Method Summary
 Value getFieldArg(Env env, StringValue name, boolean isTop)
          Returns the value as an argument which may be a reference.
 Value getFieldArgRef(Env env, StringValue name)
          Returns the value as an argument which may be a reference.
 Var getFieldVar(Env env, StringValue name)
          Returns the array ref.
 Value getThisFieldArg(Env env, StringValue name)
          Returns the value as an argument which may be a reference.
 Value getThisFieldArgRef(Env env, StringValue name)
          Returns the value as an argument which may be a reference.
 Var getThisFieldVar(Env env, StringValue name)
          Returns the array ref.
 void initField(StringValue key, Value value, FieldVisibility visibility)
          Adds a new value to the object.
 Value put(Value value)
          Appends a new array value
 Value put(Value key, Value value)
          Sets the array value with the given key.
 Value putField(Env env, StringValue name, Value value)
          Adds a new value.
protected  Value putFieldExt(Env env, StringValue name, Value value)
           
 Value putThisField(Env env, StringValue name, Value value)
          Sets/adds field to this object.
 Value remove(Value key)
          Unsets the array value
 void unsetArray(Env env, StringValue name, Value index)
          Removes the field ref.
 void unsetField(StringValue name)
          Removes a value.
 void unsetThisArray(Env env, StringValue name, Value index)
          Removes the field ref.
 
Methods inherited from class com.caucho.quercus.env.ObjectExtValue
appendTo, appendTo, appendTo, appendTo, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, cleanup, clone, copy, copy, copyTree, entrySet, findFunction, getBaseIterator, getField, getFieldExt, getIterator, getKeyIterator, getObject, getSize, getThisField, getValueIterator, initObject, isFieldInit, issetField, jsonEncode, print, printRImpl, serialize, setFieldInit, setQuercusClass, sortedEntrySet, toArray, toJavaObject, toJavaString, toObject, toString, toString, toStringBuilder, varDumpImpl, varExport
 
Methods inherited from class com.caucho.quercus.env.ObjectValue
append, call, cmpObject, eq, get, getClassName, getCount, getIncompleteObjectName, getName, getParentClassName, getQuercusClass, getType, isA, isCallable, isIncompleteObject, isObject, isset, putField, putField, putField, putField, putField, putField, setIncompleteObjectName, toAutoArray, toBoolean, toDouble, toLong, varDumpObject
 
Methods inherited from class com.caucho.quercus.env.Value
abs, add, add, addOne, bitAnd, bitOr, bitXor, 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, cmp, containsKey, copy, copyArrayItem, copyReturn, copySaveFunArg, copyStringBuilder, current, div, div, end, eql, eqValue, generate, geq, getArg, getArray, getArray, getCallableName, getCalledClass, getCountRecursive, getDirty, getFieldArray, getFieldObject, getHashCode, getKeyArray, getObject, getRef, getResourceType, getThisFieldArray, getThisFieldObject, getValueArray, getValueType, getVar, gt, hasCurrent, hashCode, increment, isA, isArray, isBinary, isBoolean, isDefault, isDouble, isDoubleConvertible, isEmpty, isLong, isLongConvertible, isNull, isNumberConvertible, isNumeric, isResource, isset, issetThisField, isString, isUnicode, isVar, key, keyExists, length, leq, lshift, lt, mod, mul, mul, neg, next, nextIndex, pop, pos, postdecr, postincr, postincr, predecr, preincr, preincr, prev, print, printDepth, printJavaChar, printJavaString, printR, put, putField, putObject, putThisField, putVar, reset, rshift, serialize, set, setCharValueAt, setJavaObject, shuffle, sub_rev, sub, sub, subOne, toArgRef, toArrayValue, toAutoObject, toBigDecimal, toBigInteger, toBinaryValue, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toBooleanMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toCallable, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDebugString, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInputStream, toInt, toIntegerMarshalCost, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObjectMarshalCost, toJavaObjectNotNull, toJavaShort, toJavaURL, toKey, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLongMarshalCost, toLongValue, toRef, toRefValue, toShortMarshalCost, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetThisField, valuesToArray, varDump
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopyObjectExtValue

public CopyObjectExtValue(Env env,
                          ObjectExtValue copy,
                          CopyRoot root)
Method Detail

getFieldVar

public Var getFieldVar(Env env,
                       StringValue name)
Returns the array ref.

Overrides:
getFieldVar in class ObjectExtValue

getThisFieldVar

public Var getThisFieldVar(Env env,
                           StringValue name)
Returns the array ref.

Overrides:
getThisFieldVar in class ObjectExtValue

getFieldArg

public Value getFieldArg(Env env,
                         StringValue name,
                         boolean isTop)
Returns the value as an argument which may be a reference.

Overrides:
getFieldArg in class ObjectExtValue

getThisFieldArg

public Value getThisFieldArg(Env env,
                             StringValue name)
Returns the value as an argument which may be a reference.

Overrides:
getThisFieldArg in class ObjectExtValue

getFieldArgRef

public Value getFieldArgRef(Env env,
                            StringValue name)
Returns the value as an argument which may be a reference.

Overrides:
getFieldArgRef in class ObjectExtValue

getThisFieldArgRef

public Value getThisFieldArgRef(Env env,
                                StringValue name)
Returns the value as an argument which may be a reference.

Overrides:
getThisFieldArgRef in class ObjectExtValue

putField

public Value putField(Env env,
                      StringValue name,
                      Value value)
Adds a new value.

Overrides:
putField in class ObjectExtValue

putThisField

public Value putThisField(Env env,
                          StringValue name,
                          Value value)
Sets/adds field to this object.

Overrides:
putThisField in class ObjectExtValue

putFieldExt

protected Value putFieldExt(Env env,
                            StringValue name,
                            Value value)
Overrides:
putFieldExt in class ObjectExtValue

initField

public void initField(StringValue key,
                      Value value,
                      FieldVisibility visibility)
Adds a new value to the object.

Overrides:
initField in class ObjectExtValue

unsetField

public void unsetField(StringValue name)
Removes a value.

Overrides:
unsetField in class ObjectExtValue

unsetArray

public void unsetArray(Env env,
                       StringValue name,
                       Value index)
Removes the field ref.

Overrides:
unsetArray in class ObjectExtValue

unsetThisArray

public void unsetThisArray(Env env,
                           StringValue name,
                           Value index)
Removes the field ref.

Overrides:
unsetThisArray in class ObjectExtValue

put

public Value put(Value key,
                 Value value)
Sets the array value with the given key.

Overrides:
put in class ObjectValue

put

public Value put(Value value)
Appends a new array value

Overrides:
put in class ObjectValue

remove

public Value remove(Value key)
Unsets the array value

Overrides:
remove in class ObjectValue