Moved GEL stuff (gridworks expression language) into gel package.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@158 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
84269e7e83
commit
acfa19a683
@ -14,7 +14,7 @@ import com.metaweb.gridworks.browsing.FilteredRows;
|
||||
import com.metaweb.gridworks.browsing.filters.ExpressionEqualRowFilter;
|
||||
import com.metaweb.gridworks.browsing.filters.RowFilter;
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
import com.metaweb.gridworks.expr.Parser;
|
||||
import com.metaweb.gridworks.gel.Parser;
|
||||
import com.metaweb.gridworks.model.Project;
|
||||
|
||||
public class ListFacet implements Facet {
|
||||
|
@ -10,7 +10,7 @@ import com.metaweb.gridworks.browsing.FilteredRows;
|
||||
import com.metaweb.gridworks.browsing.filters.ExpressionNumberComparisonRowFilter;
|
||||
import com.metaweb.gridworks.browsing.filters.RowFilter;
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
import com.metaweb.gridworks.expr.Parser;
|
||||
import com.metaweb.gridworks.gel.Parser;
|
||||
import com.metaweb.gridworks.model.Column;
|
||||
import com.metaweb.gridworks.model.Project;
|
||||
|
||||
|
@ -10,7 +10,7 @@ import com.metaweb.gridworks.browsing.FilteredRows;
|
||||
import com.metaweb.gridworks.browsing.filters.ExpressionStringComparisonRowFilter;
|
||||
import com.metaweb.gridworks.browsing.filters.RowFilter;
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
import com.metaweb.gridworks.expr.ast.VariableExpr;
|
||||
import com.metaweb.gridworks.gel.ast.VariableExpr;
|
||||
import com.metaweb.gridworks.model.Project;
|
||||
|
||||
public class TextSearchFacet implements Facet {
|
||||
|
@ -11,9 +11,9 @@ import javax.servlet.http.HttpServletResponse;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.commands.Command;
|
||||
import com.metaweb.gridworks.expr.Control;
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Control;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class GetExpressionLanguageInfoCommand extends Command {
|
||||
|
||||
|
@ -16,8 +16,8 @@ import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
import com.metaweb.gridworks.expr.ExpressionUtils;
|
||||
import com.metaweb.gridworks.expr.HasFields;
|
||||
import com.metaweb.gridworks.expr.Parser;
|
||||
import com.metaweb.gridworks.expr.ParsingException;
|
||||
import com.metaweb.gridworks.gel.Parser;
|
||||
import com.metaweb.gridworks.model.Cell;
|
||||
import com.metaweb.gridworks.model.Project;
|
||||
import com.metaweb.gridworks.model.Row;
|
||||
|
@ -5,8 +5,8 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.HasFields;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Get implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Length implements Function {
|
||||
|
||||
|
@ -5,7 +5,7 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Slice implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.util.CalendarParser;
|
||||
import com.metaweb.gridworks.expr.util.CalendarParserException;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class ToDate implements Function {
|
||||
|
||||
|
@ -5,7 +5,7 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class ToNumber implements Function {
|
||||
|
||||
|
@ -7,7 +7,7 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class ToString implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Join implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Reverse implements Function {
|
||||
|
||||
|
@ -6,9 +6,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Sort implements Function {
|
||||
|
||||
|
@ -5,7 +5,7 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class And implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Not implements Function {
|
||||
|
||||
|
@ -5,7 +5,7 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Or implements Function {
|
||||
|
||||
|
@ -6,7 +6,7 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Now implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Ceil implements Function {
|
||||
|
||||
|
@ -5,7 +5,7 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Exp implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Floor implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Ln implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Log implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Max implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Min implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Mod implements Function {
|
||||
|
||||
|
@ -5,7 +5,7 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Pow implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Round implements Function {
|
||||
|
||||
|
@ -6,7 +6,7 @@ import org.apache.commons.lang.StringUtils;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Chomp implements Function {
|
||||
|
||||
|
@ -5,7 +5,7 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Contains implements Function {
|
||||
|
||||
|
@ -7,9 +7,9 @@ import org.apache.commons.lang.StringUtils;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.util.CalendarParser;
|
||||
import com.metaweb.gridworks.expr.util.CalendarParserException;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Diff implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class EndsWith implements Function {
|
||||
|
||||
|
@ -8,9 +8,9 @@ import org.apache.commons.lang.StringUtils;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Fingerprint implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class IndexOf implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class LastIndexOf implements Function {
|
||||
|
||||
|
@ -6,9 +6,9 @@ import org.apache.commons.codec.digest.DigestUtils;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class MD5 implements Function {
|
||||
|
||||
|
@ -5,7 +5,7 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Partition implements Function {
|
||||
|
||||
|
@ -8,9 +8,9 @@ import org.apache.commons.codec.language.Soundex;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Phonetic implements Function {
|
||||
|
||||
|
@ -5,7 +5,7 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class RPartition implements Function {
|
||||
|
||||
|
@ -6,9 +6,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Reinterpret implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Replace implements Function {
|
||||
|
||||
|
@ -6,9 +6,9 @@ import org.apache.commons.lang.StringUtils;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class ReplaceChars implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class ReplaceRegexp implements Function {
|
||||
|
||||
|
@ -6,9 +6,9 @@ import org.apache.commons.codec.digest.DigestUtils;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class SHA1 implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Split implements Function {
|
||||
|
||||
|
@ -6,9 +6,9 @@ import org.apache.commons.lang.StringUtils;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class SplitByCharType implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class StartsWith implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class ToLowercase implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class ToTitlecase implements Function {
|
||||
|
||||
|
@ -5,9 +5,9 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class ToUppercase implements Function {
|
||||
|
||||
|
@ -5,7 +5,7 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Trim implements Function {
|
||||
|
||||
|
@ -8,9 +8,9 @@ import org.apache.commons.lang.StringEscapeUtils;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Unescape implements Function {
|
||||
|
||||
|
@ -5,7 +5,7 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class Unicode implements Function {
|
||||
|
||||
|
@ -5,7 +5,7 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class UnicodeType implements Function {
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
package com.metaweb.gridworks.expr;
|
||||
package com.metaweb.gridworks.gel;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
import com.metaweb.gridworks.Jsonizable;
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
|
||||
public interface Control extends Jsonizable {
|
||||
public Object call(Properties bindings, Evaluable[] args);
|
@ -1,19 +1,10 @@
|
||||
package com.metaweb.gridworks.expr;
|
||||
package com.metaweb.gridworks.gel;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import com.metaweb.gridworks.expr.controls.ForEach;
|
||||
import com.metaweb.gridworks.expr.controls.ForNonBlank;
|
||||
import com.metaweb.gridworks.expr.controls.If;
|
||||
import com.metaweb.gridworks.expr.controls.IsBlank;
|
||||
import com.metaweb.gridworks.expr.controls.IsNonBlank;
|
||||
import com.metaweb.gridworks.expr.controls.IsNotNull;
|
||||
import com.metaweb.gridworks.expr.controls.IsNull;
|
||||
import com.metaweb.gridworks.expr.controls.IsNumeric;
|
||||
import com.metaweb.gridworks.expr.controls.With;
|
||||
import com.metaweb.gridworks.expr.functions.Get;
|
||||
import com.metaweb.gridworks.expr.functions.Length;
|
||||
import com.metaweb.gridworks.expr.functions.Slice;
|
||||
@ -61,6 +52,15 @@ import com.metaweb.gridworks.expr.functions.strings.Trim;
|
||||
import com.metaweb.gridworks.expr.functions.strings.Unescape;
|
||||
import com.metaweb.gridworks.expr.functions.strings.Unicode;
|
||||
import com.metaweb.gridworks.expr.functions.strings.UnicodeType;
|
||||
import com.metaweb.gridworks.gel.controls.ForEach;
|
||||
import com.metaweb.gridworks.gel.controls.ForNonBlank;
|
||||
import com.metaweb.gridworks.gel.controls.If;
|
||||
import com.metaweb.gridworks.gel.controls.IsBlank;
|
||||
import com.metaweb.gridworks.gel.controls.IsNonBlank;
|
||||
import com.metaweb.gridworks.gel.controls.IsNotNull;
|
||||
import com.metaweb.gridworks.gel.controls.IsNull;
|
||||
import com.metaweb.gridworks.gel.controls.IsNumeric;
|
||||
import com.metaweb.gridworks.gel.controls.With;
|
||||
|
||||
public class ControlFunctionRegistry {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.metaweb.gridworks.expr;
|
||||
package com.metaweb.gridworks.gel;
|
||||
|
||||
import java.util.Properties;
|
||||
|
@ -1,17 +1,19 @@
|
||||
package com.metaweb.gridworks.expr;
|
||||
package com.metaweb.gridworks.gel;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import com.metaweb.gridworks.expr.Scanner.NumberToken;
|
||||
import com.metaweb.gridworks.expr.Scanner.Token;
|
||||
import com.metaweb.gridworks.expr.Scanner.TokenType;
|
||||
import com.metaweb.gridworks.expr.ast.ControlCallExpr;
|
||||
import com.metaweb.gridworks.expr.ast.FieldAccessorExpr;
|
||||
import com.metaweb.gridworks.expr.ast.FunctionCallExpr;
|
||||
import com.metaweb.gridworks.expr.ast.LiteralExpr;
|
||||
import com.metaweb.gridworks.expr.ast.OperatorCallExpr;
|
||||
import com.metaweb.gridworks.expr.ast.VariableExpr;
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
import com.metaweb.gridworks.expr.ParsingException;
|
||||
import com.metaweb.gridworks.gel.Scanner.NumberToken;
|
||||
import com.metaweb.gridworks.gel.Scanner.Token;
|
||||
import com.metaweb.gridworks.gel.Scanner.TokenType;
|
||||
import com.metaweb.gridworks.gel.ast.ControlCallExpr;
|
||||
import com.metaweb.gridworks.gel.ast.FieldAccessorExpr;
|
||||
import com.metaweb.gridworks.gel.ast.FunctionCallExpr;
|
||||
import com.metaweb.gridworks.gel.ast.LiteralExpr;
|
||||
import com.metaweb.gridworks.gel.ast.OperatorCallExpr;
|
||||
import com.metaweb.gridworks.gel.ast.VariableExpr;
|
||||
|
||||
public class Parser {
|
||||
protected Scanner _scanner;
|
@ -1,4 +1,4 @@
|
||||
package com.metaweb.gridworks.expr;
|
||||
package com.metaweb.gridworks.gel;
|
||||
|
||||
public class Scanner {
|
||||
static public enum TokenType {
|
@ -1,9 +1,9 @@
|
||||
package com.metaweb.gridworks.expr.ast;
|
||||
package com.metaweb.gridworks.gel.ast;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
import com.metaweb.gridworks.expr.Control;
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
import com.metaweb.gridworks.gel.Control;
|
||||
|
||||
public class ControlCallExpr implements Evaluable {
|
||||
final protected Evaluable[] _args;
|
@ -1,4 +1,4 @@
|
||||
package com.metaweb.gridworks.expr.ast;
|
||||
package com.metaweb.gridworks.gel.ast;
|
||||
|
||||
import java.util.Properties;
|
||||
|
@ -1,10 +1,10 @@
|
||||
package com.metaweb.gridworks.expr.ast;
|
||||
package com.metaweb.gridworks.gel.ast;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
import com.metaweb.gridworks.expr.ExpressionUtils;
|
||||
import com.metaweb.gridworks.expr.Function;
|
||||
import com.metaweb.gridworks.gel.Function;
|
||||
|
||||
public class FunctionCallExpr implements Evaluable {
|
||||
final protected Evaluable[] _args;
|
@ -1,4 +1,4 @@
|
||||
package com.metaweb.gridworks.expr.ast;
|
||||
package com.metaweb.gridworks.gel.ast;
|
||||
|
||||
import java.util.Properties;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.metaweb.gridworks.expr.ast;
|
||||
package com.metaweb.gridworks.gel.ast;
|
||||
|
||||
import java.util.Properties;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.metaweb.gridworks.expr.ast;
|
||||
package com.metaweb.gridworks.gel.ast;
|
||||
|
||||
import java.util.Properties;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.metaweb.gridworks.expr.controls;
|
||||
package com.metaweb.gridworks.gel.controls;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@ -7,12 +7,12 @@ import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Control;
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.EvalError;
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
import com.metaweb.gridworks.expr.ExpressionUtils;
|
||||
import com.metaweb.gridworks.expr.ast.VariableExpr;
|
||||
import com.metaweb.gridworks.gel.Control;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.ast.VariableExpr;
|
||||
|
||||
public class ForEach implements Control {
|
||||
public String checkArguments(Evaluable[] args) {
|
@ -1,15 +1,15 @@
|
||||
package com.metaweb.gridworks.expr.controls;
|
||||
package com.metaweb.gridworks.gel.controls;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Control;
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
import com.metaweb.gridworks.expr.ExpressionUtils;
|
||||
import com.metaweb.gridworks.expr.ast.VariableExpr;
|
||||
import com.metaweb.gridworks.gel.Control;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.ast.VariableExpr;
|
||||
|
||||
public class ForNonBlank implements Control {
|
||||
public String checkArguments(Evaluable[] args) {
|
@ -1,14 +1,14 @@
|
||||
package com.metaweb.gridworks.expr.controls;
|
||||
package com.metaweb.gridworks.gel.controls;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Control;
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
import com.metaweb.gridworks.expr.ExpressionUtils;
|
||||
import com.metaweb.gridworks.gel.Control;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
|
||||
public class If implements Control {
|
||||
public String checkArguments(Evaluable[] args) {
|
@ -1,4 +1,4 @@
|
||||
package com.metaweb.gridworks.expr.controls;
|
||||
package com.metaweb.gridworks.gel.controls;
|
||||
|
||||
import com.metaweb.gridworks.expr.ExpressionUtils;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.metaweb.gridworks.expr.controls;
|
||||
package com.metaweb.gridworks.gel.controls;
|
||||
|
||||
import com.metaweb.gridworks.expr.ExpressionUtils;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.metaweb.gridworks.expr.controls;
|
||||
package com.metaweb.gridworks.gel.controls;
|
||||
|
||||
public class IsNotNull extends IsTest {
|
||||
@Override
|
@ -1,4 +1,4 @@
|
||||
package com.metaweb.gridworks.expr.controls;
|
||||
package com.metaweb.gridworks.gel.controls;
|
||||
|
||||
public class IsNull extends IsTest {
|
||||
@Override
|
@ -1,4 +1,4 @@
|
||||
package com.metaweb.gridworks.expr.controls;
|
||||
package com.metaweb.gridworks.gel.controls;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
@ -1,13 +1,13 @@
|
||||
package com.metaweb.gridworks.expr.controls;
|
||||
package com.metaweb.gridworks.gel.controls;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Control;
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
import com.metaweb.gridworks.gel.Control;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
|
||||
abstract class IsTest implements Control {
|
||||
public String checkArguments(Evaluable[] args) {
|
@ -1,14 +1,14 @@
|
||||
package com.metaweb.gridworks.expr.controls;
|
||||
package com.metaweb.gridworks.gel.controls;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONWriter;
|
||||
|
||||
import com.metaweb.gridworks.expr.Control;
|
||||
import com.metaweb.gridworks.expr.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
import com.metaweb.gridworks.expr.ast.VariableExpr;
|
||||
import com.metaweb.gridworks.gel.Control;
|
||||
import com.metaweb.gridworks.gel.ControlFunctionRegistry;
|
||||
import com.metaweb.gridworks.gel.ast.VariableExpr;
|
||||
|
||||
public class With implements Control {
|
||||
public String checkArguments(Evaluable[] args) {
|
@ -13,7 +13,7 @@ import com.metaweb.gridworks.browsing.FilteredRows;
|
||||
import com.metaweb.gridworks.browsing.RowVisitor;
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
import com.metaweb.gridworks.expr.ExpressionUtils;
|
||||
import com.metaweb.gridworks.expr.Parser;
|
||||
import com.metaweb.gridworks.gel.Parser;
|
||||
import com.metaweb.gridworks.history.Change;
|
||||
import com.metaweb.gridworks.history.HistoryEntry;
|
||||
import com.metaweb.gridworks.model.AbstractOperation;
|
||||
|
@ -10,7 +10,7 @@ import org.json.JSONWriter;
|
||||
import com.metaweb.gridworks.browsing.RowVisitor;
|
||||
import com.metaweb.gridworks.expr.Evaluable;
|
||||
import com.metaweb.gridworks.expr.ExpressionUtils;
|
||||
import com.metaweb.gridworks.expr.Parser;
|
||||
import com.metaweb.gridworks.gel.Parser;
|
||||
import com.metaweb.gridworks.model.AbstractOperation;
|
||||
import com.metaweb.gridworks.model.Cell;
|
||||
import com.metaweb.gridworks.model.Column;
|
||||
|
Loading…
Reference in New Issue
Block a user