jaxx.compiler.finalizers
Class ValidatorFinalizer
java.lang.Object
jaxx.compiler.finalizers.AbstractFinalizer
jaxx.compiler.finalizers.ValidatorFinalizer
- All Implemented Interfaces:
- JAXXCompilerFinalizer
public class ValidatorFinalizer
- extends AbstractFinalizer
To finalize validators fields.
- Author:
- tchemit
- Plexus component:
- role:
- "jaxx.compiler.finalizers.JAXXCompilerFinalizer"
- role-hint:
- "validators"
|
|
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. |
void |
registerValidator(BeanValidatorHandler.CompiledBeanValidator validator,
JAXXCompiler compiler,
JavaFile javaFile)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VALIDATOR_IDS_FIELD
protected static final JavaField VALIDATOR_IDS_FIELD
ValidatorFinalizer
public ValidatorFinalizer()
accept
public boolean accept(JAXXCompiler compiler)
- Description copied from interface:
JAXXCompilerFinalizer
- 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
public void finalizeCompiler(CompiledObject root,
JAXXCompiler compiler,
JavaFile javaFile,
String packageName,
String className)
- Description copied from interface:
JAXXCompilerFinalizer
- Finalize compiler for a given compiler on the finalizer pass before any
generation.
- Parameters:
root - the root objectcompiler - the current compilerjavaFile - the java file to generatepackageName - the package name of the file to generateclassName - the class name of the file to generate
prepareJavaFile
public void prepareJavaFile(CompiledObject root,
JAXXCompiler compiler,
JavaFile javaFile,
String packageName,
String className)
throws ClassNotFoundException
- Description copied from interface:
JAXXCompilerFinalizer
- Prepare java file after any compiler finalizer pass, says the last
action before generation.
- Parameters:
root - the root objectcompiler - the current compilerjavaFile - the java file to generatepackageName - the package name of the file to generateclassName - the class name of the file to generate
- Throws:
ClassNotFoundException
registerValidator
public void registerValidator(BeanValidatorHandler.CompiledBeanValidator validator,
JAXXCompiler compiler,
JavaFile javaFile)
Copyright © 2008-2011 CodeLutin. All Rights Reserved.