public abstract class AbstractVelocityGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
CLIENT_PACKAGE |
protected static String |
SHARED_PACKAGE |
protected static String |
SUFFIX |
Modifier | Constructor and Description |
---|---|
protected |
AbstractVelocityGenerator(TypeOracle typeOracle,
Logger logger,
javax.inject.Provider<org.apache.velocity.VelocityContext> velocityContextProvider,
org.apache.velocity.app.VelocityEngine velocityEngine,
GeneratorUtil generatorUtil) |
Modifier and Type | Method and Description |
---|---|
protected String |
concatenatePath(String prefix,
String suffix) |
protected String |
extractPath(HasAnnotations type) |
protected GeneratorUtil |
getGeneratorUtil() |
protected Logger |
getLogger() |
protected abstract String |
getPackage() |
protected TypeOracle |
getTypeOracle() |
protected void |
mergeTemplate(PrintWriter printWriter,
String velocityTemplate,
String implName) |
protected String |
normalizePath(String path) |
protected abstract void |
populateVelocityContext(org.apache.velocity.VelocityContext velocityContext) |
protected static final String SUFFIX
protected static final String SHARED_PACKAGE
protected static final String CLIENT_PACKAGE
protected AbstractVelocityGenerator(TypeOracle typeOracle, Logger logger, javax.inject.Provider<org.apache.velocity.VelocityContext> velocityContextProvider, org.apache.velocity.app.VelocityEngine velocityEngine, GeneratorUtil generatorUtil)
protected GeneratorUtil getGeneratorUtil()
protected Logger getLogger()
protected TypeOracle getTypeOracle()
protected void mergeTemplate(PrintWriter printWriter, String velocityTemplate, String implName) throws UnableToCompleteException
UnableToCompleteException
protected abstract String getPackage()
protected abstract void populateVelocityContext(org.apache.velocity.VelocityContext velocityContext) throws UnableToCompleteException
UnableToCompleteException
protected String extractPath(HasAnnotations type)
Copyright © 2010–2014 Arcbees. All rights reserved.