static int getBitmask ( char [ ] s ) {
  int temp = 0 ;
  for ( int j = 0 ;
  j < s . length ;
  j ++ ) {
    switch ( s [ j ] ) {
      case 's' : temp = temp | ( 1 ) ;
      break ;
      case 't' : temp = temp | ( 2 ) ;
      break ;
      case 'r' : temp = temp | ( 4 ) ;
      break ;
      case 'i' : temp = temp | ( 8 ) ;
      break ;
      case 'n' : temp = temp | ( 16 ) ;
      break ;
      case 'g' : temp = temp | ( 32 ) ;
      break ;
      default : break ;
    }
  }
  return temp ;
}

static int getBitmask ( char [ ] s ) { int temp = 0 ; for ( int j = 0 ; j < s . length ; j ++ ) { switch ( s [ j ] ) { case ' s ' : temp = temp | ( 1 ) ; break ; case ' t ' : temp = temp | ( 2 ) ; break ; case ' r ' : temp = temp | ( 4 ) ; break ; case ' i ' : temp = temp | ( 8 ) ; break ; case ' n ' : temp = temp | ( 16 ) ; break ; case ' g ' : temp = temp | ( 32 ) ; break ; default : break ; } } return temp ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier))) update: (update_expression (identifier)) body: (block (switch_expression condition: (parenthesized_expression (array_access array: (identifier) index: (identifier))) body: (switch_block (switch_block_statement_group (switch_label (character_literal)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (decimal_integer_literal))))) (break_statement)) (switch_block_statement_group (switch_label (character_literal)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (decimal_integer_literal))))) (break_statement)) (switch_block_statement_group (switch_label (character_literal)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (decimal_integer_literal))))) (break_statement)) (switch_block_statement_group (switch_label (character_literal)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (decimal_integer_literal))))) (break_statement)) (switch_block_statement_group (switch_label (character_literal)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (decimal_integer_literal))))) (break_statement)) (switch_block_statement_group (switch_label (character_literal)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (decimal_integer_literal))))) (break_statement)) (switch_block_statement_group (switch_label) (break_statement)))))) (return_statement (identifier))))