use
use copied to clipboard
UseModelApi: Lacks of `self` for attributes in OCL Expression
Describe the bug
Unable to automatically find the self
of USE Class attributes.
To Reproduce Using Use Model Api:
- Create a class.
- Add some attributes to it.
- Write an OCL expression related to the class (that makes use of the attributes).
- Parse it with createPrePostCondition or createQueryOperation.
Expected behavior
Any .use specification can automatically understand the context (the attributes inside the class are automatically tagged self
)
But while using the api, the self
s must be defined already to be able to parse.
Screenshots
It is runnable if I add self
to the constraints:
Desktop (please complete the following information):
- OS: Windows 10
- Java Version: OpenJDK17
- USE version: 7.1.0
Note
I'm developing an USE extension that parse non-use specifications.