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