public abstract class VelocityGenerator
extends com.google.gwt.core.ext.Generator
VelocityCreator. The
VelocityCreator is responsible for generating the code.| Constructor and Description |
|---|
VelocityGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
generate(com.google.gwt.core.ext.TreeLogger treeLogger,
com.google.gwt.core.ext.GeneratorContext generatorContext,
String rwInterface) |
protected abstract String |
getInterfaceName()
Must return Piritis interface name this generator should generate an
implementation for.
|
protected abstract String |
getTemplateName()
Returns the velocity template which should be merged.
|
protected void |
populateVelocityContext(org.apache.velocity.VelocityContext velocityContext)
Gives subclasses a chance to put extra information into the velocity
context.
|
public String generate(com.google.gwt.core.ext.TreeLogger treeLogger, com.google.gwt.core.ext.GeneratorContext generatorContext, String rwInterface) throws com.google.gwt.core.ext.UnableToCompleteException
generate in class com.google.gwt.core.ext.Generatorcom.google.gwt.core.ext.UnableToCompleteExceptionprotected void populateVelocityContext(org.apache.velocity.VelocityContext velocityContext)
TypeContext instance for the requested reader / writer and
relevant model
velocityContext - protected abstract String getInterfaceName()
JsonReader<T>,
JsonWriter<T>, XmlReader<T> or XmlWriter<T>protected abstract String getTemplateName()
Copyright © 2012 Harald Pehl. All Rights Reserved.