@AutoService(value=JAXXCompilerFinalizer.class) public class ValidatorFinalizer extends AbstractFinalizer
|
| Modifier and Type | Field and Description |
|---|---|
protected static JavaField |
VALIDATOR_IDS_FIELD |
TYPE_BOOLEAN, TYPE_OBJECT, TYPE_STRING, TYPE_VOID| Constructor and Description |
|---|
ValidatorFinalizer() |
| Modifier and Type | Method and Description |
|---|---|
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) |
addField, addMethod, addSimpleFieldprotected static final JavaField VALIDATOR_IDS_FIELD
public boolean accept(JAXXCompiler compiler)
JAXXCompilerFinalizercompiler.compiler - the compilertrue if the finalizer must be apply of compilerpublic void finalizeCompiler(CompiledObject root, JAXXCompiler compiler, JavaFile javaFile, String packageName, String className)
JAXXCompilerFinalizerroot - 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 generatepublic void prepareJavaFile(CompiledObject root, JAXXCompiler compiler, JavaFile javaFile, String packageName, String className)
JAXXCompilerFinalizerroot - 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 generatepublic void registerValidator(BeanValidatorHandler.CompiledBeanValidator validator, JAXXCompiler compiler, JavaFile javaFile)
Copyright © 2008–2019 Ultreia.io. All rights reserved.