public abstract class ObjectValue extends Callback
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_className |
protected java.lang.String |
_incompleteObjectName |
protected QuercusClass |
_quercusClass |
L, NULL_ARGS, NULL_VALUE_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
ObjectValue(Env env) |
protected |
ObjectValue(Env env,
QuercusClass quercusClass) |
Modifier and Type | Method and Description |
---|---|
Value |
append(Value index,
Value value)
Sets the array value, returning the new array, e.g.
|
StringValue |
appendTo(BinaryBuilderValue sb)
Append to a binary builder.
|
StringValue |
appendTo(LargeStringBuilderValue sb)
Append to a binary builder.
|
StringValue |
appendTo(StringBuilderValue sb)
Append to a binary builder.
|
StringValue |
appendTo(UnicodeBuilderValue sb)
Append to a string builder.
|
Value |
call(Env env,
Value[] args)
Call for callable.
|
void |
cleanup(Env env) |
int |
cmpObject(ObjectValue rValue)
Compare two objects
|
abstract java.util.Set<? extends java.util.Map.Entry<Value,Value>> |
entrySet()
Returns a Set of entries.
|
boolean |
eq(Value rValue)
Returns true for equality
|
AbstractFunction |
findFunction(StringValue methodName)
Finds the method name.
|
QuercusClass |
findQuercusClass(Env env)
Returns the Quercus class for this obj/name.
|
Value |
get(Value key)
Returns the array value with the given key.
|
Arg[] |
getArgs(Env env)
Returns the formal arguments.
|
java.lang.String |
getCallbackName()
Returns the name of the callback.
|
java.lang.String |
getClassName()
Returns the value's class name.
|
int |
getCount(Env env)
Returns the count value with the given key.
|
java.lang.String |
getDeclComment(Env env)
Returns the comment in the file where this is defined in.
|
int |
getDeclEndLine(Env env)
Returns the end line in the file where this is defined in.
|
java.lang.String |
getDeclFileName(Env env)
Returns the name of the file where this is defined in.
|
int |
getDeclStartLine(Env env)
Returns the start line in the file where this is defined in.
|
java.lang.String |
getIncompleteObjectName()
Returns the name of the uninitialized object.
|
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.
|
AbstractFunction |
getMethod(StringValue name) |
java.lang.String |
getName()
Returns the class name.
|
StringValue |
getObjectHash(Env env)
Returns the unique object hash.
|
java.lang.String |
getParentClassName()
Returns the parent class
|
QuercusClass |
getQuercusClass()
Returns the backing QuercusClass.
|
Value |
getStaticFieldValue(Env env,
StringValue name)
Returns the static field.
|
Var |
getStaticFieldVar(Env env,
StringValue name)
Returns the static field reference.
|
java.lang.String |
getType()
Returns the type.
|
java.util.Iterator<Value> |
getValueIterator(Env env)
Returns an iterator for the values.
|
void |
initField(Env env,
StringValue name,
StringValue canonicalName,
Value value)
Initializes a new field, does not call __set if it is defined.
|
void |
initIncompleteField(Env env,
StringValue name,
Value value,
FieldVisibility visibility) |
void |
initObject(Env env,
QuercusClass cls)
Initializes the incomplete class.
|
boolean |
isA(Env env,
java.lang.String name)
Returns true for an implementation of a class
|
boolean |
isCallable(Env env,
boolean isCheckSyntaxOnly,
Value nameRef)
The object is callable if it has an __invoke method
|
boolean |
isEmpty(Env env,
Value key)
Return true if empty.
|
boolean |
isIncompleteObject() |
boolean |
isInternal(Env env)
Returns true if this callback is implemented internally (i.e.
|
boolean |
isObject()
Returns true for an object.
|
boolean |
isReturnsReference(Env env)
Returns true if this returns a reference.
|
boolean |
isset(Value key)
Return true if set
|
boolean |
isValid(Env env)
Checks for a valid callback.
|
void |
jsonEncode(Env env,
JsonEncodeContext context,
StringValue sb)
Encodes the value in JSON.
|
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,
java.lang.String key,
long value)
Adds a new value.
|
Value |
putField(Env env,
java.lang.String key,
java.lang.String value)
Adds a new value.
|
Value |
putField(Env env,
java.lang.String key,
Value value)
Adds a new value.
|
Value |
putField(java.lang.String key,
double value)
Adds a new value.
|
Value |
putField(java.lang.String key,
long value)
Adds a new value.
|
Value |
putField(java.lang.String key,
java.lang.String value)
Adds a new value.
|
Value |
remove(Value key)
Unsets the array value
|
void |
setClassName(java.lang.String className) |
void |
setIncompleteObjectName(java.lang.String name)
Sets the name of uninitialized object.
|
void |
setQuercusClass(QuercusClass cl) |
Value |
setStaticFieldRef(Env env,
StringValue name,
Value value)
Sets the static field.
|
Value |
toAutoArray()
Converts to an array if null.
|
boolean |
toBoolean()
Converts to a boolean.
|
Callable |
toCallable(Env env,
boolean isOptional)
Converts to a callable
|
double |
toDouble()
Converts to a double.
|
java.lang.Enum |
toJavaEnum(Env env,
java.lang.Class cls)
Converts to a Java Enum.
|
long |
toLong()
Converts to a long.
|
void |
varDumpObject(Env env,
WriteStream out,
int depth,
java.util.IdentityHashMap<Value,java.lang.String> valueSet) |
callArray, callArray, callArray, toString
abs, add, add, addOne, 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, clone, cmp, containsKey, copy, copy, copy, copyArrayItem, copyReturn, copySaveFunArg, copyStringBuilder, copyTree, current, div, div, end, eql, eqValue, generate, geq, get, getArg, getArgTail, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getKeyArray, getObject, getObject, getRef, getResourceType, getSize, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, getValueType, getVar, gt, hasCurrent, hashCode, increment, initField, initField, isA, isArray, isBinary, isBoolean, isDefault, isDouble, isDoubleConvertible, isEmpty, isFieldExists, 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, print, printDepth, printJavaChar, printJavaString, printR, printRImpl, put, putArray, putField, putField, putObject, putThisField, putThisField, putThisFieldArray, putVar, reset, rshift, serialize, serialize, set, setCharValueAt, setFieldInit, setJavaObject, shuffle, sub_rev, sub, sub, subOne, toArgRef, toArray, 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, toJavaObject, toJavaObjectMarshalCost, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toKey, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLong, toLong, toLong, toLong, toLongMarshalCost, toLongValue, toObject, toRef, toRefValue, toShortMarshalCost, toString, toStringBuilder, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, unsetThisPrivateField, valuesToArray, varDump, varDumpImpl, varExport, varExportImpl
protected transient QuercusClass _quercusClass
protected java.lang.String _className
protected java.lang.String _incompleteObjectName
protected ObjectValue(Env env)
protected ObjectValue(Env env, QuercusClass quercusClass)
public void setQuercusClass(QuercusClass cl)
public QuercusClass getQuercusClass()
Value
getQuercusClass
in class Value
public QuercusClass findQuercusClass(Env env)
Value
findQuercusClass
in class Value
public AbstractFunction getMethod(StringValue name)
public boolean isIncompleteObject()
public java.lang.String getIncompleteObjectName()
public void setIncompleteObjectName(java.lang.String name)
public void initObject(Env env, QuercusClass cls)
public final void cleanup(Env env)
public java.lang.String getClassName()
getClassName
in class Value
public void setClassName(java.lang.String className)
public abstract java.util.Set<? extends java.util.Map.Entry<Value,Value>> entrySet()
public java.lang.String getName()
public java.lang.String getParentClassName()
public StringValue getObjectHash(Env env)
getObjectHash
in class Value
public boolean isCallable(Env env, boolean isCheckSyntaxOnly, Value nameRef)
isCallable
in class Value
public Callable toCallable(Env env, boolean isOptional)
Value
toCallable
in class Callback
public boolean isValid(Env env)
Callable
public java.lang.String getCallbackName()
Callback
getCallbackName
in interface Callable
getCallbackName
in class Callback
public java.lang.String getDeclFileName(Env env)
Callable
public int getDeclStartLine(Env env)
Callable
public int getDeclEndLine(Env env)
Callable
public java.lang.String getDeclComment(Env env)
Callable
public boolean isReturnsReference(Env env)
Callable
public Arg[] getArgs(Env env)
Callable
public boolean isInternal(Env env)
Callback
isInternal
in class Callback
public boolean isA(Env env, java.lang.String name)
public java.lang.Enum toJavaEnum(Env env, java.lang.Class cls)
toJavaEnum
in class Value
public Value toAutoArray()
Value
toAutoArray
in class Value
public StringValue appendTo(UnicodeBuilderValue sb)
public StringValue appendTo(StringBuilderValue sb)
public StringValue appendTo(BinaryBuilderValue sb)
public StringValue appendTo(LargeStringBuilderValue sb)
public Value append(Value index, Value value)
public java.util.Iterator<java.util.Map.Entry<Value,Value>> getIterator(Env env)
getIterator
in class Value
public java.util.Iterator<Value> getKeyIterator(Env env)
getKeyIterator
in class Value
public java.util.Iterator<Value> getValueIterator(Env env)
getValueIterator
in class Value
public int getCount(Env env)
public Value putField(java.lang.String key, java.lang.String value)
public Value putField(Env env, java.lang.String key, java.lang.String value)
public Value putField(java.lang.String key, long value)
public void initField(Env env, StringValue name, StringValue canonicalName, Value value)
public void initIncompleteField(Env env, StringValue name, Value value, FieldVisibility visibility)
initIncompleteField
in class Value
public Value putField(java.lang.String key, double value)
public Value getStaticFieldValue(Env env, StringValue name)
getStaticFieldValue
in class Value
public Var getStaticFieldVar(Env env, StringValue name)
getStaticFieldVar
in class Value
public Value setStaticFieldRef(Env env, StringValue name, Value value)
setStaticFieldRef
in class Value
public int cmpObject(ObjectValue rValue)
public final AbstractFunction findFunction(StringValue methodName)
findFunction
in class Value
public void varDumpObject(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet) throws java.io.IOException
java.io.IOException
public void jsonEncode(Env env, JsonEncodeContext context, StringValue sb)
jsonEncode
in class Value