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, varExportImplpublic ArgRef(Var var)
public boolean hasCurrent()
ValuehasCurrent in class Valuepublic boolean isA(Env env, java.lang.String name)
public boolean isLongConvertible()
isLongConvertible in class Valuepublic boolean isDoubleConvertible()
isDoubleConvertible in class Valuepublic boolean isNumberConvertible()
isNumberConvertible in class Valuepublic boolean isDouble()
public ArrayValue toArrayValue(Env env)
ValuetoArrayValue in class Valuepublic StringValue toString(Env env)
public java.lang.Object toJavaObject()
toJavaObject in class Valuepublic Value toLocalValueReadOnly()
toLocalValueReadOnly in class Valuepublic Value toLocalValue()
toLocalValue in class Valuepublic Value toLocalRef()
toLocalRef in class Valuepublic Var toLocalVar()
toLocalVar in class Valuepublic Value toRefValue()
toRefValue in class Valuepublic Var toLocalVarDeclAsRef()
toLocalVarDeclAsRef in class Valuepublic StringValue toStringValue()
ValuetoStringValue in class Valuepublic StringValue toBinaryValue(Env env)
ValuetoBinaryValue in class Valuepublic StringValue toUnicodeValue(Env env)
ValuetoUnicodeValue in class Valuepublic StringValue toStringBuilder()
ValuetoStringBuilder in class Valuepublic StringValue toStringBuilder(Env env)
ValuetoStringBuilder in class Valuepublic java.io.InputStream toInputStream()
ValuetoInputStream in class Valuepublic Value append(Value index, Value value)
Valuepublic Value containsKey(Value key)
ValuecontainsKey in class Valuekey - to search for in the arraypublic Value copyArrayItem()
ValuecopyArrayItem in class Valuepublic Value getArray()
Valuepublic Value getArray(Value index)
Valuepublic int getCount(Env env)
Valuepublic Value[] getKeyArray(Env env)
ValuegetKeyArray in class Valuepublic ArrayValue toArray()
Valuepublic Value toAutoArray()
ValuetoAutoArray in class Valuepublic 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)
ValuegetIterator in class Valuepublic java.util.Iterator<Value> getKeyIterator(Env env)
ValueValue.getIterator(Env); derived classes may override and
provide a more efficient implementation.getKeyIterator in class Valuepublic java.util.Iterator<Value> getValueIterator(Env env)
ValueValue.getIterator(Env); derived classes may override and
provide a more efficient implementation.getValueIterator in class Valuepublic Value callMethod(Env env, StringValue methodName, int hash, Value[] args)
callMethod in class Valuepublic Value callMethod(Env env, StringValue methodName, int hash)
callMethod in class Valuepublic Value callMethod(Env env, StringValue methodName, int hash, Value a1)
callMethod in class Valuepublic Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2)
callMethod in class Valuepublic Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3)
callMethod in class Valuepublic Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4)
callMethod in class Valuepublic Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4, Value a5)
callMethod in class Valuepublic Value callMethodRef(Env env, StringValue methodName, int hash, Value[] args)
callMethodRef in class Valuepublic Value callMethodRef(Env env, StringValue methodName, int hash)
callMethodRef in class Valuepublic Value callMethodRef(Env env, StringValue methodName, int hash, Value a1)
callMethodRef in class Valuepublic Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2)
callMethodRef in class Valuepublic Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3)
callMethodRef in class Valuepublic Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4)
callMethodRef in class Valuepublic Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4, Value a5)
callMethodRef in class Valuepublic void serialize(Env env, java.lang.StringBuilder sb)
public void serialize(Env env, java.lang.StringBuilder sb, SerializeMap serializeMap)
Valuepublic 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 Valuejava.io.IOExceptionprotected void printRImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet) throws java.io.IOException
printRImpl in class Valuejava.io.IOExceptionpublic java.lang.Object writeReplace()