name.pehl.piriti.rebind
Class VelocityGenerator

java.lang.Object
  extended by com.google.gwt.core.ext.Generator
      extended by name.pehl.piriti.rebind.VelocityGenerator
Direct Known Subclasses:
JsonReaderGenerator, JsonWriterGenerator, XmlReaderGenerator, XmlWriterGenerator

public abstract class VelocityGenerator
extends com.google.gwt.core.ext.Generator

Abstract Generator which delegates to a VelocityCreator. The VelocityCreator is responsible for generating the code.

Version:
$LastChangedRevision: 745 $
Author:
$LastChangedBy: harald.pehl $

Constructor Summary
VelocityGenerator()
           
 
Method Summary
protected abstract  VelocityCreator createCreator(com.google.gwt.core.ext.typeinfo.JClassType interfaceType, String implName)
           
 String generate(com.google.gwt.core.ext.TreeLogger treeLogger, com.google.gwt.core.ext.GeneratorContext context, String typeName)
           
 
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
 

Constructor Detail

VelocityGenerator

public VelocityGenerator()
Method Detail

generate

public String generate(com.google.gwt.core.ext.TreeLogger treeLogger,
                       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

createCreator

protected abstract VelocityCreator createCreator(com.google.gwt.core.ext.typeinfo.JClassType interfaceType,
                                                 String implName)
                                          throws com.google.gwt.core.ext.UnableToCompleteException
Throws:
com.google.gwt.core.ext.UnableToCompleteException


Copyright © 2012 Harald Pehl. All Rights Reserved.