Skip to content

Commit

Permalink
Add queries in changelog and docs in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lecoqlibre committed Mar 2, 2024
1 parent 903f19e commit a97098e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Queries for auto-importing (`getImportedClasses`, `getImportedInterfaces`, `getImportedClassifiers`, `getImportedClassifiersWithoutPrimitives` and `getImportedTypesOfOperations`).

Ruby:
- Add Import method reading JSON and returning objects.
- Add `SEMANTIC_TYPE` constant to every semantic class.
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@ You will find predefined queries in the `queries.mtl` file contained in the `org
|`getImplementation(aType: Type, model: Model): Class`| Returns the class that implements the passed type. |
|`getImplementation(i: Interface, model: Model): Class`| Returns the (first-one) class that implements the passed interface. |
|`getImplementations(i: Interface, model: Model): Bag(Class)`| Returns the classes that implements the passed interface. |
|`getImportedClasses(aClass: Class): Set(Class)`| Computes the classes that the passed class needs to import. |
|`getImportedClasses(anInterface: Interface): Set(Class)`| Computes the classes that the passed interface needs to import. |
|`getImportedClassifiers(aClass: Class): Set(Classifier)`| Computes the classifiers (classes and interfaces) that the passed class needs to import. |
|`getImportedClassifiers(anInterface: Interface): Set(Classifier)`| Computes the classifiers (classes and interfaces) that the passed interface needs to import. |
|`getImportedClassifiers(c: Classifier): Set(Classifier)`| Computes the classifiers (classes and interfaces) that the passed classifier needs to import. |
|`getImportedClassifiersWithoutPrimitives(c: Classifier)`| Computes the classifiers (classes and interfaces) without primitives types (ex: String, Boolean, Integer) that the passed class needs to import. |
|`getImportedInterfaces(aClass: Class): Set(Interface)`| Computes the interfaces that the passed class needs to import. |
|`getImportedInterfaces(anInterface: Interface): Set(Interface)`| Computes the interfaces that the passed interface needs to import. |
|`getImportedTypesOfOperations(classifier: Classifier): Set(Type)`| Returns all the types of the parameters used by the operations (input parameters and output parameters) of the passed classifier. |
|`getInitializedParentParameters(operation: Operation): OrderedSet(Parameter)`| For a constructor, returns the parameters that have already been initialized by the parent constructor. |
|`getInitializerProperty(p: Parameter): Property`| Returns the property (class variable) that the parameter will initialize. |
|`getInitializerPropertyGetter(p: Parameter): Operation`| Returns the getter operation of the property (class variable) that the parameter will initialize. |
Expand Down

0 comments on commit a97098e

Please sign in to comment.