Search in sources :

Example 1 with Constructor

use of com.mysema.codegen.model.Constructor in project querydsl by querydsl.

the class TypeElementHandler method handleConstructors.

private void handleConstructors(EntityType entityType, List<? extends Element> elements) {
    for (ExecutableElement constructor : ElementFilter.constructorsIn(elements)) {
        if (configuration.isValidConstructor(constructor)) {
            List<Parameter> parameters = transformParams(constructor.getParameters());
            entityType.addConstructor(new Constructor(parameters));
        }
    }
}
Also used : Constructor(com.mysema.codegen.model.Constructor) ExecutableElement(javax.lang.model.element.ExecutableElement) Parameter(com.mysema.codegen.model.Parameter)

Aggregations

Constructor (com.mysema.codegen.model.Constructor)1 Parameter (com.mysema.codegen.model.Parameter)1 ExecutableElement (javax.lang.model.element.ExecutableElement)1