org.quattor.pan.tasks
Class CompileTask.CallImpl

java.lang.Object
  extended by org.quattor.pan.tasks.CompileTask.CallImpl
All Implemented Interfaces:
java.util.concurrent.Callable<CompileResult>
Enclosing class:
CompileTask

public static class CompileTask.CallImpl
extends java.lang.Object
implements java.util.concurrent.Callable<CompileResult>

Compiles the template from scratch. This class may create a task to write a compiled template to disk. If the compiled template is an object template, then this may create a task to build the machine configuration.

Author:
loomis

Constructor Summary
CompileTask.CallImpl(java.lang.String tplpath, CompileCache.PostCompileProcessor postCompileProcessor, CompilerOptions compilerOptions)
           
 
Method Summary
 CompileResult call()
           
static ASTTemplate compile(java.io.File tplfile, CompilerOptions compilerOptions)
          Run the compilation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompileTask.CallImpl

public CompileTask.CallImpl(java.lang.String tplpath,
                            CompileCache.PostCompileProcessor postCompileProcessor,
                            CompilerOptions compilerOptions)
Method Detail

call

public CompileResult call()
                   throws java.lang.Exception
Specified by:
call in interface java.util.concurrent.Callable<CompileResult>
Throws:
java.lang.Exception

compile

public static ASTTemplate compile(java.io.File tplfile,
                                  CompilerOptions compilerOptions)
                           throws java.lang.Exception
Run the compilation.

Parameters:
tplfile - file to compile
compilerOptions - compiler options to use for compilation
Throws:
ParseException - for low-level parsing errors
SyntaxException - for files which parse correctly but contain higher-level syntax errors
SystemException - for IO exceptions or unexpected system exceptions; the cause is the underlying exception
java.lang.Exception


Copyright © 2011 Quattor. All Rights Reserved.