com.caucho.quercus.env
Class ArgValue

java.lang.Object
  extended by com.caucho.quercus.env.Value
      extended by com.caucho.quercus.env.ArgValue
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ArgGetFieldValue, ArgGetValue

public abstract class ArgValue
extends Value

Represents an array-get argument which might be a call to a reference. foo($a[0]), where is not known if foo is defined as foo($a) or foo(&$a)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.quercus.env.Value
L, NULL_ARGS, NULL_VALUE_ARRAY
 
Constructor Summary
ArgValue()
           
 
Method Summary
protected  void printRImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet)
           
 Value toArray()
          Converts to an array.
 ArrayValue toArrayValue(Env env)
          Casts to an array.
 Value toAutoObject(Env env)
          Converts to an object if null.
 boolean toBoolean()
          Converts to a boolean.
 char toChar()
          Converts to a char
 double toDouble()
          Converts to a double.
 java.io.InputStream toInputStream()
          Returns a byteArrayInputStream for the value.
 java.lang.Object toJavaObject()
          Converts to a java object.
 java.lang.String toJavaString()
          Converts to a java String object.
 long toLong()
          Converts to a long.
 StringValue toStringValue()
          Converts to a StringValue.
 StringValue toStringValue(Env env)
          Converts to a StringValue.
 Value toValue()
          Converts to a raw value.
protected  void varDumpImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet)
           
 
Methods inherited from class com.caucho.quercus.env.Value
abs, add, add, addOne, append, appendTo, appendTo, appendTo, appendTo, bitAnd, bitOr, bitXor, call, 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, eq, eql, eqValue, findFunction, generate, geq, get, get, getArg, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getClassName, getCount, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getIterator, getKeyArray, getKeyIterator, getObject, getObject, getQuercusClass, getRef, getResourceType, getSize, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getType, getValueArray, getValueIterator, getValueType, getVar, gt, hasCurrent, hashCode, increment, initField, isA, isA, isArray, isBinary, isBoolean, isCallable, isDefault, isDouble, isDoubleConvertible, isEmpty, isFieldExists, isFieldInit, isLong, isLongConvertible, isNull, isNumberConvertible, isNumeric, isObject, isResource, isset, isset, issetField, issetThisField, isString, isUnicode, isVar, jsonEncode, 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, put, put, put, putArray, putField, putField, putField, putObject, putThisField, putThisField, putThisFieldArray, putVar, remove, reset, rshift, serialize, serialize, set, setCharValueAt, setFieldInit, setJavaObject, shuffle, sub_rev, sub, sub, subOne, toArgRef, toAutoArray, toBigDecimal, toBigInteger, toBinaryValue, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toBooleanMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toCallable, toCharArrayMarshalCost, toCharMarshalCost, toDebugString, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, 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, toLongMarshalCost, toLongValue, toObject, toRef, toRefValue, toShortMarshalCost, toString, toStringBuilder, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, valuesToArray, varDump, varExport, varExportImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgValue

public ArgValue()
Method Detail

toValue

public Value toValue()
Description copied from class: Value
Converts to a raw value.

Overrides:
toValue in class Value

toArrayValue

public ArrayValue toArrayValue(Env env)
Description copied from class: Value
Casts to an array.

Overrides:
toArrayValue in class Value

toStringValue

public StringValue toStringValue()
Description copied from class: Value
Converts to a StringValue.

Overrides:
toStringValue in class Value

toStringValue

public StringValue toStringValue(Env env)
Description copied from class: Value
Converts to a StringValue.

Overrides:
toStringValue in class Value

toChar

public char toChar()
Description copied from class: Value
Converts to a char

Overrides:
toChar in class Value

toJavaString

public java.lang.String toJavaString()
Description copied from class: Value
Converts to a java String object.

Overrides:
toJavaString in class Value

toJavaObject

public java.lang.Object toJavaObject()
Description copied from class: Value
Converts to a java object.

Overrides:
toJavaObject in class Value

toBoolean

public boolean toBoolean()
Description copied from class: Value
Converts to a boolean.

Overrides:
toBoolean in class Value

toDouble

public double toDouble()
Description copied from class: Value
Converts to a double.

Overrides:
toDouble in class Value

toLong

public long toLong()
Description copied from class: Value
Converts to a long.

Overrides:
toLong in class Value

toArray

public Value toArray()
Description copied from class: Value
Converts to an array.

Overrides:
toArray in class Value

toAutoObject

public Value toAutoObject(Env env)
Description copied from class: Value
Converts to an object if null.

Overrides:
toAutoObject in class Value

toInputStream

public java.io.InputStream toInputStream()
Description copied from class: Value
Returns a byteArrayInputStream for the value. See TempBufferStringValue for how this can be overriden

Overrides:
toInputStream in class Value
Returns:
InputStream

varDumpImpl

protected void varDumpImpl(Env env,
                           WriteStream out,
                           int depth,
                           java.util.IdentityHashMap<Value,java.lang.String> valueSet)
                    throws java.io.IOException
Overrides:
varDumpImpl in class Value
Throws:
java.io.IOException

printRImpl

protected void printRImpl(Env env,
                          WriteStream out,
                          int depth,
                          java.util.IdentityHashMap<Value,java.lang.String> valueSet)
                   throws java.io.IOException
Overrides:
printRImpl in class Value
Throws:
java.io.IOException