X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Foutput%2Ftemplate%2FScope.java;h=700ccfe7e9b717229869720ebc61f3eb387a5a41;hb=c9ed09f0007fc2c813815be927a5a24b23dab83c;hp=9a15b3a4c3ea8db8c218ff887d2d9aac80bdb322;hpb=0ef73ee014f4d1d2ef4aa2f5cb760a170da35f1e;p=gigi.git diff --git a/src/org/cacert/gigi/output/template/Scope.java b/src/org/cacert/gigi/output/template/Scope.java index 9a15b3a4..700ccfe7 100644 --- a/src/org/cacert/gigi/output/template/Scope.java +++ b/src/org/cacert/gigi/output/template/Scope.java @@ -6,12 +6,24 @@ import java.util.Map; import org.cacert.gigi.localisation.Language; +/** + * Builds a variable scope around another {@link Outputable}, statically filling + * variables. + */ public class Scope implements Outputable { private Map vars; private Outputable out; + /** + * Creates a new {@link Scope}. + * + * @param out + * the enclosed {@link Outputable}. + * @param vars + * the variables to assign in the inner scope. + */ public Scope(Outputable out, Map vars) { this.out = out; this.vars = vars;