(InstanceScope scope, Object o)
| 1176 | } |
| 1177 | |
| 1178 | public Iterator<?> convertAnythingToIterator(InstanceScope scope, Object o) { |
| 1179 | o = convertAnythingIteratableToIterator(scope, o); |
| 1180 | if ( o instanceof Iterator) return (Iterator<?>)o; |
| 1181 | List<Object> singleton = new ST.AttributeList(1); |
| 1182 | singleton.add(o); |
| 1183 | return singleton.iterator(); |
| 1184 | } |
| 1185 | |
| 1186 | protected boolean testAttributeTrue(Object a) { |
| 1187 | if ( a==null ) return false; |
no test coverage detected