CodeQL library for Java
Search

Member predicate SwitchCase::getRuleStatement

Gets the statement 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 -> { s1; s2; ... } or case e1 -> throw .... This predicate is mutually exclusive with getRuleExpression.

Stmt getRuleStatement()