com.caucho.quercus.env
Class CompiledObjectValue

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

public class CompiledObjectValue
extends ObjectValue
implements java.io.Serializable

Represents a compiled object value.

See Also:
Serialized Form

Field Summary
 Value[] _fields
           
 
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
CompiledObjectValue(QuercusClass cl)
           
 
Method Summary
 Value clone(Env env)
          Clone the object
 Value copy()
          Copy for assignment.
 Value copy(Env env, java.util.IdentityHashMap<Value,Value> map)
          Copy for serialization
 java.util.Set<? extends java.util.Map.Entry<Value,Value>> entrySet()
          Returns a Set of entries.
 AbstractFunction findFunction(java.lang.String methodName)
          Finds the method name.
 Value getField(Env env, StringValue key)
          Gets a new value.
 Value getFieldArg(Env env, StringValue key, boolean isTop)
          Returns the value as an argument which may be a reference.
 Value getFieldArgRef(Env env, StringValue key)
          Returns the value as an argument which may be a reference.
 Value getFieldArray(Env env, StringValue key)
          Returns field as an array.
 Value getFieldObject(Env env, StringValue key)
          Returns field as an object.
 Var getFieldVar(Env env, StringValue key)
          Returns the array ref.
 Value getObject(Env env)
          Returns the value for the variable, creating an object if the var is unset.
 int getSize()
          Returns the number of entries.
 void print(Env env)
          Converts to a string.
 Value putField(Env env, StringValue key, Value value)
          Adds a new value.
 java.util.Set<? extends java.util.Map.Entry<Value,Value>> sortedEntrySet()
          Returns a Set of entries, sorted by key.
 Value toArray()
          Converts to an array.
 java.lang.Object toJavaObject()
          Converts to an object.
 Value toObject(Env env)
          Converts to an object.
 java.lang.String toString()
           
 void unsetField(StringValue key)
          Removes a value.
 
Methods inherited from class com.caucho.quercus.env.ObjectValue
append, call, cmpObject, eq, get, getClassName, getCount, getIncompleteObjectName, getIterator, getKeyIterator, getName, getParentClassName, getQuercusClass, getType, getValueIterator, initField, initObject, isA, isCallable, isIncompleteObject, isObject, isset, jsonEncode, put, put, putField, putField, putField, putField, putField, putField, remove, setIncompleteObjectName, setQuercusClass, toAutoArray, toBoolean, toDouble, toLong, varDumpObject
 
Methods inherited from class com.caucho.quercus.env.Value
abs, add, add, addOne, appendTo, appendTo, appendTo, appendTo, bitAnd, bitOr, bitXor, call, call, call, call, call, call, callCopy, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callRef, callRef, callRef, callRef, callRef, callRef, callRef, charValueAt, checkPrivate, checkProtected, cmp, containsKey, copy, copyArrayItem, copyReturn, copySaveFunArg, copyStringBuilder, copyTree, current, div, div, end, eql, eqValue, generate, geq, getArg, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getCountRecursive, getDirty, getHashCode, getKeyArray, getObject, getRef, getResourceType, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, getValueType, getVar, gt, hasCurrent, hashCode, increment, isA, isArray, isBinary, isBoolean, isDefault, isDouble, isDoubleConvertible, isEmpty, isFieldInit, isLong, isLongConvertible, isNull, isNumberConvertible, isNumeric, isResource, isset, issetField, 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, printRImpl, put, putField, putObject, putThisField, putThisField, putVar, reset, rshift, serialize, serialize, set, setCharValueAt, setFieldInit, 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, toJavaString, toJavaURL, toKey, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLongMarshalCost, toLongValue, toRef, toRefValue, toShortMarshalCost, toString, toStringBuilder, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetThisArray, unsetThisField, valuesToArray, varDump, varDumpImpl, varExport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_fields

public Value[] _fields
Constructor Detail

CompiledObjectValue

public CompiledObjectValue(QuercusClass cl)
Method Detail

getSize

public int getSize()
Returns the number of entries.

Overrides:
getSize in class Value

getField

public Value getField(Env env,
                      StringValue key)
Gets a new value.

Overrides:
getField in class Value

getFieldVar

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

Overrides:
getFieldVar in class Value

getFieldArg

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

Overrides:
getFieldArg in class Value

getFieldArgRef

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

Overrides:
getFieldArgRef in class Value

getFieldArray

public Value getFieldArray(Env env,
                           StringValue key)
Returns field as an array.

Overrides:
getFieldArray in class Value

getFieldObject

public Value getFieldObject(Env env,
                            StringValue key)
Returns field as an object.

Overrides:
getFieldObject in class Value

putField

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

Overrides:
putField in class Value

unsetField

public void unsetField(StringValue key)
Removes a value.

Overrides:
unsetField in class Value

findFunction

public AbstractFunction findFunction(java.lang.String methodName)
Finds the method name.

Overrides:
findFunction in class Value

getObject

public Value getObject(Env env)
Returns the value for the variable, creating an object if the var is unset.

Overrides:
getObject in class Value

copy

public Value copy()
Copy for assignment.

Overrides:
copy in class Value

copy

public Value copy(Env env,
                  java.util.IdentityHashMap<Value,Value> map)
Copy for serialization

Overrides:
copy in class Value

clone

public Value clone(Env env)
Clone the object

Overrides:
clone in class Value

print

public void print(Env env)
Converts to a string.

Overrides:
print in class Value
Parameters:
env -

toArray

public Value toArray()
Converts to an array.

Overrides:
toArray in class Value

toObject

public Value toObject(Env env)
Converts to an object.

Overrides:
toObject in class Value

toJavaObject

public java.lang.Object toJavaObject()
Converts to an object.

Overrides:
toJavaObject in class Value

entrySet

public java.util.Set<? extends java.util.Map.Entry<Value,Value>> entrySet()
Description copied from class: ObjectValue
Returns a Set of entries.

Specified by:
entrySet in class ObjectValue

sortedEntrySet

public java.util.Set<? extends java.util.Map.Entry<Value,Value>> sortedEntrySet()
Returns a Set of entries, sorted by key.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object