RandomSec/main/java/com/metaweb/gridworks/gel/Control.java
Stefano Mazzocchi 365868564f create 'main' and 'server'
git-svn-id: http://google-refine.googlecode.com/svn/branches/split-refactor@905 7d457c2a-affb-35e4-300a-418c747d4874
2010-05-30 16:52:50 +00:00

18 lines
547 B
Java

package com.metaweb.gridworks.gel;
import java.util.Properties;
import com.metaweb.gridworks.Jsonizable;
import com.metaweb.gridworks.expr.Evaluable;
/**
* Interface of GEL controls such as if, forEach, forNonBlank, with. A control can
* decide which part of the code to execute and can affect the environment bindings.
* Functions, on the other hand, can't do either.
*/
public interface Control extends Jsonizable {
public Object call(Properties bindings, Evaluable[] args);
public String checkArguments(Evaluable[] args);
}