CodeQL library for Java

Member predicate SwitchCase::getRuleExpression

Gets the expression on the right-hand side of the arrow, if any.

Note, this predicate gets a value when this switch case is of the form case e1 -> e2, where e2 is neither a block nor a throw statement. This predicate is mutually exclusive with getRuleStatement.

Expr getRuleExpression()