(InstanceScope scope, Object o)
| 1157 | } |
| 1158 | |
| 1159 | public Iterator<?> convertAnythingToIterator(InstanceScope scope, Object o) { |
| 1160 | o = convertAnythingIteratableToIterator(scope, o); |
| 1161 | if ( o instanceof Iterator) return (Iterator<?>)o; |
| 1162 | List<Object> singleton = new ST.AttributeList(1); |
| 1163 | singleton.add(o); |
| 1164 | return singleton.iterator(); |
| 1165 | } |
| 1166 | |
| 1167 | protected boolean testAttributeTrue(Object a) { |
| 1168 | if ( a==null ) return false; |
no test coverage detected