//(c):Benja Fallenstein package gzz.potion.potions; import gzz.potion.*; import java.util.*; import gzz.zzutil.*; import gzz.vob.linebreaking.HChain; import gzz.*; public class ConstantExpression implements FunctionExpression { protected List value; protected String showAs; public ConstantExpression(Object value, String showAs) { this(Collections.nCopies(1, value), showAs); } public ConstantExpression(List value, String showAs) { this.value = value; this.showAs = showAs; } public String getString(Map context) { return showAs; } public void render(Map context, HChain into) { } public boolean isComplete() { return true; } public List evaluate(Map context) { return value; } }