private static boolean isClass89 ( int x ) {
  while ( true ) {
    switch ( x ) {
      case 1 : return false ;
      case 89 : return true ;
      default : x = nextNumber ( x ) ;
    }
  }
}

private static boolean isClass89 ( int x ) { while ( true ) { switch ( x ) { case 1 : return false ; case 89 : return true ; default : x = nextNumber ( x ) ; } } }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (while_statement condition: (parenthesized_expression (true)) body: (block (switch_expression condition: (parenthesized_expression (identifier)) body: (switch_block (switch_block_statement_group (switch_label (decimal_integer_literal)) (return_statement (false))) (switch_block_statement_group (switch_label (decimal_integer_literal)) (return_statement (true))) (switch_block_statement_group (switch_label) (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier))))))))))))