Skip to content

Implemented Language Features

OCL.js implements a subset of the OCL specification. The following sections document all supported expressions, grouped by category.

CategoryDescription
CollectionOperations on collections: forAll, exists, select, reject, collect, any, and more
ContextContext declarations: classifier, operation, and property contexts
ExpressionsCore expressions: invariants, def, let, if, oclIsTypeOf, and more
GateLogical operators: and, or, not, xor, implies
LiteralLiteral value expressions: boolean, number, string, nil
MathArithmetic operators and functions: +, -, *, /, abs, sqrt, round, and more
StringString operations: concat, indexOf, substring, toUpperCase, toLowerCase, and more

Released under the MIT License.