public class ArgRef 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 |
append(Value index,
Value value)
Sets the array value, returning the new array, e.g.
|
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 |
containsKey(Value key)
Returns the corresponding value if this array contains the given key
|
Value |
copy()
Copy the value.
|
Value |
copyArrayItem()
Copy as an array item
|
Value |
current()
Returns the current value
|
Value |
div(Value rValue)
Divides the following value.
|
boolean |
eql(Value rValue)
Returns true for equality
|
Value |
get(Value index)
Returns the array ref.
|
Value |
getArray()
Returns the value for a field, creating an array if the field
is unset.
|
Value |
getArray(Value index)
Returns the value for a field, creating an array if the field
is unset.
|
int |
getCount(Env env)
Returns the count, as returned by the global php count() function
|
java.util.Iterator<java.util.Map.Entry<Value,Value>> |
getIterator(Env env)
Returns an iterator for the key => value pairs.
|
Value[] |
getKeyArray(Env env)
Returns the field keys.
|
java.util.Iterator<Value> |
getKeyIterator(Env env)
Returns an iterator for the field keys.
|
int |
getSize()
Returns the array/object size
|
java.util.Iterator<Value> |
getValueIterator(Env env)
Returns an iterator for the field values.
|
Var |
getVar(Value index)
Returns the array ref.
|
boolean |
hasCurrent()
Returns true if there are more elements.
|
Value |
increment(int incr)
Increment the following value.
|
boolean |
isA(Env env,
java.lang.String name)
Returns true for an implementation of a class
|
boolean |
isArray()
Returns true for an array.
|
boolean |
isDouble()
Returns true for a long-value.
|
boolean |
isDoubleConvertible()
True to a double.
|
boolean |
isLong()
Returns true for a long-value.
|
boolean |
isLongConvertible()
True for a long
|
boolean |
isNumberConvertible()
True for a number
|
boolean |
isObject()
Returns true for an object.
|
Value |
key()
Returns the current key
|
Value |
lshift(Value rValue)
Shifts left by the value.
|
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 next value
|
Value |
postincr(int incr)
Post-increment the following value.
|
Value |
preincr(int incr)
Pre-increment the following value.
|
void |
print(Env env)
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 |
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 |
sub(long rValue)
Subtracts to the following value.
|
Value |
sub(Value rValue)
Subtracts to the following value.
|
ArrayValue |
toArray()
Converts to an array.
|
ArrayValue |
toArrayValue(Env env)
Casts to an array.
|
Value |
toAutoArray()
Converts to an array if null.
|
StringValue |
toBinaryValue(Env env)
Converts to a BinaryValue.
|
boolean |
toBoolean()
Converts to a boolean.
|
double |
toDouble()
Converts to a double.
|
java.io.InputStream |
toInputStream()
Returns a byteArrayInputStream for the value.
|
java.lang.Object |
toJavaObject()
Converts to an object.
|
Value |
toLocalRef()
Converts to an argument value.
|
Value |
toLocalValue()
Converts to an argument value.
|
Value |
toLocalValueReadOnly()
Converts to an argument value.
|
Var |
toLocalVar()
Converts to an argument value.
|
Var |
toLocalVarDeclAsRef()
Converts to a reference variable
|
long |
toLong()
Converts to a long.
|
Value |
toObject(Env env)
Converts to an object.
|
Value |
toRefValue()
Converts to an argument value.
|
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 |
toStringValue()
Converts to a StringValue.
|
StringValue |
toUnicodeValue(Env env)
Converts to a UnicodeValue for marshaling, so it will create a
UnicodeValue event when unicode.semantics=false.
|
Value |
toValue()
Converts to a raw value.
|
Var |
toVar()
Converts to a variable
|
void |
varDumpImpl(Env env,
WriteStream out,
int depth,
java.util.IdentityHashMap<Value,java.lang.String> valueSet) |
java.lang.Object |
writeReplace() |
addOne, appendTo, appendTo, appendTo, appendTo, bitAnd, bitOr, bitXor, call, 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, clone, cmp, copy, copy, copyReturn, copySaveFunArg, copyStringBuilder, copyTree, div, end, eq, eqValue, findFunction, findQuercusClass, generate, geq, get, getArg, getArgTail, getBaseIterator, getCallableName, getCalledClass, getClassName, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getObject, getObject, getObjectHash, getQuercusClass, getRef, getResourceType, getStaticFieldValue, getStaticFieldVar, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getType, getValueArray, getValueType, gt, hashCode, initField, initField, initField, initIncompleteField, isA, isBinary, isBoolean, isCallable, isDefault, isEmpty, isEmpty, isFieldExists, isFieldInit, isNull, isNumeric, isResource, isset, isset, issetField, issetThisField, isString, isUnicode, isVar, jsonEncode, keyExists, length, leq, lt, mod, nextIndex, pop, pos, postdecr, postincr, predecr, preincr, prev, print, printDepth, printJavaChar, printJavaString, printR, put, putArray, putField, putField, putField, putObject, putThisField, putThisField, putThisFieldArray, putVar, remove, reset, set, setCharValueAt, setFieldInit, setJavaObject, setStaticFieldRef, shuffle, sub_rev, subOne, toArgRef, toAutoObject, toBigDecimal, toBigInteger, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toBooleanMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toCallable, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDebugString, toDouble, toDouble, toDouble, toDouble, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInt, toIntegerMarshalCost, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaEnum, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObjectMarshalCost, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toKey, toLocalThis, toLong, toLong, toLong, toLong, toLongMarshalCost, toLongValue, toRef, toShortMarshalCost, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValueMarshalCost, unsetArray, unsetField, unsetThisArray, unsetThisField, unsetThisPrivateField, valuesToArray, varDump, varExport, varExportImpl
public ArgRef(Var var)
public boolean hasCurrent()
Value
hasCurrent
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 ArrayValue toArrayValue(Env env)
Value
toArrayValue
in class Value
public StringValue toString(Env env)
public java.lang.Object toJavaObject()
toJavaObject
in class Value
public Value toLocalValueReadOnly()
toLocalValueReadOnly
in class Value
public Value toLocalValue()
toLocalValue
in class Value
public Value toLocalRef()
toLocalRef
in class Value
public Var toLocalVar()
toLocalVar
in class Value
public Value toRefValue()
toRefValue
in class Value
public Var toLocalVarDeclAsRef()
toLocalVarDeclAsRef
in class Value
public StringValue toStringValue()
Value
toStringValue
in class Value
public StringValue toBinaryValue(Env env)
Value
toBinaryValue
in class 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 java.io.InputStream toInputStream()
Value
toInputStream
in class Value
public Value append(Value index, Value value)
Value
public Value containsKey(Value key)
Value
containsKey
in class Value
key
- to search for in the arraypublic Value copyArrayItem()
Value
copyArrayItem
in class Value
public Value getArray()
Value
public Value getArray(Value index)
Value
public int getCount(Env env)
Value
public Value[] getKeyArray(Env env)
Value
getKeyArray
in class Value
public ArrayValue toArray()
Value
public Value toAutoArray()
Value
toAutoArray
in class Value
public Value preincr(int incr)
public Value postincr(int incr)
public Value increment(int incr)
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 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 void serialize(Env env, java.lang.StringBuilder sb)
public void serialize(Env env, java.lang.StringBuilder sb, SerializeMap serializeMap)
Value
public void print(Env env)
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()