jaxx.compiler
Interface JAXXCompilerFinalizer

All Known Implementing Classes:
DefaultFinalizer, SwingFinalizer, ValidatorFinalizer

public interface JAXXCompilerFinalizer

Contract of any object to interact with a JAXXCompiler before the generation pass.

Since:
2.0.0
Author:
tchemit

Method Summary
 boolean accept(JAXXCompiler compiler)
          Test if the finalizer must be apply on the given compiler.
 void finalizeCompiler(CompiledObject root, JAXXCompiler compiler, JavaFile javaFile, String packageName, String className)
          Finalize compiler for a given compiler on the finalizer pass before any generation.
 void prepareJavaFile(CompiledObject root, JAXXCompiler compiler, JavaFile javaFile, String packageName, String className)
          Prepare java file after any compiler finalizer pass, says the last action before generation.
 

Method Detail

accept

boolean accept(JAXXCompiler compiler)
Test if the finalizer must be apply on the given compiler.

Parameters:
compiler - the compiler
Returns:
true if the finalizer must be apply of compiler

finalizeCompiler

void finalizeCompiler(CompiledObject root,
                      JAXXCompiler compiler,
                      JavaFile javaFile,
                      String packageName,
                      String className)
                      throws Exception
Finalize compiler for a given compiler on the finalizer pass before any generation.

Parameters:
root - the root object
compiler - the current compiler
javaFile - the java file to generate
packageName - the package name of the file to generate
className - the class name of the file to generate
Throws:
Exception - if any pb

prepareJavaFile

void prepareJavaFile(CompiledObject root,
                     JAXXCompiler compiler,
                     JavaFile javaFile,
                     String packageName,
                     String className)
                     throws Exception
Prepare java file after any compiler finalizer pass, says the last action before generation.

Parameters:
root - the root object
compiler - the current compiler
javaFile - the java file to generate
packageName - the package name of the file to generate
className - the class name of the file to generate
Throws:
Exception - if any pb


Copyright © 2008-2010 CodeLutin. All Rights Reserved.