Search in sources :

Example 1 with ComponentInjectedDependenciesBuilder

use of com.axellience.vuegwt.processors.component.ComponentInjectedDependenciesBuilder in project vue-gwt by Axellience.

the class VueGwtProcessor method processComponentAnnotations.

private void processComponentAnnotations(RoundEnvironment roundEnv) {
    Set<? extends Element> componentElements = roundEnv.getElementsAnnotatedWith(Component.class);
    ComponentJsTypeGenerator componentJsTypeGenerator = new ComponentJsTypeGenerator(processingEnv);
    VueComponentFactoryGenerator vueFactoryGenerator = new VueComponentFactoryGenerator(processingEnv);
    for (TypeElement componentType : ElementFilter.typesIn(componentElements)) {
        ComponentInjectedDependenciesBuilder dependenciesBuilder = new ComponentInjectedDependenciesBuilder(processingEnv, componentType);
        vueFactoryGenerator.generate(componentType, dependenciesBuilder.hasInjectedDependencies());
        componentJsTypeGenerator.generate(componentType, dependenciesBuilder);
    }
}
Also used : ComponentJsTypeGenerator(com.axellience.vuegwt.processors.component.ComponentJsTypeGenerator) TypeElement(javax.lang.model.element.TypeElement) ComponentInjectedDependenciesBuilder(com.axellience.vuegwt.processors.component.ComponentInjectedDependenciesBuilder) VueComponentFactoryGenerator(com.axellience.vuegwt.processors.component.factory.VueComponentFactoryGenerator)

Aggregations

ComponentInjectedDependenciesBuilder (com.axellience.vuegwt.processors.component.ComponentInjectedDependenciesBuilder)1 ComponentJsTypeGenerator (com.axellience.vuegwt.processors.component.ComponentJsTypeGenerator)1 VueComponentFactoryGenerator (com.axellience.vuegwt.processors.component.factory.VueComponentFactoryGenerator)1 TypeElement (javax.lang.model.element.TypeElement)1