(StringBuilder tr, InstanceScope scope, Object o)
| 1316 | } |
| 1317 | |
| 1318 | protected void printForTrace(StringBuilder tr, InstanceScope scope, Object o) { |
| 1319 | if ( o instanceof ST ) { |
| 1320 | if ( ((ST)o).impl==null ) tr.append("bad-template()"); |
| 1321 | else tr.append(" "+((ST)o).impl.name+"()"); |
| 1322 | return; |
| 1323 | } |
| 1324 | o = convertAnythingIteratableToIterator(scope, o); |
| 1325 | if ( o instanceof Iterator ) { |
| 1326 | Iterator<?> it = (Iterator<?>)o; |
| 1327 | tr.append(" ["); |
| 1328 | while ( it.hasNext() ) { |
| 1329 | Object iterValue = it.next(); |
| 1330 | printForTrace(tr, scope, iterValue); |
| 1331 | } |
| 1332 | tr.append(" ]"); |
| 1333 | } |
| 1334 | else { |
| 1335 | tr.append(" "+o); |
| 1336 | } |
| 1337 | } |
| 1338 | |
| 1339 | public List<InterpEvent> getEvents() { |
| 1340 | return events; |
no test coverage detected