private static String renderRange ( String name , Node < PluralType > node ) { if ( node . type ( ) == PluralType . RANGE ) { Struct < PluralType > range = node . asStruct ( ) ; int start = ( Integer ) range . nodes ( ) . get ( 0 ) . asAtom ( ) . value ( ) ; int end = ( Integer ) range . nodes ( ) . get ( 1 ) . asAtom ( ) . value ( ) ; return String . format ( "(%s >= %d && %s <= %d)" , name , start , name , end ) ; } return String . format ( "(%s == %s)" , name , node . asAtom ( ) . value ( ) ) ; }
Render a the range segment of an expression .