(StringBuilder tr, InstanceScope scope, Object o)
| 1339 | } |
| 1340 | |
| 1341 | protected void printForTrace(StringBuilder tr, InstanceScope scope, Object o) { |
| 1342 | if ( o instanceof ST ) { |
| 1343 | if ( ((ST)o).impl==null ) tr.append("bad-template()"); |
| 1344 | else tr.append(" "+((ST)o).impl.name+"()"); |
| 1345 | return; |
| 1346 | } |
| 1347 | o = convertAnythingIteratableToIterator(scope, o); |
| 1348 | if ( o instanceof Iterator ) { |
| 1349 | Iterator<?> it = (Iterator<?>)o; |
| 1350 | tr.append(" ["); |
| 1351 | while ( it.hasNext() ) { |
| 1352 | Object iterValue = it.next(); |
| 1353 | printForTrace(tr, scope, iterValue); |
| 1354 | } |
| 1355 | tr.append(" ]"); |
| 1356 | } |
| 1357 | else { |
| 1358 | tr.append(" "+o); |
| 1359 | } |
| 1360 | } |
| 1361 | |
| 1362 | public List<InterpEvent> getEvents() { |
| 1363 | return events; |
no test coverage detected