Class OperatorExpressions

java.lang.Object
com.dassault_systemes.modeler.kerml.model.OperatorExpressions

@OpenApiAll public class OperatorExpressions extends Object
Utility class to work with OperatorExpression
  • Field Details

    • COLLECT_OPERATOR

      public static final String COLLECT_OPERATOR
      Operator symbol for the collection (map‑over) operation.
      See Also:
    • INDEX_OPERATOR

      public static final String INDEX_OPERATOR
      Operator symbol for index access within a collection.
      See Also:
    • SELECT_OPERATOR

      public static final String SELECT_OPERATOR
      Operator symbol for filtering elements of a collection.
      See Also:
    • L_BRACKET_OPERATOR

      public static final String L_BRACKET_OPERATOR
      Operator symbol for bracket‑based access expressions.
      See Also:
    • AS_OPERATOR

      public static final String AS_OPERATOR
      Operator symbol for type‑ascription (“as”) expressions.
      See Also:
    • EQUALS_OPERATOR

      public static final String 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 the ElementsFactory
      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 the ElementsFactory
      operator - operator symbol
      resultType - optional result type of the expression
      inputParameterValues - 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 the ElementsFactory
      operator - operator symbol
      numberOfInputParameters - number of input parameters
      Returns:
      a new operator expression