|
@@ -95,7 +95,7 @@ public class JavaPrepareDefinitionVisitor implements DefinitionVisitor<JavaClass
|
95
|
95
|
}
|
96
|
96
|
|
97
|
97
|
{
|
98
|
|
- JavaNativeClass iterator = new JavaNativeClass(JavaClass.ITERATOR);
|
|
98
|
+ JavaNativeClass iterator = new JavaNativeClass(new JavaClass("java.util", "Iterator", JavaClass.Kind.INTERFACE));
|
99
|
99
|
iterator.addMethod("empty", new JavaMethod(JavaClass.COLLECTIONS, JavaMethod.Kind.STATIC, "emptyIterator", false, "()Ljava/lang/Iterator;", JavaModifiers.STATIC | JavaModifiers.PUBLIC, false));
|
100
|
100
|
iterator.addInstanceMethod("hasNext", "hasNext", "()Z");
|
101
|
101
|
iterator.addInstanceMethod("next", "next", "()Ljava/lang/Object;");
|