Package org.kie.kogito.codegen.rules
Class RuleCodegen
java.lang.Object
org.kie.kogito.codegen.core.AbstractGenerator
org.kie.kogito.codegen.rules.RuleCodegen
- All Implemented Interfaces:
Generator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.drools.codegen.common.GeneratedFileTypestatic final StringFields inherited from interface org.kie.kogito.codegen.api.Generator
CONFIG_PREFIX, MODEL_TYPE, REST_TYPE -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<org.drools.codegen.common.GeneratedFile>booleanisEmpty()static RuleCodegenofCollectedResources(KogitoBuildContext context, Collection<CollectedResource> resources) static RuleCodegenofJavaResources(KogitoBuildContext context, Collection<CollectedResource> resources) static RuleCodegenofResources(KogitoBuildContext context, Collection<org.kie.api.io.Resource> resources) intpriority()section()Methods inherited from class org.kie.kogito.codegen.core.AbstractGenerator
applicationCanonicalName, configGenerator, context, generate, name
-
Field Details
-
RULE_TYPE
public static final org.drools.codegen.common.GeneratedFileType RULE_TYPE -
TEMPLATE_RULE_FOLDER
- See Also:
-
GENERATOR_NAME
- See Also:
-
-
Method Details
-
ofCollectedResources
public static RuleCodegen ofCollectedResources(KogitoBuildContext context, Collection<CollectedResource> resources) -
ofJavaResources
public static RuleCodegen ofJavaResources(KogitoBuildContext context, Collection<CollectedResource> resources) -
ofResources
public static RuleCodegen ofResources(KogitoBuildContext context, Collection<org.kie.api.io.Resource> resources) -
section
-
isEmpty
public boolean isEmpty() -
internalGenerate
- Specified by:
internalGeneratein classAbstractGenerator
-
withHotReloadMode
-
priority
public int priority()
-