com.caucho.quercus.env
Class DefaultValue

java.lang.Object
  extended by com.caucho.quercus.env.Value
      extended by com.caucho.quercus.env.NullValue
          extended by com.caucho.quercus.env.DefaultValue
All Implemented Interfaces:
java.io.Serializable

public class DefaultValue
extends NullValue

Represents a PHP default value.

See Also:
Serialized Form

Field Summary
static DefaultValue DEFAULT
           
 
Fields inherited from class com.caucho.quercus.env.NullValue
NULL
 
Fields inherited from class com.caucho.quercus.env.Value
L, NULL_ARGS, NULL_VALUE_ARRAY, SCALAR_V
 
Method Summary
static DefaultValue create()
          Returns the null value singleton.
 void generate(java.io.PrintWriter out)
          Generates code to recreate the expression.
 void generateLong(java.io.PrintWriter out)
          Generates code to recreate the expression.
 void generateString(java.io.PrintWriter out)
          Generates code to recreate the expression.
 boolean isDefault()
          Returns true for a DefaultValue
 void print(Env env)
          Prints the value.
 boolean toBoolean()
          Converts to a boolean.
 Callable toCallable(Env env)
          Converts to a callable
 double toDouble()
          Converts to a double.
 long toLong()
          Converts to a long.
 java.lang.Object toObject()
          Converts to an object.
 java.lang.String toString()
          Converts to a string.
 
Methods inherited from class com.caucho.quercus.env.NullValue
add, append, appendTo, appendTo, appendTo, appendTo, cmp, eq, eql, getArray, getCount, getObject, getSize, getType, getValueType, hashCode, isEmpty, isNull, isset, jsonEncode, serialize, sub, toArgRef, toArray, toArrayValue, toAutoArray, toAutoObject, toBigDecimal, toBigInteger, toBooleanMarshalCost, toByteMarshalCost, toDebugString, toDoubleMarshalCost, toIntegerMarshalCost, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObject, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toKey, toLongMarshalCost, toObject, toShortMarshalCost, toStringBuilder, toStringValue, valuesToArray, varDumpImpl, varExport
 
Methods inherited from class com.caucho.quercus.env.Value
abs, add, addOne, 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, containsKey, copy, copy, copy, copyArrayItem, copyReturn, copySaveFunArg, copyStringBuilder, copyTree, current, div, div, end, eqValue, findFunction, geq, get, getArg, getArray, getBaseIterator, getCallableName, getCalledClass, getClassName, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getIterator, getKeyArray, getKeyIterator, getObject, getQuercusClass, getRef, getResourceType, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, getValueIterator, getVar, gt, hasCurrent, increment, initField, isA, isA, isArray, isBinary, isBoolean, isCallable, isDouble, isDoubleConvertible, isFieldInit, isLong, isLongConvertible, isNumberConvertible, isNumeric, isObject, 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, printDepth, printJavaChar, printJavaString, printR, printRImpl, put, put, put, putField, putField, putField, putObject, putThisField, putThisField, putVar, remove, reset, rshift, serialize, set, setCharValueAt, setFieldInit, setJavaObject, shuffle, sub_rev, sub, subOne, toBinaryValue, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toByteArrayMarshalCost, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInputStream, toInt, toInternString, toJavaObjectMarshalCost, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLongValue, toRef, toRefValue, toString, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, varDump
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final DefaultValue DEFAULT
Method Detail

create

public static DefaultValue create()
Returns the null value singleton.


isDefault

public boolean isDefault()
Returns true for a DefaultValue

Overrides:
isDefault in class Value

toBoolean

public boolean toBoolean()
Converts to a boolean.

Overrides:
toBoolean in class NullValue

toLong

public long toLong()
Converts to a long.

Overrides:
toLong in class NullValue

toDouble

public double toDouble()
Converts to a double.

Overrides:
toDouble in class NullValue

toObject

public java.lang.Object toObject()
Converts to an object.


toCallable

public Callable toCallable(Env env)
Converts to a callable

Overrides:
toCallable in class Value

print

public void print(Env env)
Prints the value.

Overrides:
print in class NullValue
Parameters:
env -

toString

public java.lang.String toString()
Converts to a string.

Overrides:
toString in class NullValue
Parameters:
env -

generate

public void generate(java.io.PrintWriter out)
              throws java.io.IOException
Generates code to recreate the expression.

Overrides:
generate in class NullValue
Parameters:
out - the writer to the Java source code.
Throws:
java.io.IOException

generateLong

public void generateLong(java.io.PrintWriter out)
                  throws java.io.IOException
Generates code to recreate the expression.

Parameters:
out - the writer to the Java source code.
Throws:
java.io.IOException

generateString

public void generateString(java.io.PrintWriter out)
                    throws java.io.IOException
Generates code to recreate the expression.

Parameters:
out - the writer to the Java source code.
Throws:
java.io.IOException