All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jbock.writing.ContextComponent Maven / Gradle / Ivy

There is a newer version: 5.18
Show newest version
package net.jbock.writing;

import io.jbock.javapoet.TypeSpec;
import io.jbock.simple.Component;

@Component
public interface ContextComponent {

    ParserClass parser();

    @Component.Factory
    interface Factory {
        ContextComponent create(CommandRepresentation command);
    }

    static TypeSpec parserClass(CommandRepresentation command) {
        ContextComponent component = ContextComponent_Impl.factory().create(command);
        return component.parser().define();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy