public class ScoreAlgorithmCompiler extends MatchAlgorithmCompiler
| Modifier and Type | Field and Description |
|---|---|
static String |
ROW_SCORE |
static int |
ROW_SCORE_IDX |
protected static List<ColumnDefinition> |
SCORE_COLUMN_DEFINITION |
static String |
WEIGHT |
MATCH_COLUMN_DEFINITION, NAMES, OPERATION, VALUES| Constructor and Description |
|---|
ScoreAlgorithmCompiler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assignExecutor(ColumnMatch columnMatch) |
protected MatchNode |
buildTree(List<TableRow> rows,
MatchNode[] nodes)
Builds tree based on indentation of each row.
|
protected void |
checkSpecialRows(ColumnMatch columnMatch) |
protected List<ColumnDefinition> |
getColumnDefinition() |
protected int |
getSpecialRowCount() |
protected void |
parseSpecialRows(IBindingContext bindingContext,
ColumnMatch columnMatch)
Compiles (parses) return values based on return type.
|
protected MatchNode[] |
prepareNodes(IBindingContext bindingContext,
ColumnMatch columnMatch,
ArgumentsHelper argumentsHelper,
int retValuesCount)
Prepares Nodes.
|
protected void |
validateTree(MatchNode rootNode,
List<TableRow> rows,
MatchNode[] nodes)
Overrides to do nothing.
|
checkRowName, compile, parseCheckValues, parseValues, setMetaInfoForConstantpublic static final String WEIGHT
public static final String ROW_SCORE
public static final int ROW_SCORE_IDX
protected static final List<ColumnDefinition> SCORE_COLUMN_DEFINITION
protected void assignExecutor(ColumnMatch columnMatch)
assignExecutor in class MatchAlgorithmCompilerprotected MatchNode buildTree(List<TableRow> rows, MatchNode[] nodes) throws SyntaxNodeException
MatchAlgorithmCompilerbuildTree in class MatchAlgorithmCompilernodes - (special rows must be null)SyntaxNodeExceptionprotected void checkSpecialRows(ColumnMatch columnMatch) throws SyntaxNodeException
checkSpecialRows in class MatchAlgorithmCompilerSyntaxNodeExceptionprotected List<ColumnDefinition> getColumnDefinition()
getColumnDefinition in class MatchAlgorithmCompilerprotected int getSpecialRowCount()
getSpecialRowCount in class MatchAlgorithmCompilerprotected void parseSpecialRows(IBindingContext bindingContext, ColumnMatch columnMatch) throws SyntaxNodeException
MatchAlgorithmCompilerparseSpecialRows in class MatchAlgorithmCompilerSyntaxNodeExceptionprotected MatchNode[] prepareNodes(IBindingContext bindingContext, ColumnMatch columnMatch, ArgumentsHelper argumentsHelper, int retValuesCount) throws SyntaxNodeException
MatchAlgorithmCompilerSpecial rows are ignored. That is why first n elements in return array is always null.
prepareNodes in class MatchAlgorithmCompilerSyntaxNodeExceptionprotected void validateTree(MatchNode rootNode, List<TableRow> rows, MatchNode[] nodes)
validateTree in class MatchAlgorithmCompilerrootNode - root of treerows - rows to point out errorsbuildTree(java.util.List<org.openl.rules.cmatch.TableRow>, org.openl.rules.cmatch.MatchNode[])Copyright © 2004–2019 OpenL Tablets. All rights reserved.