com.cedarsoft.serialization.generator.output.serializer
Interface GeneratorDecorator

All Superinterfaces:
com.cedarsoft.codegen.Decorator
All Known Implementing Classes:
I18nAnnotationsDecorator, NotNullDecorator

public interface GeneratorDecorator
extends com.cedarsoft.codegen.Decorator

Decorators can be used to generate additional code (e.g. annotations, comments etc.)


Method Summary
 void decorateDeserializeMethod(com.cedarsoft.codegen.CodeGenerator codeGenerator, com.sun.codemodel.JType domainType, com.sun.codemodel.JDefinedClass serializerClass, com.sun.codemodel.JMethod deserializeMethod)
          Decorates the deserialize method
 void decorateSerializeMethod(com.cedarsoft.codegen.CodeGenerator codeGenerator, com.sun.codemodel.JType domainType, com.sun.codemodel.JDefinedClass serializerClass, com.sun.codemodel.JMethod serializeMethod)
          Decorates the serialize method
 
Methods inherited from interface com.cedarsoft.codegen.Decorator
decorateConstant
 

Method Detail

decorateSerializeMethod

void decorateSerializeMethod(@NotNull
                             com.cedarsoft.codegen.CodeGenerator codeGenerator,
                             @NotNull
                             com.sun.codemodel.JType domainType,
                             @NotNull
                             com.sun.codemodel.JDefinedClass serializerClass,
                             @NotNull
                             com.sun.codemodel.JMethod serializeMethod)
Decorates the serialize method

Parameters:
codeGenerator - the code generator
domainType - the domain type
serializerClass - the serializer class
serializeMethod - the serialize method

decorateDeserializeMethod

void decorateDeserializeMethod(@NotNull
                               com.cedarsoft.codegen.CodeGenerator codeGenerator,
                               @NotNull
                               com.sun.codemodel.JType domainType,
                               @NotNull
                               com.sun.codemodel.JDefinedClass serializerClass,
                               @NotNull
                               com.sun.codemodel.JMethod deserializeMethod)
Decorates the deserialize method

Parameters:
codeGenerator - the code generator
domainType - the domain type
serializerClass - the serializer class
deserializeMethod - the deserialize method


Copyright © 2010 cedarsoft GmbH. All Rights Reserved.