com.caucho.quercus.marshal
Class NullAsFalseMarshal

java.lang.Object
  extended by com.caucho.quercus.marshal.Marshal
      extended by com.caucho.quercus.marshal.NullAsFalseMarshal
Direct Known Subclasses:
ProNullAsFalseMarshal

public class NullAsFalseMarshal
extends Marshal


Field Summary
protected  Marshal _marshal
           
 
Fields inherited from class com.caucho.quercus.marshal.Marshal
BINARY_BINARY_VALUE_COST, BINARY_BYTE_ARRAY_COST, BINARY_BYTE_OBJECT_ARRAY_COST, BINARY_CHARACTER_ARRAY_COST, BINARY_CHARACTER_OBJECT_ARRAY_COST, BINARY_STRING_COST, BINARY_STRING_VALUE_COST, COST_BINARY_TO_BYTE, COST_BINARY_TO_STRING, COST_EQUAL, COST_FROM_NULL, COST_IDENTICAL, COST_INCOMPATIBLE, COST_NUMERIC_LOSSLESS, COST_NUMERIC_LOSSY, COST_STRING_TO_BINARY, COST_STRING_TO_BYTE, COST_STRING_TO_CHAR, COST_STRING_TO_CHAR_ARRAY, COST_TO_BOOLEAN, COST_TO_BYTE_ARRAY, COST_TO_CHAR, COST_TO_CHAR_ARRAY, COST_TO_JAVA_OBJECT, COST_TO_STRING, COST_VALUE, DOUBLE_CONVERTIBLE_BYTE_COST, DOUBLE_CONVERTIBLE_BYTE_OBJECT_COST, DOUBLE_CONVERTIBLE_DOUBLE_COST, DOUBLE_CONVERTIBLE_DOUBLE_OBJECT_COST, DOUBLE_CONVERTIBLE_DOUBLE_VALUE_COST, DOUBLE_CONVERTIBLE_FLOAT_COST, DOUBLE_CONVERTIBLE_FLOAT_OBJECT_COST, DOUBLE_CONVERTIBLE_INTEGER_COST, DOUBLE_CONVERTIBLE_INTEGER_OBJECT_COST, DOUBLE_CONVERTIBLE_LONG_COST, DOUBLE_CONVERTIBLE_LONG_OBJECT_COST, DOUBLE_CONVERTIBLE_LONG_VALUE_COST, FOUR, L, LONG_CONVERTIBLE_BYTE_COST, LONG_CONVERTIBLE_BYTE_OBJECT_COST, LONG_CONVERTIBLE_DOUBLE_COST, LONG_CONVERTIBLE_DOUBLE_OBJECT_COST, LONG_CONVERTIBLE_DOUBLE_VALUE_COST, LONG_CONVERTIBLE_FLOAT_COST, LONG_CONVERTIBLE_FLOAT_OBJECT_COST, LONG_CONVERTIBLE_INTEGER_COST, LONG_CONVERTIBLE_INTEGER_OBJECT_COST, LONG_CONVERTIBLE_LONG_COST, LONG_CONVERTIBLE_LONG_OBJECT_COST, LONG_CONVERTIBLE_LONG_VALUE_COST, MAX, ONE, PHP5_BINARY_VALUE_COST, PHP5_BYTE_ARRAY_COST, PHP5_BYTE_OBJECT_ARRAY_COST, PHP5_CHARACTER_ARRAY_COST, PHP5_CHARACTER_OBJECT_ARRAY_COST, PHP5_STRING_COST, PHP5_STRING_VALUE_COST, THREE, TWO, UNICODE_BINARY_VALUE_COST, UNICODE_BYTE_ARRAY_COST, UNICODE_BYTE_OBJECT_ARRAY_COST, UNICODE_CHARACTER_ARRAY_COST, UNICODE_CHARACTER_OBJECT_ARRAY_COST, UNICODE_STRING_COST, UNICODE_STRING_VALUE_COST, ZERO
 
Constructor Summary
NullAsFalseMarshal(Marshal marshal)
           
 
Method Summary
 boolean isBoolean()
          Returns true if the result is a primitive boolean.
 boolean isDouble()
          Returns true if the result is a double.
 boolean isLong()
          Returns true if the result is a long.
 boolean isReadOnly()
          Return true for read-only.
 boolean isReference()
          Return true for a reference
 boolean isString()
          Returns true if the result is a string.
 java.lang.Object marshal(Env env, Expr expr, java.lang.Class argClass)
           
 java.lang.Object marshal(Env env, Value value, java.lang.Class argClass)
           
 java.lang.String toString()
           
 Value unmarshal(Env env, java.lang.Object value)
           
 
Methods inherited from class com.caucho.quercus.marshal.Marshal
getExpectedClass, getMarshalingCost, getMarshalingCost, getMarshalingCostImpl, isValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_marshal

protected Marshal _marshal
Constructor Detail

NullAsFalseMarshal

public NullAsFalseMarshal(Marshal marshal)
Method Detail

isBoolean

public boolean isBoolean()
Description copied from class: Marshal
Returns true if the result is a primitive boolean.

Overrides:
isBoolean in class Marshal

isString

public boolean isString()
Description copied from class: Marshal
Returns true if the result is a string.

Overrides:
isString in class Marshal

isLong

public boolean isLong()
Description copied from class: Marshal
Returns true if the result is a long.

Overrides:
isLong in class Marshal

isDouble

public boolean isDouble()
Description copied from class: Marshal
Returns true if the result is a double.

Overrides:
isDouble in class Marshal

isReadOnly

public boolean isReadOnly()
Description copied from class: Marshal
Return true for read-only.

Overrides:
isReadOnly in class Marshal

isReference

public boolean isReference()
Description copied from class: Marshal
Return true for a reference

Overrides:
isReference in class Marshal

marshal

public java.lang.Object marshal(Env env,
                                Expr expr,
                                java.lang.Class argClass)
Specified by:
marshal in class Marshal

marshal

public java.lang.Object marshal(Env env,
                                Value value,
                                java.lang.Class argClass)
Overrides:
marshal in class Marshal

unmarshal

public Value unmarshal(Env env,
                       java.lang.Object value)
Overrides:
unmarshal in class Marshal

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object