public class CountingTemplate extends EglPersistentTemplate
outputRoot, outputRootPath
listeners, module, name, template
Constructor and Description |
---|
CountingTemplate(EglTemplateSpecification spec,
IEglContext context,
URI outputRoot) |
Modifier and Type | Method and Description |
---|---|
static int |
countFor(File file) |
protected void |
doGenerate(File file,
String targetName,
boolean overwrite,
boolean protectRegions)
Store result of processing template in the given file.
|
void |
reset() |
addMessage, generate, generate, name, resolveFile, store, store
addProtectedRegionWarning, getContents, getDeclaredModelDefinitions, getDeclaredOperations, getFormatter, getImports, getIncrementalitySettings, getModelDefinitions, getModule, getName, getOperations, getParseProblems, getTemplate, isProcessed, merge, populate, printWarning, process, setFormatter, setFormatters, setFormatters, setIncrementalitySettings
public CountingTemplate(EglTemplateSpecification spec, IEglContext context, URI outputRoot) throws Exception
Exception
protected void doGenerate(File file, String targetName, boolean overwrite, boolean protectRegions) throws EglRuntimeException
EglPersistentTemplate
EglTemplate.contents
.doGenerate
in class EglPersistentTemplate
EglRuntimeException
public static int countFor(File file)
public void reset()
reset
in class EglTemplate
Copyright © 2020. All rights reserved.