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

Method convertAnythingToIterator

output/java8/1.4.15/Interpreter.java:1146–1152  ·  view source on GitHub ↗
(InstanceScope scope, Object o)

Source from the content-addressed store, hash-verified

1144 }
1145
1146 public Iterator<?> convertAnythingToIterator(InstanceScope scope, Object o) {
1147 o = convertAnythingIteratableToIterator(scope, o);
1148 if ( o instanceof Iterator ) return (Iterator<?>)o;
1149 List<Object> singleton = new ST.AttributeList(1);
1150 singleton.add(o);
1151 return singleton.iterator();
1152 }
1153
1154 protected boolean testAttributeTrue(Object a) {
1155 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