MCPcopy Index your code
hub / github.com/antlr/codebuff / convertAnythingToIterator

Method convertAnythingToIterator

output/java8/1.4.13/Interpreter.java:1120–1126  ·  view source on GitHub ↗
(InstanceScope scope, Object o)

Source from the content-addressed store, hash-verified

1118 }
1119
1120 public Iterator<?> convertAnythingToIterator(InstanceScope scope, Object o) {
1121 o = convertAnythingIteratableToIterator(scope, o);
1122 if ( o instanceof Iterator ) return (Iterator<?>)o;
1123 List<Object> singleton = new ST. AttributeList(1);
1124 singleton.add(o);
1125 return singleton.iterator();
1126 }
1127
1128 protected boolean testAttributeTrue(Object a) {
1129 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