public static int abs ( int x ) {
  return ( x > 0 ) ? x : - x ;
}

public static int abs ( int x ) { return ( x > 0 ) ? x : - x ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (return_statement (ternary_expression condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (identifier) alternative: (unary_expression operand: (identifier))))))