Class ConditionalExprContext

  • All Implemented Interfaces:
    com.github.javaparser.resolution.Context

    public class ConditionalExprContext
    extends ExpressionContext<com.github.javaparser.ast.expr.ConditionalExpr>
    • Constructor Detail

      • ConditionalExprContext

        public ConditionalExprContext​(com.github.javaparser.ast.expr.ConditionalExpr wrappedNode,
                                      com.github.javaparser.resolution.TypeSolver typeSolver)
    • Method Detail

      • typePatternExprsExposedToChild

        public List<com.github.javaparser.ast.expr.TypePatternExpr> typePatternExprsExposedToChild​(com.github.javaparser.ast.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