io.vrap.codegen.languages.javalang.client.builder.predicates.JavaQueryPredicateModule.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-builder-client Show documentation
Show all versions of java-builder-client Show documentation
RAML API client code generators based on the REST Modeling Framework. https://github.com/vrapio/rest-modeling-framework
package io.vrap.codegen.languages.javalang.client.builder.predicates
import io.vrap.codegen.languages.java.base.extensions.isExpandable
import io.vrap.rmf.codegen.di.RamlGeneratorModule
import io.vrap.rmf.codegen.di.Module
import io.vrap.rmf.codegen.rendering.*
object JavaQueryPredicateModule: Module {
override fun configure(generatorModule: RamlGeneratorModule) = setOf (
ObjectTypeGenerator(
setOf(
JavaQueryPredicateRenderer(generatorModule.providePackageName(), generatorModule.vrapTypeProvider())
), generatorModule.allObjectTypes()
),
ObjectTypeGenerator(
setOf(
JavaExpansionPredicateRenderer(generatorModule.providePackageName(), generatorModule.vrapTypeProvider())
), generatorModule.allObjectTypes().filter { it.isExpandable() }
),
FileGenerator(
setOf(JavaExpansionProducer(generatorModule.providePackageName()))
)
)
}