8 |
import gzz.*; |
import gzz.*; |
9 |
import gzz.potion.*; |
import gzz.potion.*; |
10 |
|
|
11 |
public class PrefixOrThis implements Function { |
public class PrefixOrThis extends PrefixOrOther { |
12 |
|
|
13 |
protected Cell getCell(Map context) { |
protected Cell getCell(Map context) { |
14 |
System.out.println("PrefixOrThis.getCell"); |
Fallback.Win win = (Fallback.Win)context.get(ViewContext.class); |
|
Fallback.Win win = (Fallback.Win)context.get(ViewContext.class); |
|
15 |
return win.cursor; |
return win.cursor; |
16 |
} |
} |
|
|
|
|
public List evaluate(List[] params, Map context) { |
|
|
return Collections.nCopies(1, getCell(context)); |
|
|
} |
|
|
|
|
17 |
public String getString(Expression[] params, Map context) { |
public String getString(Expression[] params, Map context) { |
18 |
return "the cell in this window"; |
return "the cell in this window"; |
|
} |
|
|
|
|
|
public void render(Expression[] params,Map context, HChain into) { |
|
|
} |
|
|
|
|
|
public Type[] getParams() { |
|
|
return new Type[0]; |
|
19 |
} |
} |
20 |
} |
} |