public class Var extends Value implements java.io.Serializable
L, NULL_ARGS, NULL_VALUE_ARRAY
Modifier and Type | Method and Description |
---|---|
Value |
abs()
Absolute value.
|
Value |
add(long rValue)
Adds to the following value.
|
Value |
add(Value rValue)
Adds to the following value.
|
Value |
addOne()
Pre-increment the following value.
|
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 string builder.
|
StringValue |
appendTo(StringBuilderValue sb)
Append to a string builder.
|
StringValue |
appendTo(UnicodeBuilderValue sb)
Append to a unicode builder.
|
Value |
bitAnd(Value rValue)
Binary And.
|
Value |
bitOr(Value rValue)
Binary or.
|
Value |
bitXor(Value rValue)
Binary xor.
|
Value |
call(Env env)
Evaluates the function.
|
Value |
call(Env env,
Value a1)
Evaluates the function with an argument .
|
Value |
call(Env env,
Value[] args)
Evaluates the function.
|
Value |
call(Env env,
Value a1,
Value a2)
Evaluates the function with arguments
|
Value |
call(Env env,
Value a1,
Value a2,
Value a3)
Evaluates the function with arguments
|
Value |
call(Env env,
Value a1,
Value a2,
Value a3,
Value a4)
Evaluates the function with arguments
|
Value |
call(Env env,
Value a1,
Value a2,
Value a3,
Value a4,
Value a5)
Evaluates the function with arguments
|
Value |
callCopy(Env env,
Value[] args)
Evaluates the function, returning a copy
|
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)
Evaluates a method with 3 args.
|
Value |
callMethod(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3,
Value a4)
Evaluates a method with 4 args.
|
Value |
callMethod(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3,
Value a4,
Value a5)
Evaluates a method with 5 args.
|
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 with 3 args.
|
Value |
callMethodRef(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3,
Value a4)
Evaluates a method with 4 args.
|
Value |
callMethodRef(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3,
Value a4,
Value a5)
Evaluates a method with 5 args.
|
Value |
callRef(Env env)
Evaluates the function.
|
Value |
callRef(Env env,
Value a1)
Evaluates the function with an argument .
|
Value |
callRef(Env env,
Value[] args)
Evaluates the function, returning a reference.
|
Value |
callRef(Env env,
Value a1,
Value a2)
Evaluates the function with arguments
|
Value |
callRef(Env env,
Value a1,
Value a2,
Value a3)
Evaluates the function with arguments
|
Value |
callRef(Env env,
Value a1,
Value a2,
Value a3,
Value a4)
Evaluates the function with arguments
|
Value |
callRef(Env env,
Value a1,
Value a2,
Value a3,
Value a4,
Value a5)
Evaluates the function with arguments
|
Value |
charValueAt(long index)
Returns the character at an index
|
Value |
clone(Env env)
Clone for the clone keyword
|
int |
cmp(Value rValue)
Compares the two values
|
Value |
copy()
Copy the value.
|
Value |
copyArrayItem()
Copy the value as an array item.
|
Value |
copyReturn()
Copy the value as a return value.
|
Value |
copyTree(Env env,
CopyRoot root)
Copy for serialization
|
Value |
current()
Returns the current value
|
Value |
div(Value rValue)
Divides the following value.
|
Value |
end()
Returns the end value.
|
boolean |
eq(Value rValue)
Returns true for equality
|
boolean |
eql(Value rValue)
Returns true for equality
|
QuercusClass |
findQuercusClass(Env env)
Returns the Quercus class for this obj/name.
|
boolean |
geq(Value rValue)
Returns true for greater than or equal to
|
Value |
get(Value index)
Returns the array ref.
|
Value |
getArg(Value index,
boolean isTop)
Returns the array ref.
|
Value |
getArray()
Returns the array ref.
|
Value |
getArray(Value index)
Returns the value, creating an object if unset.
|
java.lang.String |
getClassName()
Returns the class name.
|
int |
getCount(Env env)
Returns the count, as returned by the global php count() function
|
int |
getCountRecursive(Env env)
Returns the count, as returned by the global php count() function
|
Value |
getDirty(Value index)
Returns the value, doing a copy-on-write if needed.
|
Value |
getField(Env env,
StringValue name)
Returns the field value.
|
Value |
getFieldArg(Env env,
StringValue name,
boolean isTop)
Returns the array ref.
|
Value |
getFieldArray(Env env,
StringValue name)
Returns the field value as an array
|
Value |
getFieldObject(Env env,
StringValue name)
Returns the field value as an object
|
Var |
getFieldVar(Env env,
StringValue name)
Returns the field 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 field keys.
|
Value |
getObject(Env env)
Returns the value, creating an object if unset.
|
Value |
getObject(Env env,
Value index)
Returns the value, creating an object if unset.
|
StringValue |
getObjectHash(Env env)
Returns the SPL object hash.
|
QuercusClass |
getQuercusClass()
Returns the backing QuercusClass.
|
Value |
getRawValue()
Returns to the value value.
|
Value |
getRef(Value index)
Returns a reference to the array value.
|
java.lang.String |
getResourceType()
Returns the type of the resource.
|
int |
getSize()
Returns the array/object size
|
Value |
getStaticFieldValue(Env env,
StringValue name)
Returns the static field.
|
Var |
getStaticFieldVar(Env env,
StringValue name)
Returns the static field reference.
|
Value |
getThisField(Env env,
StringValue name)
Returns the field value.
|
Value |
getThisFieldArg(Env env,
StringValue name)
Returns the array ref.
|
Value |
getThisFieldArray(Env env,
StringValue name)
Returns the field value as an array
|
Value |
getThisFieldObject(Env env,
StringValue name)
Returns the field value as an object
|
Var |
getThisFieldVar(Env env,
StringValue name)
Returns the field ref.
|
java.lang.String |
getType()
Returns the type.
|
java.util.Iterator<Value> |
getValueIterator(Env env)
Returns an iterator for the field values.
|
ValueType |
getValueType()
Returns the ValueType.
|
Var |
getVar(Value index)
Returns the array ref.
|
boolean |
gt(Value rValue)
Returns true for greater than
|
boolean |
hasCurrent()
Returns true if there are more elements.
|
Value |
increment(int incr)
Increment the following value.
|
void |
initField(Env env,
StringValue name,
StringValue canonicalName,
Value value)
Initializes a new field, does not call __set if it is defined.
|
boolean |
isA(Env env,
java.lang.String name)
Returns true for an implementation of a class
|
boolean |
isArray()
Returns true for an array.
|
boolean |
isBinary()
Returns true for a BinaryValue.
|
boolean |
isBoolean()
Returns true for a BooleanValue
|
boolean |
isDefault()
Returns true for a DefaultValue
|
boolean |
isDouble()
Returns true for a long-value.
|
boolean |
isDoubleConvertible()
True to a double.
|
boolean |
isEmpty()
Returns true if the value is empty
|
boolean |
isEmpty(Env env,
Value index)
Returns true if the value is empty
|
boolean |
isFieldExists(Env env,
StringValue name)
Returns true if the object has this field.
|
boolean |
isLong()
Returns true for a long-value.
|
boolean |
isLongConvertible()
True for a long
|
boolean |
isNull()
True if the object is null
|
boolean |
isNumberConvertible()
True for a number
|
boolean |
isNumeric()
Returns true for is_numeric
|
boolean |
isObject()
Returns true for an object.
|
boolean |
isResource()
Returns true for a resource.
|
boolean |
isset()
Returns true if the value is set
|
boolean |
isset(Value index)
Return true if the array value is set
|
boolean |
issetField(Env env,
StringValue name)
Returns true if the field is set.
|
boolean |
issetThisField(Env env,
StringValue name)
Returns true if the field is set.
|
boolean |
isString()
Returns true for a StringValue.
|
boolean |
isUnicode()
Returns true for a UnicodeValue.
|
boolean |
isVar() |
void |
jsonEncode(Env env,
JsonEncodeContext context,
StringValue sb)
Encodes the value in JSON.
|
Value |
key()
Returns the current key
|
int |
length()
Returns the length as a string.
|
boolean |
leq(Value rValue)
Returns true for less than or equal to
|
Value |
lshift(Value rValue)
Shifts left by the value.
|
boolean |
lt(Value rValue)
Returns true for less than
|
Value |
mul(long lValue)
Multiplies to the following value.
|
Value |
mul(Value rValue)
Multiplies to the following value.
|
Value |
neg()
Negates the value.
|
Value |
next()
Returns the current value
|
Value |
pop(Env env)
Pops the top array element.
|
Value |
postdecr()
Post-increment the following value.
|
Value |
postincr()
Post-increment the following value.
|
Value |
postincr(int incr)
Post-increment the following value.
|
Value |
predecr()
Pre-increment the following value.
|
Value |
preincr()
Pre-increment the following value.
|
Value |
preincr(int incr)
Pre-increment the following value.
|
Value |
prev()
Returns the previous value
|
void |
print(Env env)
Prints the value.
|
void |
print(Env env,
WriteStream out)
Prints the value.
|
protected void |
printRImpl(Env env,
WriteStream out,
int depth,
java.util.IdentityHashMap<Value,java.lang.String> valueSet) |
Value |
put(Value value)
Returns the array ref.
|
Value |
put(Value index,
Value value)
Returns the array ref.
|
Value |
putField(Env env,
StringValue name,
Value value)
Sets the field.
|
Value |
putThisField(Env env,
StringValue name,
Value value)
Sets the field.
|
Value |
putThisFieldArray(Env env,
Value obj,
StringValue fieldName,
Value index,
Value value)
Appends a value to an array that is a field of an object.
|
Var |
putVar()
Returns the array ref.
|
Value |
remove(Value index)
Return unset the value.
|
Value |
reset()
Returns the array pointer.
|
Value |
rshift(Value rValue)
Shifts right by the value.
|
void |
serialize(Env env,
java.lang.StringBuilder sb)
Serializes the value.
|
void |
serialize(Env env,
java.lang.StringBuilder sb,
SerializeMap serializeMap)
Serializes the value.
|
Value |
set(Value value)
Sets the value.
|
Value |
setCharValueAt(long index,
Value value)
Sets the character at an index
|
protected Value |
setRaw(Value value)
Sets the value.
|
Var |
setRef(Value value)
Sets the value, possibly replacing if a var and returning the resulting var
$a =& (...).
|
Value |
setStaticFieldRef(Env env,
StringValue name,
Value value)
Sets the static field.
|
Value |
shuffle()
Shuffles the array.
|
Value |
sub(long rValue)
Subtracts to the following value.
|
Value |
sub(Value rValue)
Subtracts to the following value.
|
Value |
subOne()
Pre-increment the following value.
|
Value |
toArgRef()
Converts to a reference variable
|
ArrayValue |
toArray()
Converts to an array
|
ArrayValue |
toArrayValue(Env env)
Converts to an array
|
Value |
toAutoArray()
Converts to an array
|
java.math.BigDecimal |
toBigDecimal()
Converts to a Java BigDecimal.
|
java.math.BigInteger |
toBigInteger()
Converts to a Java BigInteger.
|
StringValue |
toBinaryValue(Env env)
Converts to a BinaryValue.
|
int |
toBinaryValueMarshalCost()
Cost to convert to a binary value
|
boolean |
toBoolean()
Converts to a boolean.
|
int |
toBooleanMarshalCost()
Cost to convert to a boolean
|
int |
toByteArrayMarshalCost()
Cost to convert to a byte[]
|
int |
toByteMarshalCost()
Cost to convert to a byte
|
Callable |
toCallable(Env env,
boolean isOptional)
Converts to a callable
|
int |
toCharArrayMarshalCost()
Cost to convert to a char[]
|
int |
toCharMarshalCost()
Cost to convert to a character
|
double |
toDouble()
Converts to a double.
|
int |
toDoubleMarshalCost()
Cost to convert to a double
|
DoubleValue |
toDoubleValue()
Converts to a double.
|
int |
toFloatMarshalCost()
Cost to convert to a float
|
java.io.InputStream |
toInputStream()
Returns a byteArrayInputStream for the value.
|
int |
toIntegerMarshalCost()
Cost to convert to an integer
|
java.lang.Boolean |
toJavaBoolean()
Converts to a java boolean object.
|
java.lang.Byte |
toJavaByte()
Converts to a java byte object.
|
java.util.Calendar |
toJavaCalendar()
Converts to a Java Calendar.
|
java.lang.Character |
toJavaCharacter()
Converts to a java Character object.
|
java.util.Collection |
toJavaCollection(Env env,
java.lang.Class type)
Converts to a java Collection object.
|
java.util.Date |
toJavaDate()
Converts to a Java Date.
|
java.lang.Double |
toJavaDouble()
Converts to a java Double object.
|
java.lang.Enum |
toJavaEnum(Env env,
java.lang.Class cls)
Converts to a Java Enum.
|
java.lang.Float |
toJavaFloat()
Converts to a java Float object.
|
java.lang.Integer |
toJavaInteger()
Converts to a java Integer object.
|
java.util.List |
toJavaList(Env env,
java.lang.Class type)
Converts to a java List object.
|
java.lang.Long |
toJavaLong()
Converts to a java Long object.
|
java.util.Map |
toJavaMap(Env env,
java.lang.Class type)
Converts to a java map.
|
java.lang.Object |
toJavaObject()
Converts to an object.
|
java.lang.Object |
toJavaObject(Env env,
java.lang.Class type)
Converts to an object.
|
int |
toJavaObjectMarshalCost()
Cost to convert to a Java object
|
java.lang.Object |
toJavaObjectNotNull(Env env,
java.lang.Class type)
Converts to an object.
|
java.lang.Short |
toJavaShort()
Converts to a java short object.
|
java.lang.String |
toJavaString()
Converts to a java String object.
|
java.net.URL |
toJavaURL(Env env)
Converts to a Java URL.
|
Value |
toKey()
Converts to a key.
|
Value |
toLocalRef()
Convert to a function argument value, e.g.
|
Value |
toLocalValue()
Converts to a raw value.
|
Value |
toLocalValueReadOnly()
Converts to a function argument value that is never assigned or modified.
|
Var |
toLocalVar()
Converts to a local argument variable
|
Var |
toLocalVarDeclAsRef()
Converts to a reference variable
|
long |
toLong()
Converts to a long.
|
int |
toLongMarshalCost()
Cost to convert to a long
|
LongValue |
toLongValue()
Converts to a long.
|
Value |
toObject(Env env)
Converts to an object.
|
Value |
toRef()
Converts to a variable reference (for function arguments)
|
Value |
toRefValue()
Converts to a function argument ref value, i.e.
|
int |
toShortMarshalCost()
Cost to convert to a short
|
java.lang.String |
toString() |
StringValue |
toString(Env env)
Converts to a string.
|
StringValue |
toStringBuilder()
Converts to a string builder
|
StringValue |
toStringBuilder(Env env)
Converts to a string builder
|
StringValue |
toStringBuilder(Env env,
StringValue value)
Converts to a string builder
|
StringValue |
toStringBuilder(Env env,
Value value)
Converts to a string builder
|
int |
toStringMarshalCost()
Cost to convert to a string
|
StringValue |
toStringValue()
Converts to a StringValue.
|
StringValue |
toStringValue(Env env)
Converts to a StringValue.
|
int |
toStringValueMarshalCost()
Cost to convert to a StringValue
|
StringValue |
toUnicode(Env env)
Converts to a Unicode string.
|
StringValue |
toUnicodeValue(Env env)
Converts to a UnicodeValue for marshaling, so it will create a
UnicodeValue event when unicode.semantics=false.
|
int |
toUnicodeValueMarshalCost()
Cost to convert to a UnicdeValue
|
Value |
toValue()
Converts to a raw value.
|
Var |
toVar()
Converts to a variable
|
void |
unsetField(StringValue name)
Unsets the field.
|
void |
unsetThisField(StringValue name)
Unsets the field.
|
void |
unsetThisPrivateField(java.lang.String className,
StringValue name)
Unsets the field.
|
java.lang.Object |
valuesToArray(Env env,
java.lang.Class elementType)
Takes the values of this array, unmarshalls them to objects of type
elementType, and puts them in a java array.
|
void |
varDumpImpl(Env env,
WriteStream out,
int depth,
java.util.IdentityHashMap<Value,java.lang.String> valueSet) |
java.lang.Object |
writeReplace() |
callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, checkPrivate, checkProtected, containsKey, copy, copy, copySaveFunArg, copyStringBuilder, div, eqValue, findFunction, generate, get, getArgTail, getBaseIterator, getCallableName, getCalledClass, getFieldArgRef, getHashCode, getKeyArray, getThisFieldArgRef, getValueArray, hashCode, initField, initField, initIncompleteField, isA, isCallable, isFieldInit, keyExists, mod, nextIndex, pos, printDepth, printJavaChar, printJavaString, printR, put, putArray, putField, putField, putObject, putThisField, setFieldInit, setJavaObject, sub_rev, toAutoObject, toBinaryValue, toBinaryValue, toChar, toDebugString, toDouble, toDouble, toDouble, toDouble, toException, toInt, toInternString, toLocalThis, toLong, toLong, toLong, toLong, toUnicodeValue, unsetArray, unsetThisArray, varDump, varExport, varExportImpl
public Var()
public Var(Value value)
public Var setRef(Value value)
public StringValue getObjectHash(Env env)
getObjectHash
in class Value
public java.lang.String getResourceType()
getResourceType
in class Value
public ValueType getValueType()
getValueType
in class Value
public java.lang.String getClassName()
getClassName
in class Value
public QuercusClass getQuercusClass()
Value
getQuercusClass
in class Value
public QuercusClass findQuercusClass(Env env)
Value
findQuercusClass
in class Value
public boolean isResource()
Value
isResource
in class Value
public boolean isA(Env env, java.lang.String name)
public boolean isLongConvertible()
isLongConvertible
in class Value
public boolean isDoubleConvertible()
isDoubleConvertible
in class Value
public boolean isNumberConvertible()
isNumberConvertible
in class Value
public boolean isDouble()
public boolean isNumeric()
public boolean isString()
public boolean isBinary()
public boolean isUnicode()
public boolean isBoolean()
public boolean isDefault()
public boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public LongValue toLongValue()
toLongValue
in class Value
public DoubleValue toDoubleValue()
toDoubleValue
in class Value
public StringValue toString(Env env)
public java.lang.Boolean toJavaBoolean()
toJavaBoolean
in class Value
public java.lang.Byte toJavaByte()
toJavaByte
in class Value
public java.lang.Short toJavaShort()
toJavaShort
in class Value
public java.lang.Integer toJavaInteger()
toJavaInteger
in class Value
public java.lang.Long toJavaLong()
toJavaLong
in class Value
public java.lang.Float toJavaFloat()
toJavaFloat
in class Value
public java.lang.Double toJavaDouble()
toJavaDouble
in class Value
public java.lang.Character toJavaCharacter()
toJavaCharacter
in class Value
public java.lang.String toJavaString()
toJavaString
in class Value
public java.lang.Object toJavaObject()
toJavaObject
in class Value
public java.lang.Object toJavaObject(Env env, java.lang.Class type)
toJavaObject
in class Value
public java.lang.Object toJavaObjectNotNull(Env env, java.lang.Class type)
toJavaObjectNotNull
in class Value
public java.util.Collection toJavaCollection(Env env, java.lang.Class type)
toJavaCollection
in class Value
public java.util.List toJavaList(Env env, java.lang.Class type)
toJavaList
in class Value
public java.util.Map toJavaMap(Env env, java.lang.Class type)
public java.util.Calendar toJavaCalendar()
toJavaCalendar
in class Value
public java.util.Date toJavaDate()
toJavaDate
in class Value
public java.net.URL toJavaURL(Env env)
public java.lang.Enum toJavaEnum(Env env, java.lang.Class cls)
toJavaEnum
in class Value
public java.math.BigDecimal toBigDecimal()
toBigDecimal
in class Value
public java.math.BigInteger toBigInteger()
toBigInteger
in class Value
public ArrayValue toArray()
public ArrayValue toArrayValue(Env env)
toArrayValue
in class Value
public Value toAutoArray()
toAutoArray
in class Value
public int toBooleanMarshalCost()
toBooleanMarshalCost
in class Value
public int toByteMarshalCost()
toByteMarshalCost
in class Value
public int toShortMarshalCost()
toShortMarshalCost
in class Value
public int toIntegerMarshalCost()
toIntegerMarshalCost
in class Value
public int toLongMarshalCost()
toLongMarshalCost
in class Value
public int toDoubleMarshalCost()
toDoubleMarshalCost
in class Value
public int toFloatMarshalCost()
toFloatMarshalCost
in class Value
public int toCharMarshalCost()
toCharMarshalCost
in class Value
public int toStringMarshalCost()
toStringMarshalCost
in class Value
public int toByteArrayMarshalCost()
toByteArrayMarshalCost
in class Value
public int toCharArrayMarshalCost()
toCharArrayMarshalCost
in class Value
public int toJavaObjectMarshalCost()
toJavaObjectMarshalCost
in class Value
public int toBinaryValueMarshalCost()
toBinaryValueMarshalCost
in class Value
public int toStringValueMarshalCost()
toStringValueMarshalCost
in class Value
public int toUnicodeValueMarshalCost()
toUnicodeValueMarshalCost
in class Value
public StringValue appendTo(UnicodeBuilderValue sb)
public StringValue appendTo(BinaryBuilderValue sb)
public StringValue appendTo(StringBuilderValue sb)
public StringValue appendTo(LargeStringBuilderValue sb)
public final Value getRawValue()
public Value toLocalValueReadOnly()
toLocalValueReadOnly
in class Value
public Value toLocalValue()
toLocalValue
in class Value
public Value toLocalRef()
toLocalRef
in class Value
public Value toRefValue()
toRefValue
in class Value
public Var toLocalVar()
toLocalVar
in class Value
public Var toLocalVarDeclAsRef()
toLocalVarDeclAsRef
in class Value
public Value toArgRef()
public StringValue toStringValue()
Value
toStringValue
in class Value
public StringValue toStringValue(Env env)
Value
toStringValue
in class Value
public StringValue toBinaryValue(Env env)
Value
toBinaryValue
in class Value
public StringValue toUnicode(Env env)
Value
public StringValue toUnicodeValue(Env env)
Value
toUnicodeValue
in class Value
public StringValue toStringBuilder()
Value
toStringBuilder
in class Value
public StringValue toStringBuilder(Env env)
Value
toStringBuilder
in class Value
public StringValue toStringBuilder(Env env, Value value)
toStringBuilder
in class Value
public StringValue toStringBuilder(Env env, StringValue value)
toStringBuilder
in class Value
public java.io.InputStream toInputStream()
Value
toInputStream
in class Value
public Callable toCallable(Env env, boolean isOptional)
Value
toCallable
in class Value
public Value copyArrayItem()
copyArrayItem
in class Value
public Value copyReturn()
copyReturn
in class Value
public Value toRef()
public Value preincr(int incr)
public Value postincr(int incr)
public Value postincr()
public Value postdecr()
public Value increment(int incr)
public boolean leq(Value rValue)
public boolean geq(Value rValue)
public int getCount(Env env)
public int getCountRecursive(Env env)
getCountRecursive
in class Value
public java.util.Iterator<java.util.Map.Entry<Value,Value>> getIterator(Env env)
Value
getIterator
in class Value
public java.util.Iterator<Value> getKeyIterator(Env env)
Value
Value.getIterator(Env)
; derived classes may override and
provide a more efficient implementation.getKeyIterator
in class Value
public java.util.Iterator<Value> getValueIterator(Env env)
Value
Value.getIterator(Env)
; derived classes may override and
provide a more efficient implementation.getValueIterator
in class Value
public Value getObject(Env env, Value index)
public Value append(Value index, Value value)
public boolean isset(Value index)
public Value getField(Env env, StringValue name)
public Var getFieldVar(Env env, StringValue name)
getFieldVar
in class Value
public Value getFieldArg(Env env, StringValue name, boolean isTop)
getFieldArg
in class Value
public Value getFieldArray(Env env, StringValue name)
getFieldArray
in class Value
public Value getFieldObject(Env env, StringValue name)
getFieldObject
in class Value
public Value putField(Env env, StringValue name, Value value)
public boolean isFieldExists(Env env, StringValue name)
isFieldExists
in class Value
public boolean issetField(Env env, StringValue name)
issetField
in class Value
public void unsetField(StringValue name)
unsetField
in class Value
public Value getThisField(Env env, StringValue name)
getThisField
in class Value
public Var getThisFieldVar(Env env, StringValue name)
getThisFieldVar
in class Value
public Value getThisFieldArg(Env env, StringValue name)
getThisFieldArg
in class Value
public Value getThisFieldArray(Env env, StringValue name)
getThisFieldArray
in class Value
public Value putThisFieldArray(Env env, Value obj, StringValue fieldName, Value index, Value value)
putThisFieldArray
in class Value
public Value getThisFieldObject(Env env, StringValue name)
getThisFieldObject
in class Value
public void initField(Env env, StringValue name, StringValue canonicalName, Value value)
public Value putThisField(Env env, StringValue name, Value value)
putThisField
in class Value
public boolean issetThisField(Env env, StringValue name)
issetThisField
in class Value
public void unsetThisField(StringValue name)
unsetThisField
in class Value
public void unsetThisPrivateField(java.lang.String className, StringValue name)
unsetThisPrivateField
in class 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 java.lang.Object valuesToArray(Env env, java.lang.Class elementType)
valuesToArray
in class Value
public Value charValueAt(long index)
charValueAt
in class Value
public Value setCharValueAt(long index, Value value)
setCharValueAt
in class Value
public boolean hasCurrent()
hasCurrent
in class Value
public Value callRef(Env env, Value a1, Value a2, Value a3)
public Value call(Env env, Value a1, Value a2, Value a3, Value a4)
public Value callRef(Env env, Value a1, Value a2, Value a3, Value a4)
public Value call(Env env, Value a1, Value a2, Value a3, Value a4, Value a5)
public Value callRef(Env env, Value a1, Value a2, Value a3, Value a4, Value a5)
public Value callMethod(Env env, StringValue methodName, int hash, Value[] args)
callMethod
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value[] args)
callMethodRef
in class Value
public Value callMethod(Env env, StringValue methodName, int hash)
callMethod
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash)
callMethodRef
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a1)
callMethod
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a1)
callMethodRef
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2)
callMethod
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2)
callMethodRef
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3)
callMethod
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3)
callMethodRef
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 callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4)
callMethodRef
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 a1, Value a2, Value a3, Value a4, Value a5)
callMethodRef
in class Value
public void print(Env env)
public void print(Env env, WriteStream out)
public void serialize(Env env, java.lang.StringBuilder sb)
public void serialize(Env env, java.lang.StringBuilder sb, SerializeMap serializeMap)
Value
public void jsonEncode(Env env, JsonEncodeContext context, StringValue sb)
jsonEncode
in class Value
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 java.lang.Object writeReplace()