|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.web.bindery.autobean.shared.ValueCodex
public class ValueCodex
Provides unified encoding and decoding of value objects.
Nested Class Summary | |
---|---|
(package private) static class |
ValueCodex.Type
|
Constructor Summary | |
---|---|
ValueCodex()
|
Method Summary | ||
---|---|---|
static boolean |
canDecode(java.lang.Class<?> clazz)
Returns true if ValueCodex can operate on values of the given type. |
|
static
|
decode(java.lang.Class<T> clazz,
Splittable split)
|
|
static
|
decode(java.lang.Class<T> clazz,
java.lang.String string)
Deprecated. use decode(Class, Splittable) instead. |
|
static Splittable |
encode(java.lang.Class<?> clazz,
java.lang.Object obj)
Encode a value object when the wire format type is known. |
|
static Splittable |
encode(java.lang.Object obj)
|
|
static java.util.Set<java.lang.Class<?>> |
getAllValueTypes()
Return all Value types that can be processed by the ValueCodex. |
|
static java.lang.Object |
getUninitializedFieldValue(java.lang.Class<?> clazz)
Returns the uninitialized field value for the given primitive type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueCodex()
Method Detail |
---|
public static boolean canDecode(java.lang.Class<?> clazz)
clazz
- a Class object
true
if the given object type can be decodedpublic static <T> T decode(java.lang.Class<T> clazz, Splittable split)
@Deprecated public static <T> T decode(java.lang.Class<T> clazz, java.lang.String string)
decode(Class, Splittable)
instead.
java.lang.UnsupportedOperationException
public static Splittable encode(java.lang.Class<?> clazz, java.lang.Object obj)
encode(Object)
when possible.
public static Splittable encode(java.lang.Object obj)
public static java.util.Set<java.lang.Class<?>> getAllValueTypes()
public static java.lang.Object getUninitializedFieldValue(java.lang.Class<?> clazz)
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |