private void addIntervalFallback ( MethodSpec . Builder method , String pattern ) { method . addComment ( "$S" , pattern ) ; for ( Node node : WRAPPER_PARSER . parseWrapper ( pattern ) ) { if ( node instanceof Text ) { method . addStatement ( "b.append($S)" , ( ( Text ) node ) . text ( ) ) ; } else if ( node instanceof Field ) { Field field = ( Field ) node ; String which = "s" ; if ( field . ch ( ) == ' ' ) { which = "e" ; } method . addStatement ( "formatSkeleton(k, $L, b)" , which ) ; } } }
Adds code to render the fallback pattern .