Examples of ExpressionDeclItem


Examples of com.espertech.esper.epl.spec.ExpressionDeclItem

                }
            }
        }

        // find among global expressions
        ExpressionDeclItem found = exprDeclaredService.getExpression(name);
        if (found != null) {
            return new ExprDeclaredNodeImpl(found, parameters, contextDescriptor);
        }
        return null;
    }
View Full Code Here

Examples of com.espertech.esper.epl.spec.ExpressionDeclItem

        EsperEPL2GrammarParser.ExpressionLambdaDeclContext lambdactx = ctxexpr.expressionLambdaDecl();
        if (ctxexpr.expressionLambdaDecl() != null) {
            parametersNames = ASTLibFunctionHelper.getLambdaGoesParams(lambdactx);
        }

        ExpressionDeclItem expr = new ExpressionDeclItem(name, parametersNames, inner);
        return new Pair<ExpressionDeclItem, ExpressionScriptProvided>(expr, null);
    }
View Full Code Here

Examples of com.espertech.esper.epl.spec.ExpressionDeclItem

                    parametersNames = Collections.singletonList(paramParent.getChild(0).getText());
                }
            }
        }

        ExpressionDeclItem expr = new ExpressionDeclItem(name, parametersNames, inner);
        return new Pair<ExpressionDeclItem, ExpressionScriptProvided>(expr, null);
    }
View Full Code Here

Examples of com.espertech.esper.epl.spec.ExpressionDeclItem

                }
            }
        }

        // find among global expressions
        ExpressionDeclItem found = exprDeclaredService.getExpression(name);
        if (found != null) {
            return new ExprDeclaredNodeImpl(found, parameters);
        }
        return null;
    }
View Full Code Here

Examples of com.espertech.esper.epl.spec.ExpressionDeclItem

        this.globalScripts = new HashMap<String, List<ExpressionScriptProvided>>();
    }

    public synchronized String addExpressionOrScript(CreateExpressionDesc expressionDesc) throws ExprValidationException {
        if (expressionDesc.getExpression() != null) {
            ExpressionDeclItem expression = expressionDesc.getExpression();
            String name = expression.getName();
            if (globalExpressions.containsKey(name)) {
                throw new ExprValidationException("Expression '" + name + "' has already been declared");
            }
            globalExpressions.put(name, expression);
            return name;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.