public String generateTraceIndent ( int delta ) { if ( ! useIndent ) { return "" ; } else { if ( delta >= 1 ) { indentStack . push ( delta ) ; } else if ( delta < 0 ) { indentStack . pop ( ) ; } StringBuffer result = new StringBuffer ( ) ; traceIndent += ( delta < 0 ) ? delta : 0 ; for ( int i = 0 ; i < traceIndent ; i ++ ) { result . append ( " " ) ; } traceIndent += ( delta > 0 ) ? delta : 0 ; return result . toString ( ) ; } }
Generates a sequence of spaces to indent debugging output with .