[API] Support `Op::operator[]` in Java and Python (#8356)
authorAndres Noetzli <andres.noetzli@gmail.com>
Tue, 22 Mar 2022 00:00:58 +0000 (17:00 -0700)
committerGitHub <noreply@github.com>
Tue, 22 Mar 2022 00:00:58 +0000 (17:00 -0700)
commite3f8ea19324685c25df378bd078a11bfcf639b77
treefadbc50a96fffa1bcc2cb178e02be9af1d4cbc49
parentc0bfa39a9846284eed5bbf9a3caf72e3b817a192
[API] Support `Op::operator[]` in Java and Python (#8356)

This commit adds support for `Op::operator[]` in Java and Python and
updates all unit tests to be consistent.
src/api/java/io/github/cvc5/api/Op.java
src/api/java/jni/op.cpp
src/api/python/cvc5.pxd
src/api/python/cvc5.pxi
test/unit/api/cpp/op_black.cpp
test/unit/api/java/OpTest.java
test/unit/api/python/test_op.py