public abstract class Marshal
extends java.lang.Object
Constructor and Description |
---|
Marshal() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getExpectedClass() |
int |
getMarshalingCost(Expr expr) |
int |
getMarshalingCost(Value value) |
protected int |
getMarshalingCostImpl(Value value) |
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.
|
boolean |
isValue()
Return true if is a Value.
|
abstract java.lang.Object |
marshal(Env env,
Expr expr,
java.lang.Class argClass) |
java.lang.Object |
marshal(Env env,
Value value,
java.lang.Class argClass) |
protected java.lang.Object |
marshalImpl(Env env,
Value value,
java.lang.Class<?> argClass) |
protected void |
unexpectedNull(Env env,
java.lang.Class<?> expected) |
protected void |
unexpectedType(Env env,
Value value,
java.lang.Class<?> actual,
java.lang.Class<?> expected) |
Value |
unmarshal(Env env,
java.lang.Object value) |
protected static final L10N L
public static final int ZERO
public static final int COST_IDENTICAL
public static final int COST_VALUE
public static final int ONE
public static final int COST_EQUAL
public static final int TWO
public static final int COST_NUMERIC_LOSSLESS
public static final int THREE
public static final int COST_NUMERIC_LOSSY
public static final int COST_FROM_NULL
public static final int COST_STRING_TO_CHAR_ARRAY
public static final int COST_TO_JAVA_OBJECT
public static final int COST_STRING_TO_CHAR
public static final int COST_BINARY_TO_BYTE
public static final int COST_STRING_TO_BYTE
public static final int COST_BINARY_TO_STRING
public static final int COST_STRING_TO_BINARY
public static final int COST_TO_STRING
public static final int COST_TO_CHAR_ARRAY
public static final int COST_TO_CHAR
public static final int COST_TO_BOOLEAN
public static final int COST_TO_BYTE_ARRAY
public static final int FOUR
public static final int COST_INCOMPATIBLE
public static final int MAX
public static final int PHP5_STRING_VALUE_COST
public static final int PHP5_BYTE_ARRAY_COST
public static final int PHP5_CHARACTER_ARRAY_COST
public static final int PHP5_STRING_COST
public static final int PHP5_BYTE_OBJECT_ARRAY_COST
public static final int PHP5_CHARACTER_OBJECT_ARRAY_COST
public static final int PHP5_BINARY_VALUE_COST
public static final int UNICODE_STRING_VALUE_COST
public static final int UNICODE_BINARY_VALUE_COST
public static final int UNICODE_CHARACTER_ARRAY_COST
public static final int UNICODE_STRING_COST
public static final int UNICODE_BYTE_ARRAY_COST
public static final int UNICODE_CHARACTER_OBJECT_ARRAY_COST
public static final int UNICODE_BYTE_OBJECT_ARRAY_COST
public static final int BINARY_BINARY_VALUE_COST
public static final int BINARY_STRING_VALUE_COST
public static final int BINARY_BYTE_ARRAY_COST
public static final int BINARY_STRING_COST
public static final int BINARY_CHARACTER_ARRAY_COST
public static final int BINARY_BYTE_OBJECT_ARRAY_COST
public static final int BINARY_CHARACTER_OBJECT_ARRAY_COST
public static final int DOUBLE_CONVERTIBLE_DOUBLE_VALUE_COST
public static final int DOUBLE_CONVERTIBLE_DOUBLE_COST
public static final int DOUBLE_CONVERTIBLE_DOUBLE_OBJECT_COST
public static final int DOUBLE_CONVERTIBLE_FLOAT_COST
public static final int DOUBLE_CONVERTIBLE_FLOAT_OBJECT_COST
public static final int DOUBLE_CONVERTIBLE_LONG_VALUE_COST
public static final int DOUBLE_CONVERTIBLE_LONG_COST
public static final int DOUBLE_CONVERTIBLE_LONG_OBJECT_COST
public static final int DOUBLE_CONVERTIBLE_INTEGER_COST
public static final int DOUBLE_CONVERTIBLE_INTEGER_OBJECT_COST
public static final int DOUBLE_CONVERTIBLE_BYTE_COST
public static final int DOUBLE_CONVERTIBLE_BYTE_OBJECT_COST
public static final int LONG_CONVERTIBLE_DOUBLE_VALUE_COST
public static final int LONG_CONVERTIBLE_LONG_VALUE_COST
public static final int LONG_CONVERTIBLE_DOUBLE_COST
public static final int LONG_CONVERTIBLE_DOUBLE_OBJECT_COST
public static final int LONG_CONVERTIBLE_FLOAT_COST
public static final int LONG_CONVERTIBLE_FLOAT_OBJECT_COST
public static final int LONG_CONVERTIBLE_LONG_COST
public static final int LONG_CONVERTIBLE_LONG_OBJECT_COST
public static final int LONG_CONVERTIBLE_INTEGER_COST
public static final int LONG_CONVERTIBLE_INTEGER_OBJECT_COST
public static final int LONG_CONVERTIBLE_BYTE_COST
public static final int LONG_CONVERTIBLE_BYTE_OBJECT_COST
public boolean isBoolean()
public boolean isString()
public boolean isLong()
public boolean isDouble()
public boolean isReadOnly()
public boolean isReference()
public boolean isValue()
protected java.lang.Object marshalImpl(Env env, Value value, java.lang.Class<?> argClass)
public final int getMarshalingCost(Value value)
protected int getMarshalingCostImpl(Value value)
public int getMarshalingCost(Expr expr)
public java.lang.Class getExpectedClass()
protected void unexpectedType(Env env, Value value, java.lang.Class<?> actual, java.lang.Class<?> expected)
protected void unexpectedNull(Env env, java.lang.Class<?> expected)