Skip to content

Commit a39d187

Browse files
Compile against shared NetLogo api
1 parent d815769 commit a39d187

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/ArrayExtension.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import org.nlogo.api.Argument;
1010
import org.nlogo.api.Dump;
1111
import org.nlogo.api.Context;
12-
import org.nlogo.api.DefaultReporter;
13-
import org.nlogo.api.DefaultCommand;
12+
import org.nlogo.api.Reporter;
13+
import org.nlogo.api.Command;
1414

1515
import java.util.Iterator;
1616

@@ -172,7 +172,7 @@ private LogoArray getOrCreateArrayFromId(long id) {
172172
return new LogoArray(id);
173173
}
174174

175-
public static class Item extends DefaultReporter {
175+
public static class Item implements Reporter {
176176
public Syntax getSyntax() {
177177
return SyntaxJ.reporterSyntax
178178
(new int[]{Syntax.WildcardType(),
@@ -202,7 +202,7 @@ public Object report(Argument args[], Context context)
202202
}
203203
}
204204

205-
public static class Set extends DefaultCommand {
205+
public static class Set implements Command {
206206
public Syntax getSyntax() {
207207
return Syntax.commandSyntax
208208
(new int[]{Syntax.WildcardType(),
@@ -232,7 +232,7 @@ public void perform(Argument args[], Context context)
232232
}
233233
}
234234

235-
public static class Length extends DefaultReporter {
235+
public static class Length implements Reporter {
236236
public Syntax getSyntax() {
237237
return SyntaxJ.reporterSyntax
238238
(new int[]{Syntax.WildcardType()},
@@ -254,7 +254,7 @@ public Object report(Argument args[], Context context)
254254
}
255255
}
256256

257-
public static class ToList extends DefaultReporter {
257+
public static class ToList implements Reporter {
258258
public Syntax getSyntax() {
259259
return SyntaxJ.reporterSyntax
260260
(new int[]{Syntax.WildcardType()},
@@ -276,7 +276,7 @@ public Object report(Argument args[], Context context)
276276
}
277277
}
278278

279-
public static class FromList extends DefaultReporter {
279+
public static class FromList implements Reporter {
280280
public Syntax getSyntax() {
281281
return SyntaxJ.reporterSyntax
282282
(new int[]{Syntax.ListType()},

0 commit comments

Comments
 (0)