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, SCALAR_V
 
Constructor Summary
ObjectExtJavaValue(QuercusClass cl, JavaClassDef javaClassDef)
           
ObjectExtJavaValue(QuercusClass cl, java.lang.Object object, JavaClassDef javaClassDef)
           
 
Method Summary
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(Value value)
          Binds a Java object to this object.
 java.lang.Object toJavaObject()
          Returns the java object.
 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
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, getFieldArg, getFieldArgRef, getFieldVar, getIterator, getKeyIterator, getObject, getSize, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldVar, getValueIterator, initField, initObject, isFieldInit, issetField, jsonEncode, print, putField, putThisField, serialize, setFieldInit, setQuercusClass, sortedEntrySet, toArray, toJavaString, toObject, toString, toString, toStringBuilder, unsetArray, unsetField, unsetThisArray, 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, 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, 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, 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

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(Value value)
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