Class ConditionalExprContext

    • Method Detail

      • typePatternExprsExposedToChild

        public List<TypePatternExpr> typePatternExprsExposedToChild​(Node child)
        The following rules apply to a conditional expression a ? b : c: - A pattern variable introduced by a when true is definitely matched at b. - A pattern variable introduced by a when false is definitely matched at c. https://docs.oracle.com/javase/specs/jls/se21/html/jls-6.html#jls-6.3.1.4