public class GenerateConstructorsTask extends JAXXEngineTask
JavaConstructor| Constructor and Description |
|---|
GenerateConstructorsTask() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConstructor(JAXXCompiler compiler,
String className,
List<String> constructorTypes) |
protected void |
addConstructorsForNoneSuperClassJaxx(JAXXEngine engine,
JAXXCompiler compiler)
To add constructor on the given
compiler, knowing that the super
class of it is not a jaxx class. |
protected void |
addConstructorsForSuperClassJaxx(JAXXEngine engine,
JAXXCompiler compiler,
JAXXCompiler parentCompiler)
To add constructor on the given
compiler, knowing that the super
class of it is a jaxx class. |
protected void |
addConstructorWithInitialContext(JAXXCompiler compiler,
String className,
List<String> constructorTypes,
boolean superclassIsJAXXObject) |
protected List<List<String>> |
getDeclaredConstructorPrototypes(JAXXCompiler compiler,
JavaFile javaFile) |
boolean |
perform(JAXXEngine engine)
Performs the task on the given
engine. |
addEndProfileTime, addStartProfileTime, checkAllFilesCompiled, getNamepublic static final String TASK_NAME
public boolean perform(JAXXEngine engine) throws Exception
JAXXEngineTaskengine.perform in class JAXXEngineTaskengine - the engine to usefalse if task failed (with no exception), true otherwise.Exception - if any errorprotected void addConstructorsForNoneSuperClassJaxx(JAXXEngine engine, JAXXCompiler compiler) throws ClassNotFoundException, IllegalStateException
compiler, knowing that the super
class of it is not a jaxx class.
In this mode, we takes all the constructors of the parent (if parent has
some!) and for each of them add the simple one and another one with
first parameter a JAXXContext.engine - the current engine which compiled compilercompiler - the current compiler to treatClassNotFoundException - if a class could not be found (when wanted to have extact type for constructor parameters)IllegalStateException - if given compiler has a super JAXX class.protected void addConstructorsForSuperClassJaxx(JAXXEngine engine, JAXXCompiler compiler, JAXXCompiler parentCompiler) throws ClassNotFoundException, IllegalStateException
compiler, knowing that the super
class of it is a jaxx class.
In this mode, we takes all the constructors of the parent (if parent has
some!) and for each of them add the simple one and another one with
first parameter a JAXXContext.engine - the current engine which compiled compilercompiler - the current compiler to treatparentCompiler - the compiler of the super class (can be
null if super class was not generated by
the given engine).ClassNotFoundException - if a class could not be found (when wanted to have extact type for constructor parameters)IllegalStateException - if given compiler has not a super JAXX class.protected List<List<String>> getDeclaredConstructorPrototypes(JAXXCompiler compiler, JavaFile javaFile) throws ClassNotFoundException
ClassNotFoundExceptionprotected void addConstructor(JAXXCompiler compiler, String className, List<String> constructorTypes) throws CompilerException
CompilerExceptionprotected void addConstructorWithInitialContext(JAXXCompiler compiler, String className, List<String> constructorTypes, boolean superclassIsJAXXObject) throws CompilerException
CompilerExceptionCopyright © 2008–2019 Ultreia.io. All rights reserved.