public class ObjectExtValue extends ObjectValue implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ObjectExtValue.Entry |
class |
ObjectExtValue.EntrySet |
static class |
ObjectExtValue.KeyIterator |
static class |
ObjectExtValue.KeyValueIterator |
static class |
ObjectExtValue.ValueIterator |
_className, _incompleteObjectName, _quercusClass
L, NULL_ARGS, NULL_VALUE_ARRAY
Constructor and Description |
---|
ObjectExtValue(Env env,
java.util.IdentityHashMap<Value,Value> copyMap,
ObjectExtValue copy) |
ObjectExtValue(Env env,
ObjectExtValue copy,
CopyRoot root) |
ObjectExtValue(Env env,
QuercusClass cl) |
Modifier and Type | Method and Description |
---|---|
Value |
callMethod(Env env,
StringValue methodName,
int hash)
Evaluates a method.
|
Value |
callMethod(Env env,
StringValue methodName,
int hash,
Value a1)
Evaluates a method.
|
Value |
callMethod(Env env,
StringValue methodName,
int hash,
Value[] args)
Evaluates a method.
|
Value |
callMethod(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2)
Evaluates a method.
|
Value |
callMethod(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3)
calls the function.
|
Value |
callMethod(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3,
Value a4)
calls the function.
|
Value |
callMethod(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3,
Value a4,
Value a5)
calls the function.
|
Value |
callMethodRef(Env env,
StringValue methodName,
int hash)
Evaluates a method.
|
Value |
callMethodRef(Env env,
StringValue methodName,
int hash,
Value a1)
Evaluates a method.
|
Value |
callMethodRef(Env env,
StringValue methodName,
int hash,
Value[] args)
Evaluates a method.
|
Value |
callMethodRef(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2)
Evaluates a method.
|
Value |
callMethodRef(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3)
Evaluates a method.
|
Value |
callMethodRef(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3,
Value a4)
Evaluates a method.
|
Value |
callMethodRef(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3,
Value a4,
Value a5)
Evaluates a method.
|
Value |
clone(Env env)
Clone the object
|
protected void |
clone(Env env,
ObjectExtValue obj) |
Value |
copy()
Copy for assignment.
|
Value |
copy(Env env,
java.util.IdentityHashMap<Value,Value> map)
Copy for serialization
|
Value |
copyTree(Env env,
CopyRoot root)
Copy for serialization
|
java.util.Set<? extends java.util.Map.Entry<Value,Value>> |
entrySet()
Returns a Set of entries.
|
java.util.Iterator<java.util.Map.Entry<Value,Value>> |
getBaseIterator(Env env)
Returns an iterator for the key => value pairs.
|
Value |
getField(Env env,
StringValue name)
Gets a field value.
|
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.
|
protected Value |
getFieldExt(Env env,
StringValue name)
Returns fields not explicitly specified by this value.
|
Var |
getFieldVar(Env env,
StringValue name)
Returns the array ref.
|
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 keys.
|
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.
|
Value |
getThisField(Env env,
StringValue name)
Gets a field value.
|
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.
|
java.util.Iterator<Value> |
getValueIterator(Env env)
Returns an iterator for the values.
|
void |
initField(Env env,
StringValue name,
StringValue canonicalName,
Value value)
Adds a new value to the object.
|
void |
initObject(Env env,
QuercusClass cls)
Initializes the incomplete class.
|
boolean |
isFieldExists(Env env,
StringValue name)
Returns true if the object has this field.
|
boolean |
isFieldInit()
Returns true if the object is in a __set() method call.
|
boolean |
issetField(Env env,
StringValue name)
Returns true if the field is set
|
void |
jsonEncode(Env env,
JsonEncodeContext context,
StringValue sb)
Encodes the value in JSON.
|
void |
print(Env env)
Converts to a string.
|
protected void |
printRImpl(Env env,
WriteStream out,
int depth,
java.util.IdentityHashMap<Value,java.lang.String> valueSet) |
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.
|
void |
serialize(Env env,
java.lang.StringBuilder sb,
SerializeMap serializeMap)
Serializes the value.
|
void |
setFieldInit(boolean isInit) |
void |
setQuercusClass(QuercusClass cl) |
ArrayValue |
toArray()
Converts to an array.
|
java.lang.Object |
toJavaObject()
Converts to an object.
|
java.lang.String |
toJavaString()
Converts to a java String object.
|
Value |
toObject(Env env)
Converts to an object.
|
java.lang.String |
toString() |
StringValue |
toString(Env env)
Converts to a string.
|
StringValue |
toStringBuilder(Env env)
Converts to a string builder
|
void |
unsetArray(Env env,
StringValue name,
Value index)
Removes the field array ref.
|
void |
unsetField(StringValue name)
Removes a value.
|
void |
unsetThisArray(Env env,
StringValue name,
Value index)
Removes the field array ref.
|
void |
varDumpImpl(Env env,
WriteStream out,
int depth,
java.util.IdentityHashMap<Value,java.lang.String> valueSet) |
protected void |
varExportImpl(StringValue sb,
int level)
Exports the value.
|
append, appendTo, appendTo, appendTo, appendTo, call, cleanup, cmpObject, eq, findFunction, findQuercusClass, get, getArgs, getCallbackName, getClassName, getCount, getDeclComment, getDeclEndLine, getDeclFileName, getDeclStartLine, getIncompleteObjectName, getMethod, getName, getObjectHash, getParentClassName, getQuercusClass, getStaticFieldValue, getStaticFieldVar, getType, initIncompleteField, isA, isCallable, isEmpty, isIncompleteObject, isInternal, isObject, isReturnsReference, isset, isValid, put, put, putField, putField, putField, putField, putField, putField, remove, setClassName, setIncompleteObjectName, setStaticFieldRef, toAutoArray, toBoolean, toCallable, toDouble, toJavaEnum, toLong, varDumpObject
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, getArgTail, getArray, getArray, getCallableName, getCalledClass, getCountRecursive, getDirty, getFieldArray, getFieldObject, getHashCode, getKeyArray, getObject, getRef, getResourceType, getThisFieldArray, getThisFieldObject, getValueArray, getValueType, getVar, gt, hasCurrent, hashCode, increment, initField, initField, 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, setJavaObject, shuffle, sub_rev, sub, sub, subOne, toArgRef, toArrayValue, toAutoObject, toBigDecimal, toBigInteger, toBinaryValue, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toBooleanMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDebugString, toDouble, toDouble, toDouble, toDouble, 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, toLong, toLong, toLong, toLong, toLongMarshalCost, toLongValue, toRef, toRefValue, toShortMarshalCost, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetThisField, unsetThisPrivateField, valuesToArray, varDump, varExport
public ObjectExtValue(Env env, QuercusClass cl)
public ObjectExtValue(Env env, ObjectExtValue copy, CopyRoot root)
public ObjectExtValue(Env env, java.util.IdentityHashMap<Value,Value> copyMap, ObjectExtValue copy)
public void setQuercusClass(QuercusClass cl)
setQuercusClass
in class ObjectValue
public void initObject(Env env, QuercusClass cls)
initObject
in class ObjectValue
public final Value getField(Env env, StringValue name)
public Value getThisField(Env env, StringValue name)
getThisField
in class Value
protected Value getFieldExt(Env env, StringValue name)
public Var getFieldVar(Env env, StringValue name)
getFieldVar
in class Value
public Var getThisFieldVar(Env env, StringValue name)
getThisFieldVar
in class Value
public Value getFieldArg(Env env, StringValue name, boolean isTop)
getFieldArg
in class Value
public Value getThisFieldArg(Env env, StringValue name)
getThisFieldArg
in class Value
public Value getFieldArgRef(Env env, StringValue name)
getFieldArgRef
in class Value
public Value getThisFieldArgRef(Env env, StringValue name)
getThisFieldArgRef
in class Value
public Value putField(Env env, StringValue name, Value value)
public Value putThisField(Env env, StringValue name, Value value)
putThisField
in class Value
protected Value putFieldExt(Env env, StringValue name, Value value)
public void setFieldInit(boolean isInit)
setFieldInit
in class Value
public boolean isFieldInit()
isFieldInit
in class Value
public void initField(Env env, StringValue name, StringValue canonicalName, Value value)
initField
in class ObjectValue
public void unsetField(StringValue name)
unsetField
in class Value
public void unsetArray(Env env, StringValue name, Value index)
unsetArray
in class Value
public void unsetThisArray(Env env, StringValue name, Value index)
unsetThisArray
in class Value
public java.util.Iterator<java.util.Map.Entry<Value,Value>> getIterator(Env env)
getIterator
in class ObjectValue
public java.util.Iterator<java.util.Map.Entry<Value,Value>> getBaseIterator(Env env)
getBaseIterator
in class Value
public java.util.Iterator<Value> getKeyIterator(Env env)
getKeyIterator
in class ObjectValue
public java.util.Iterator<Value> getValueIterator(Env env)
getValueIterator
in class ObjectValue
public Value callMethod(Env env, StringValue methodName, int hash, Value[] args)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a1)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4, Value a5)
callMethod
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value[] args)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a1)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4, Value a5)
callMethodRef
in class Value
public Value getObject(Env env)
protected void clone(Env env, ObjectExtValue obj)
public void serialize(Env env, java.lang.StringBuilder sb, SerializeMap serializeMap)
protected void varExportImpl(StringValue sb, int level)
varExportImpl
in class Value
public StringValue toStringBuilder(Env env)
toStringBuilder
in class Value
public java.lang.String toJavaString()
toJavaString
in class Value
public StringValue toString(Env env)
public void print(Env env)
public ArrayValue toArray()
public java.lang.Object toJavaObject()
toJavaObject
in class Value
public java.util.Set<? extends java.util.Map.Entry<Value,Value>> entrySet()
ObjectValue
entrySet
in class ObjectValue
public void varDumpImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet) throws java.io.IOException
varDumpImpl
in class Value
java.io.IOException
protected void printRImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet) throws java.io.IOException
printRImpl
in class Value
java.io.IOException
public void jsonEncode(Env env, JsonEncodeContext context, StringValue sb)
jsonEncode
in class ObjectValue
public boolean issetField(Env env, StringValue name)
Value
issetField
in class Value
public boolean isFieldExists(Env env, StringValue name)
Value
isFieldExists
in class Value