Class OperatorExpressions
java.lang.Object
com.dassault_systemes.modeler.kerml.model.OperatorExpressions
Utility class to work with
OperatorExpression-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringOperator symbol for type‑ascription (“as”) expressions.static final StringOperator symbol for the collection (map‑over) operation.static final StringOperator symbol for equality comparison.static final StringOperator symbol for index access within a collection.static final StringOperator symbol for bracket‑based access expressions.static final StringOperator symbol for filtering elements of a collection. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OperatorExpressioncreateLBRACKETOperatorExpression(Supplier<ElementsFactory> factorySupplier) Creates an operator expression using the "[" operator.static OperatorExpressioncreateOperatorExpression(Supplier<ElementsFactory> factorySupplier, String operator, int numberOfInputParameters) Creates an operator expression with the given operator and number of input parameters.static OperatorExpressioncreateOperatorExpression(Supplier<ElementsFactory> factorySupplier, String operator, Type resultType, Object... inputParameterValues) Creates an operator expression with the given operator, result type, and input parameter values.
-
Field Details
-
COLLECT_OPERATOR
Operator symbol for the collection (map‑over) operation.- See Also:
-
INDEX_OPERATOR
Operator symbol for index access within a collection.- See Also:
-
SELECT_OPERATOR
Operator symbol for filtering elements of a collection.- See Also:
-
L_BRACKET_OPERATOR
Operator symbol for bracket‑based access expressions.- See Also:
-
AS_OPERATOR
Operator symbol for type‑ascription (“as”) expressions.- See Also:
-
EQUALS_OPERATOR
Operator symbol for equality comparison.- See Also:
-
-
Constructor Details
-
OperatorExpressions
public OperatorExpressions()
-
-
Method Details
-
createLBRACKETOperatorExpression
public static OperatorExpression createLBRACKETOperatorExpression(Supplier<ElementsFactory> factorySupplier) Creates an operator expression using the "[" operator. The expression will have exactly two input parameters.- Parameters:
factorySupplier- supplier providing theElementsFactory- Returns:
- a new operator expression using the "[" operator
-
createOperatorExpression
public static OperatorExpression createOperatorExpression(Supplier<ElementsFactory> factorySupplier, String operator, @CheckForNull Type resultType, Object... inputParameterValues) Creates an operator expression with the given operator, result type, and input parameter values.- Parameters:
factorySupplier- supplier providing theElementsFactoryoperator- operator symbolresultType- optional result type of the expressioninputParameterValues- values for the input parameters- Returns:
- a new operator expression
-
createOperatorExpression
public static OperatorExpression createOperatorExpression(Supplier<ElementsFactory> factorySupplier, String operator, int numberOfInputParameters) Creates an operator expression with the given operator and number of input parameters.- Parameters:
factorySupplier- supplier providing theElementsFactoryoperator- operator symbolnumberOfInputParameters- number of input parameters- Returns:
- a new operator expression
-