com.caucho.quercus.env
Class ObjectExtJavaValue

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.ObjectExtJavaValue
All Implemented Interfaces:
java.io.Serializable

public class ObjectExtJavaValue
extends ObjectExtValue
implements java.io.Serializable

Represents a PHP object which extends a Java value.

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
 
Constructor Summary
ObjectExtJavaValue(QuercusClass cl, JavaClassDef javaClassDef)
           
ObjectExtJavaValue(QuercusClass cl, java.lang.Object object, JavaClassDef javaClassDef)
           
 
Method Summary
 Value clone(Env env)
          Clone the object
protected  Value getFieldExt(Env env, StringValue name)
          Returns fields not explicitly specified by this value.
protected  void printRImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet)
           
protected  Value putFieldExt(Env env, StringValue name, Value value)
          Sets fields not specified by the value.
 void setJavaObject(java.lang.Object obj)
          Binds a Java object to this object.
 java.lang.Object toJavaObject()
          Returns the java object.
 StringValue toString(Env env)
          Converts to a string.
 void varDumpImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet)
           
 
Methods inherited from class com.caucho.quercus.env.ObjectExtValue
callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, clone, copy, copy, copyTree, entrySet, getBaseIterator, getField, getFieldArg, getFieldArgRef, getFieldVar, getIterator, getKeyIterator, getObject, getSize, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldVar, getValueIterator, initField, initObject, isFieldExists, isFieldInit, issetField, jsonEncode, print, putField, putThisField, serialize, setFieldInit, setQuercusClass, sortedEntrySet, toArray, toJavaString, toObject, toString, toStringBuilder, unsetArray, unsetField, unsetThisArray, varExportImpl
 
Methods inherited from class com.caucho.quercus.env.ObjectValue
append, appendTo, appendTo, appendTo, appendTo, call, cleanup, cmpObject, eq, findFunction, get, getClassName, getCount, getIncompleteObjectName, getName, getParentClassName, getQuercusClass, getType, isA, isCallable, isIncompleteObject, isObject, isset, put, put, putField, putField, putField, putField, putField, putField, remove, 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, get, 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, putArray, putField, putObject, putThisField, putThisFieldArray, putVar, reset, rshift, serialize, set, setCharValueAt, 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, varExport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectExtJavaValue

public ObjectExtJavaValue(QuercusClass cl,
                          java.lang.Object object,
                          JavaClassDef javaClassDef)

ObjectExtJavaValue

public ObjectExtJavaValue(QuercusClass cl,
                          JavaClassDef javaClassDef)
Method Detail

getFieldExt

protected Value getFieldExt(Env env,
                            StringValue name)
Returns fields not explicitly specified by this value.

Overrides:
getFieldExt in class ObjectExtValue

putFieldExt

protected Value putFieldExt(Env env,
                            StringValue name,
                            Value value)
Sets fields not specified by the value.

Overrides:
putFieldExt in class ObjectExtValue

toJavaObject

public java.lang.Object toJavaObject()
Returns the java object.

Overrides:
toJavaObject in class ObjectExtValue

setJavaObject

public void setJavaObject(java.lang.Object obj)
Binds a Java object to this object.

Overrides:
setJavaObject in class Value

varDumpImpl

public void varDumpImpl(Env env,
                        WriteStream out,
                        int depth,
                        java.util.IdentityHashMap<Value,java.lang.String> valueSet)
                 throws java.io.IOException
Overrides:
varDumpImpl in class ObjectExtValue
Throws:
java.io.IOException

printRImpl

protected void printRImpl(Env env,
                          WriteStream out,
                          int depth,
                          java.util.IdentityHashMap<Value,java.lang.String> valueSet)
                   throws java.io.IOException
Overrides:
printRImpl in class ObjectExtValue
Throws:
java.io.IOException

toString

public StringValue toString(Env env)
Converts to a string.

Overrides:
toString in class ObjectExtValue
Parameters:
env -

clone

public Value clone(Env env)
Clone the object

Overrides:
clone in class ObjectExtValue