terp - the ANT Tasks
v1.3.304

com.codemesh.terp.ant.compiler
Interface Compiler<C extends Compiler>

All Superinterfaces:
TerpAware, TerpContextHolder
All Known Subinterfaces:
CppCompiler
All Known Implementing Classes:
Acc.Impl, CppCompilerImpl, Gcc.Impl, Icc.Impl, Msvc.Impl, Qcc.Impl, Suncc.Impl, Xlc.Impl

public interface Compiler<C extends Compiler>
extends TerpAware

The interface implemented by all compilers.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.codemesh.terp.ant.TerpAware
TerpAware.Delegate
 
Method Summary
 void addOption(CompilerOption<C> option)
          Add a compiler option to the compiler invocation.
 java.lang.String getCode()
          Returns the compiler code.
 TerpContext getContext()
          Returns the terp context in which the conpiler is executing.
 CompilerOptionSet<C> getOptions()
          Returns all configured compiler options.
 Version getVersion()
          Returns the compiler version.
 
Methods inherited from interface com.codemesh.terp.ant.TerpAware
getIf, getUnless, satisfiesConditions, setIf, setUnless
 
Methods inherited from interface com.codemesh.terp.ant.TerpContextHolder
setContext
 

Method Detail

getContext

TerpContext getContext()
Returns the terp context in which the conpiler is executing.

Specified by:
getContext in interface TerpContextHolder
Returns:
the terp context.

getCode

java.lang.String getCode()
Returns the compiler code.

Returns:
the compiler code.

getVersion

Version getVersion()
Returns the compiler version.

Returns:
the compiler version.

addOption

void addOption(CompilerOption<C> option)
Add a compiler option to the compiler invocation.

Parameters:
option - the option to add.

getOptions

CompilerOptionSet<C> getOptions()
Returns all configured compiler options.

Returns:
all configured options.

terp - the ANT Tasks
v1.3.304

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