public final class RuleRowHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ARRAY_ELEMENTS_SEPARATOR |
static String |
ARRAY_ELEMENTS_SEPARATOR_ESCAPER |
static String |
CONSTRUCTOR |
public static final String ARRAY_ELEMENTS_SEPARATOR_ESCAPER
public static final String ARRAY_ELEMENTS_SEPARATOR
public static final String CONSTRUCTOR
public static int calculateHeight(ILogicalTable table)
public static String[] extractElementsFromCommaSeparatedArray(ILogicalTable cell)
public static Object loadCommaSeparatedParam(IOpenClass aggregateType, IOpenClass paramType, String paramName, String ruleName, ILogicalTable cell, OpenlToolAdaptor openlAdaptor) throws SyntaxNodeException
ARRAY_ELEMENTS_SEPARATOR in one cell. Gets the cell string
value. Split it by ARRAY_ELEMENTS_SEPARATOR, and process every token as single parameter. Returns array
of parameters.SyntaxNodeExceptionpublic static IOpenClass getType(String typeCode, ISyntaxNode node, IBindingContext bindingContext) throws SyntaxNodeException
SyntaxNodeExceptionpublic static Object loadSingleParam(IOpenClass paramType, String paramName, String ruleName, ILogicalTable table, OpenlToolAdaptor openlAdapter) throws SyntaxNodeException
SyntaxNodeExceptionpublic static Object loadNativeValue(ICell cell, IOpenClass paramType)
public static SimpleNodeUsage createConstantNodeUsage(ConstantOpenField constantOpenField, int start, int end)
public static ConstantOpenField findConstantField(IBindingContext bindingContext, String source)
public static Object castConstantToExpectedType(IBindingContext bindingContext, ConstantOpenField constantOpenField, IOpenClass expectedType)
public static boolean isFormula(String value)
public static boolean isFormula(ILogicalTable valuesTable)
public static CellMetaInfo createCellMetaInfo(IdentifierNode identifier, IMetaInfo metaInfo, NodeType nodeType)
public static void validateValue(Object value, IOpenClass paramType) throws OpenLCompilationException
OpenLCompilationExceptionpublic static Object loadParam(ILogicalTable dataTable, IOpenClass paramType, String paramName, String ruleName, OpenlToolAdaptor openlAdaptor, boolean loadSingleParamOnly) throws SyntaxNodeException
SyntaxNodeExceptionCopyright © 2004–2019 OpenL Tablets. All rights reserved.