terp - the ANT Tasks
v1.3.304

com.codemesh.terp.ant.codegen
Interface CodeGenerator

All Superinterfaces:
TerpAware, TerpContextHolder
All Known Implementing Classes:
CodeGeneratorImpl

public interface CodeGenerator
extends TerpAware

The interface implemented by the concrete code generator task.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.codemesh.terp.ant.TerpAware
TerpAware.Delegate
 
Method Summary
 CommandOption createCommand()
          Add a code generator command to the invocation.
 ModelFileOption createModelFile()
          Add a code generator model file to the invocation.
 ModelProperty createModelProperty()
          Add a code generator model property to the invocation.
 Version getVersion()
          Returns the code generator version.
 void setSpawn(boolean bSpawn)
          Tells the code generator task to execute as a separate process.
 void setWarningsAsErrors(boolean bWE)
          Tells the code generator task to treat warnings as errors.
 
Methods inherited from interface com.codemesh.terp.ant.TerpAware
getIf, getUnless, satisfiesConditions, setIf, setUnless
 
Methods inherited from interface com.codemesh.terp.ant.TerpContextHolder
getContext, setContext
 

Method Detail

getVersion

Version getVersion()
Returns the code generator version.

Returns:
the code generator version.

setSpawn

void setSpawn(boolean bSpawn)
Tells the code generator task to execute as a separate process.

Parameters:
bSpawn - true to spawn a code generator process, false to execute in-process.

setWarningsAsErrors

void setWarningsAsErrors(boolean bWE)
Tells the code generator task to treat warnings as errors.

Parameters:
bWE - true to treat code generator warnings as errors.

createCommand

CommandOption createCommand()
Add a code generator command to the invocation.


createModelProperty

ModelProperty createModelProperty()
Add a code generator model property to the invocation.


createModelFile

ModelFileOption createModelFile()
Add a code generator model file to the invocation.


terp - the ANT Tasks
v1.3.304

Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.