Examples of ExpressionParser


Examples of org.apache.openjpa.kernel.exps.ExpressionParser

                JDBCFetchConfiguration.EAGER_JOIN);
        return paged;
    }

    public StoreQuery newQuery(String language) {
        ExpressionParser ep = QueryLanguages.parserForLanguage(language);
        if (ep != null)
            return new JDBCStoreQuery(this, ep);
        if (QueryLanguages.LANG_SQL.equals(language))
            return new SQLStoreQuery(this);
        return null;
View Full Code Here

Examples of org.apache.openjpa.kernel.exps.ExpressionParser

        beginOperation(false);
        try {
            StoreQuery sq = _store.newQuery(lang);
            if (sq == null) {
                ExpressionParser ep = QueryLanguages.parserForLanguage(lang);
                if (ep != null)
                    sq = new ExpressionStoreQuery(ep);
                else if (QueryLanguages.LANG_METHODQL.equals(lang))
                    sq = new MethodStoreQuery();
                else
View Full Code Here

Examples of org.apache.openjpa.kernel.exps.ExpressionParser

                JDBCFetchConfiguration.EAGER_JOIN);
        return paged;
    }

    private StoreQuery newStoreQuery(String language) {
        ExpressionParser ep = QueryLanguages.parserForLanguage(language);
        if (ep != null) {
            return new JDBCStoreQuery(this, ep);
        }
        if (QueryLanguages.LANG_SQL.equals(language)) {
            return new SQLStoreQuery(this);
View Full Code Here

Examples of org.auraframework.impl.expression.parser.ExpressionParser

        } catch (IOException x) {
            throw new AuraRuntimeException(x);
        }
        CommonTokenStream cts = new CommonTokenStream(lexer);
        ExpressionFactory ef = new ExpressionFactory(l);
        ExpressionParser parser = new ExpressionParser(cts);
        parser.setExpressionFactory(ef);
        try {
            return parser.expression();
        } catch (AuraLexerException x) {
            throw generateException(s, lexer, x.re, l);
        } catch (RecognitionException x) {
            throw generateException(s, parser, x, l);
        }
View Full Code Here

Examples of org.codehaus.aspectwerkz.definition.expression.ast.ExpressionParser

     * @param name
     */
    public ExpressionExpression(ExpressionNamespace namespace, String expression, String name) {
        super(namespace, expression, "", name, null);
        try {
            ExpressionParser parser = new ExpressionParser(new StringReader(expression));
            root = parser.ExpressionScript();

            // inflate anonymous expressions and register anonymous leaf (3x faster)
            StringBuffer inflated = (StringBuffer)root.jjtAccept(ANONYMOUSINFLATE_VISITOR, m_namespace);
            ExpressionParser parserInflate = new ExpressionParser(new StringReader(inflated.toString()));
            SimpleNode newRoot = parserInflate.ExpressionScript();

            // swap
            root = newRoot;
        }
        catch (Throwable t) {
View Full Code Here

Examples of org.formulacompiler.compiler.internal.expressions.parser.ExpressionParser

      final int definedNamesContext = getContext();
      while ((se = find( XMLConstants.Main.DEFINED_NAME, definedNamesContext )) != null) {
        final String name = se.getAttributeByName( XMLConstants.Main.NAME ).getValue();
        if (!name.startsWith( DEFINED_NAME_RESERVED_PREFIX )) {
          final String cellRangeAddress = getText();
          final ExpressionParser parser = new SpreadsheetExpressionParserA1OOXML( cellRangeAddress, _spreadsheet );
          try {
            final CellRange cellRange = (CellRange) parser.rangeOrCellRefA1();
            _spreadsheet.defineModelRangeName( name, cellRange );
          }
          catch (org.formulacompiler.compiler.internal.expressions.parser.ParseException e) {
            throw new SpreadsheetException.LoadError( "Error parsing named range " + name, e );
          }
View Full Code Here

Examples of org.jbpm.designer.expressioneditor.parser.ExpressionParser

        while ((line = lineReader.readLine()) != null) {

            logger.debug("line(" + lineReader.getLineNumber() + ") :" + line);

            ExpressionParser parser = new ExpressionParser(line);

            ConditionExpression conditionExpression = parser.parse();
            assertEqualsExpression(expectedExpressions.get(lineReader.getLineNumber()-1) , conditionExpression);
        }

    }
View Full Code Here

Examples of org.jbpm.designer.expressioneditor.parser.ExpressionParser

        Condition expectedCondition = new Condition("greaterOrEqualThan");
        expectedCondition.addParam("variable");
        expectedCondition.addParam("o\\náéö great! \"\n   áéíóúñÑ @|#~!·$%&/()=?¿");
        expectedExpression.getConditions().add(expectedCondition);

        ExpressionParser parser = new ExpressionParser(script);
        ConditionExpression actualExpression = parser.parse();

        System.out.println(actualExpression.getOperator());
        for (Condition condition : actualExpression.getConditions()) {
            System.out.println("condition: " + condition.getFunction());
            for (String param : condition.getParameters()) {
View Full Code Here

Examples of org.jitterbit.integration.data.script.ExpressionParser

        // ScriptTestUi for that (and for other reasons as well!).
        TestScriptProvider testProvider = getTestProvider();
        ScriptDebugModel debugModel = debugUi.getModel();
        FunctionTester tester = new DefaultFunctionTester(testProvider, debugModel, translator);
        functionInserterLookup.setFunctionTester(tester);
        ExpressionParser parser = new ExpressionParser(model.getSource());
        functionInserterLookup.setExpressionParser(parser);
    }
View Full Code Here

Examples of org.openbp.server.engine.script.ExpressionParser

    Object value = null;

    try
    {
      ExpressionParser parser = EngineUtil.createExpressionParser(context, null);
      value = parser.getContextPathValue(parserExpression, null, 0);
    }
    catch (OpenBPException e)
    {
      LogUtil.error(getClass(), "Error evaluating expression $0. [{1}]", parserExpression, context, e);
    }
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.