com.vaadin.terminal.gwt.widgetsetutils
Class SerializerGenerator
java.lang.Object
com.google.gwt.core.ext.Generator
com.vaadin.terminal.gwt.widgetsetutils.SerializerGenerator
public class SerializerGenerator
- extends com.google.gwt.core.ext.Generator
GWT generator for creating serializer classes for custom classes sent from
server to client.
Only fields with a correspondingly named setter are deserialized.
- Since:
- 7.0
Method Summary |
String |
generate(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context,
String typeName)
|
static String |
getFullyQualifiedSerializerClassName(com.google.gwt.core.ext.typeinfo.JClassType type)
|
protected static List<com.google.gwt.core.ext.typeinfo.JMethod> |
getSetters(com.google.gwt.core.ext.typeinfo.JClassType beanType)
Returns a list of all setters found in the beanType or its parent class |
Methods inherited from class com.google.gwt.core.ext.Generator |
escape |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializerGenerator
public SerializerGenerator()
generate
public String generate(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context,
String typeName)
throws com.google.gwt.core.ext.UnableToCompleteException
- Specified by:
generate
in class com.google.gwt.core.ext.Generator
- Throws:
com.google.gwt.core.ext.UnableToCompleteException
getSetters
protected static List<com.google.gwt.core.ext.typeinfo.JMethod> getSetters(com.google.gwt.core.ext.typeinfo.JClassType beanType)
- Returns a list of all setters found in the beanType or its parent class
- Parameters:
beanType
- The type to check
- Returns:
- A list of setter methods from the class and its parents
getFullyQualifiedSerializerClassName
public static String getFullyQualifiedSerializerClassName(com.google.gwt.core.ext.typeinfo.JClassType type)
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.