Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable technology-specific types to target more than one kind of built-in type #7

Open
frademacher opened this issue Sep 11, 2020 · 0 comments
Labels
enhancement New feature or request technology modeling Issue concerns technology modeling with LEMMA

Comments

@frademacher
Copy link
Collaborator

frademacher commented Sep 11, 2020

Technology-specific types in LEMMA technology models can currently only target one built-in type kind at once. For example, a hypothetical technology-specific for Spring's type Response Entity may be captured in a LEMMA technology model as follows:

technology spring {
    types {
        ...
        structure type ResponseEntity;
    }
}

However, a ResponseEntity may cluster several values of different Java types, e.g., regular classes, enumeration classes, and instances of lists. These types map LEMMA data structures, enumerations, and list types. However, the technology-specific ResponseEntity may only be defined as applicable to exactly one of these types. LEMMA should therefore support the modeling of technology-specific types that can be mapped to more than one kind of a built-in type. A possible solution to this lack in expressivity could be to allow for modeling eponymous types for different type kinds, e.g.,

technology spring {
    types {
        ...
        structure type ResponseEntity;
        list type ResponseEntity;
        enum type ResponseEntity;
    }
}

(The modeling of technology-specific enumeration types, as shown above, is currently not possible; their integration is addressed by issue #8.)

@frademacher frademacher added enhancement New feature or request technology modeling Issue concerns technology modeling with LEMMA labels Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request technology modeling Issue concerns technology modeling with LEMMA
Projects
None yet
Development

No branches or pull requests

1 participant