public class DTableModel extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DTableModel.DColumnModel |
static class |
DTableModel.DOutputModel |
static class |
DTableModel.DRowModel |
Modifier and Type | Field and Description |
---|---|
protected List<DTableModel.DColumnModel> |
columns |
protected List<DTableModel.DOutputModel> |
outputs |
protected List<DTableModel.DRowModel> |
rows |
Constructor and Description |
---|
DTableModel(DMNFEELHelper feel,
DMNModelImpl model,
String dtName,
String tableName,
org.kie.dmn.model.api.DecisionTable dt) |
Modifier and Type | Method and Description |
---|---|
org.kie.dmn.feel.runtime.decisiontables.DecisionTable |
asDecisionTable() |
DTableModel |
compileAll(DMNCompilerContext ctx) |
protected org.kie.dmn.feel.codegen.feel11.CompiledFEELExpression |
compileFeelExpression(org.kie.dmn.model.api.DMNElement element,
DMNFEELHelper feel,
org.kie.dmn.feel.lang.CompilerContext feelctx,
Msg.Message msg,
Map<String,org.kie.dmn.feel.codegen.feel11.CompiledFEELExpression> compilationCache,
String expr,
int index) |
Object |
defaultToOutput(org.kie.dmn.feel.lang.EvaluationContext ctx) |
protected List<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> |
generateInputClauses(org.kie.dmn.feel.lang.CompilerContext feelctx) |
Map<String,com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> |
generateOutputClauses(org.kie.dmn.feel.lang.CompilerContext feelctx) |
protected com.github.javaparser.ast.body.ClassOrInterfaceDeclaration[][] |
generateRows(org.kie.dmn.feel.lang.CompilerContext feelctx) |
List<DTableModel.DColumnModel> |
getColumns() |
String |
getDtName() |
String |
getGeneratedClassName(org.kie.dmn.core.compiler.execmodelbased.ExecModelDMNEvaluatorCompiler.GeneratorsEnum generator) |
org.kie.dmn.feel.runtime.decisiontables.HitPolicy |
getHitPolicy() |
List<org.kie.dmn.model.api.InputClause> |
getInputs() |
int |
getInputSize() |
String |
getNamespace() |
int |
getOutputSize() |
protected List<org.kie.dmn.feel.runtime.UnaryTest> |
getOutputValuesTests(DTableModel.DOutputModel output) |
List<DTableModel.DRowModel> |
getRows() |
String |
getTableName() |
Map<String,org.kie.dmn.feel.lang.Type> |
getVariableTypes() |
boolean |
hasDefaultValues() |
protected void |
initInputClauses(org.kie.dmn.feel.lang.CompilerContext feelctx,
Map<String,org.kie.dmn.feel.codegen.feel11.CompiledFEELExpression> compilationCache) |
protected void |
initOutputClauses(org.kie.dmn.feel.lang.CompilerContext feelctx,
Map<String,org.kie.dmn.feel.codegen.feel11.CompiledFEELExpression> compilationCache) |
protected void |
initRows(org.kie.dmn.feel.lang.CompilerContext feelctx,
Map<String,org.kie.dmn.feel.codegen.feel11.CompiledFEELExpression> compilationCache) |
protected void |
iterateOverInputClauses(BiConsumer<DTableModel.DColumnModel,Integer> inputFeelExpressionGeneration) |
protected void |
iterateOverOutputClauses(BiConsumer<DTableModel.DOutputModel,String> ouputFeelExpressionGeneration) |
protected void |
iterateOverRows(BiConsumer<DTableModel.DRowModel,Integer> rowsFeelExpressionGeneration) |
protected final List<DTableModel.DColumnModel> columns
protected final List<DTableModel.DRowModel> rows
protected final List<DTableModel.DOutputModel> outputs
public DTableModel(DMNFEELHelper feel, DMNModelImpl model, String dtName, String tableName, org.kie.dmn.model.api.DecisionTable dt)
public DTableModel compileAll(DMNCompilerContext ctx)
public boolean hasDefaultValues()
protected void iterateOverRows(BiConsumer<DTableModel.DRowModel,Integer> rowsFeelExpressionGeneration)
protected void initRows(org.kie.dmn.feel.lang.CompilerContext feelctx, Map<String,org.kie.dmn.feel.codegen.feel11.CompiledFEELExpression> compilationCache)
protected com.github.javaparser.ast.body.ClassOrInterfaceDeclaration[][] generateRows(org.kie.dmn.feel.lang.CompilerContext feelctx)
protected void iterateOverInputClauses(BiConsumer<DTableModel.DColumnModel,Integer> inputFeelExpressionGeneration)
protected void initInputClauses(org.kie.dmn.feel.lang.CompilerContext feelctx, Map<String,org.kie.dmn.feel.codegen.feel11.CompiledFEELExpression> compilationCache)
protected List<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> generateInputClauses(org.kie.dmn.feel.lang.CompilerContext feelctx)
protected void iterateOverOutputClauses(BiConsumer<DTableModel.DOutputModel,String> ouputFeelExpressionGeneration)
protected void initOutputClauses(org.kie.dmn.feel.lang.CompilerContext feelctx, Map<String,org.kie.dmn.feel.codegen.feel11.CompiledFEELExpression> compilationCache)
public Map<String,com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> generateOutputClauses(org.kie.dmn.feel.lang.CompilerContext feelctx)
protected org.kie.dmn.feel.codegen.feel11.CompiledFEELExpression compileFeelExpression(org.kie.dmn.model.api.DMNElement element, DMNFEELHelper feel, org.kie.dmn.feel.lang.CompilerContext feelctx, Msg.Message msg, Map<String,org.kie.dmn.feel.codegen.feel11.CompiledFEELExpression> compilationCache, String expr, int index)
protected List<org.kie.dmn.feel.runtime.UnaryTest> getOutputValuesTests(DTableModel.DOutputModel output)
public Object defaultToOutput(org.kie.dmn.feel.lang.EvaluationContext ctx)
public String getNamespace()
public String getTableName()
public String getDtName()
public List<DTableModel.DColumnModel> getColumns()
public List<org.kie.dmn.model.api.InputClause> getInputs()
public List<DTableModel.DRowModel> getRows()
public int getOutputSize()
public int getInputSize()
public org.kie.dmn.feel.runtime.decisiontables.HitPolicy getHitPolicy()
public org.kie.dmn.feel.runtime.decisiontables.DecisionTable asDecisionTable()
public String getGeneratedClassName(org.kie.dmn.core.compiler.execmodelbased.ExecModelDMNEvaluatorCompiler.GeneratorsEnum generator)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.