]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/template/ForeachStatement.java
Format code according do BenBE's formatter.
[gigi.git] / src / org / cacert / gigi / output / template / ForeachStatement.java
index cb74f84fc749d2cdc02bc07b34f9cc96ea23d99a..6cd1e0388809272a1808e43de2cc032aa4ad2ee8 100644 (file)
@@ -8,23 +8,25 @@ import org.cacert.gigi.Language;
 import org.cacert.gigi.output.Outputable;
 
 public final class ForeachStatement implements Outputable {
-       private final String variable;
-       private final TemplateBlock body;
 
-       public ForeachStatement(String variable, TemplateBlock body) {
-               this.variable = variable;
-               this.body = body;
-       }
+    private final String variable;
 
-       @Override
-       public void output(PrintWriter out, Language l, Map<String, Object> vars) {
-               Object o = vars.get(variable);
-               if (o instanceof IterableDataset) {
-                       IterableDataset id = (IterableDataset) o;
-                       Map<String, Object> subcontext = new HashMap<String, Object>(vars);
-                       while (id.next(l, subcontext)) {
-                               body.output(out, l, subcontext);
-                       }
-               }
-       }
-}
\ No newline at end of file
+    private final TemplateBlock body;
+
+    public ForeachStatement(String variable, TemplateBlock body) {
+        this.variable = variable;
+        this.body = body;
+    }
+
+    @Override
+    public void output(PrintWriter out, Language l, Map<String, Object> vars) {
+        Object o = vars.get(variable);
+        if (o instanceof IterableDataset) {
+            IterableDataset id = (IterableDataset) o;
+            Map<String, Object> subcontext = new HashMap<String, Object>(vars);
+            while (id.next(l, subcontext)) {
+                body.output(out, l, subcontext);
+            }
+        }
+    }
+}