public void format ( long number , StringBuilder toInsertInto , int pos , int recursionCount ) { if ( recursionCount >= RECURSION_LIMIT ) { throw new IllegalStateException ( "Recursion limit exceeded when applying ruleSet " + name ) ; } NFRule applicableRule = findNormalRule ( number ) ; applicableRule . doFormat ( number , toInsertInto , pos , ++ recursionCount ) ; }
Formats a long . Selects an appropriate rule and dispatches control to it .