MCPcopy Create free account
hub / github.com/antlr/codebuff / convertAnythingToIterator

Method convertAnythingToIterator

output/java8/1.4.14/Interpreter.java:1142–1148  ·  view source on GitHub ↗
(InstanceScope scope, Object o)

Source from the content-addressed store, hash-verified

1140 }
1141
1142 public Iterator<?> convertAnythingToIterator(InstanceScope scope, Object o) {
1143 o = convertAnythingIteratableToIterator(scope, o);
1144 if ( o instanceof Iterator ) return (Iterator<?>)o;
1145 List<Object> singleton = new ST.AttributeList(1);
1146 singleton.add(o);
1147 return singleton.iterator();
1148 }
1149
1150 protected boolean testAttributeTrue(Object a) {
1151 if ( a==null ) return false;

Callers 1

zip_mapMethod · 0.95

Calls 3

addMethod · 0.65
iteratorMethod · 0.65

Tested by

no test coverage detected