Package com.google.refine.grel.ast

Examples of com.google.refine.grel.ast.VariableExpr


        } else if (_token.type == TokenType.Identifier) {
            String text = _token.text;
            next(false);

            if (_token == null || _token.type != TokenType.Delimiter || !_token.text.equals("(")) {
                eval = "null".equals(text) ? new LiteralExpr(null) : new VariableExpr(text);
            } else if( "PI".equals(text) ) {
                eval = new LiteralExpr(Math.PI);
                next(false);
            } else {
                Function f = ControlFunctionRegistry.getFunction(text);
View Full Code Here


            return null;
        } else if ("regex".equals(_mode) && _pattern == null) {
            return null;
        }
       
        Evaluable eval = new VariableExpr("value");
       
        if ("regex".equals(_mode)) {
            return new ExpressionStringComparisonRowFilter(eval, _columnName, _cellIndex) {
                @Override
                protected boolean checkValue(String s) {
View Full Code Here

                    fragments.add(
                            new DynamicFragment(
                                    new FieldAccessorExpr(
                                            new FieldAccessorExpr(
                                                    new VariableExpr("cells"),
                                                    columnName),
                                    "value")));

                    continue;
                }
View Full Code Here

TOP

Related Classes of com.google.refine.grel.ast.VariableExpr

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.