[code-reflection] RFR: Sealed interfaces marking operations that model a Java language construct
Maurizio Cimadamore
mcimadamore at openjdk.org
Fri May 17 12:27:29 UTC 2024
On Fri, 10 May 2024 22:46:48 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
> Define two sealed interfaces `JavaExpression` and `JavaStatement`. An operation implementing `JavaExpression` models some Java expression. An operation implementing `JavaStatement` models some Java statement. An operation implementing both models some expression statement e.g., a method invocation expression or statement.
>
> Not all operations implement these interfaces, they instead contribute to modeling Java program behavior and do not model a specific statement or expression. Operations modeling Java patterns are in a separate category.
Looks good (I checked also all the ops in CoreOps to see they were covered).
-------------
Marked as reviewed by mcimadamore (Reviewer).
PR Review: https://git.openjdk.org/babylon/pull/76#pullrequestreview-2063262863
More information about the babylon-dev
mailing list