Examples of expression()


Examples of au.net.ocean.maven.plugin.annotation.Parameter.expression()

//                    }
                String alias = parameter.alias().trim();
                if (alias.length() > 0) {
                    parameterDescriptor.setAlias(alias);
                }
                parameterDescriptor.setExpression(parameter.expression().trim());
                parameterDescriptor.setDefaultValue(parameter.defaultValue());
            }
        }
        return parameterDescriptor;
    }
View Full Code Here

Examples of com.bpodgursky.jbool_expressions.parsers.BooleanExprParser.expression()

      ANTLRStringStream input = new ANTLRStringStream(expression);
      TokenStream tokens = new CommonTokenStream(new BooleanExprLexer(input));

      //parser generates abstract syntax tree
      BooleanExprParser parser = new BooleanExprParser(tokens);
      BooleanExprParser.expression_return ret = parser.expression();

      //acquire parse result
      CommonTree ast = (CommonTree) ret.getTree();
      return parse(ast, mapper);
    } catch (RecognitionException e) {
View Full Code Here

Examples of com.hp.hpl.jena.sparql.lang.arq.ARQParser.Expression()

    private Expr parseSPARQL(ByteArrayInputStream in) throws Throwable
    {
        try {
            ARQParser parser = new ARQParser(in) ;
            parser.setQuery(query) ;
            return parser.Expression() ;
        }
        catch (com.hp.hpl.jena.sparql.lang.arq.ParseException ex)
        { throw new QueryParseException(ex.getMessage(), ex.currentToken.beginLine, ex.currentToken.beginColumn) ; }
        catch (com.hp.hpl.jena.sparql.lang.arq.TokenMgrError tErr)
        { throw new QueryParseException(tErr.getMessage(),-1,-1) ; }
View Full Code Here

Examples of com.pogofish.jadt.parser.ParserImpl.expression()

        testExpression(_ClassReference(_Ref(_ClassType("foo.bar", NO_ACTUAL_TYPE_ARGUMENTS))), "foo.bar.class");
    }
   
    private void testExpression(Expression expected, String input) throws Exception {
        final ParserImpl p = parserImpl(input);
        final Expression expression = p.expression();
        assertEquals("[]", p.errors().toString());
        assertEquals(expected.toString(), expression.toString());
    }
   
    @Test
View Full Code Here

Examples of com.sonyericsson.hudson.plugins.metadata.search.antlr.QueryParser.expression()

    public static MetadataQuerySearch parseQuery(String queryString) throws Exception {
        CharStream charStream = new ANTLRStringStream(queryString);
        QueryLexer exprLexer = new QueryLexer(charStream);
        TokenStream tokenStream = new CommonTokenStream(exprLexer);
        QueryParser parser = new QueryParser(tokenStream);
        QueryParser.expression_return tree = parser.expression();
        return new MetadataQuerySearch((CommonTree)tree.getTree());
    }
}
View Full Code Here

Examples of edu.cmu.cs.fusion.parsers.predicate.FPLParser.expression()

  @Test
  public void testAndPredicate() throws ParseException {
    String string = "a AND b";
   
    FPLParser parser = new FPLParser(string, null, null);
    Predicate pred = parser.expression();
   
    Assert.assertTrue("Parsed predicate should be a AndPredicate, but is " + pred.getClass().getCanonicalName(), pred instanceof AndPredicate);
   
    AndPredicate val = (AndPredicate)pred;
   
View Full Code Here

Examples of javarepl.completion.CompletionResult.expression()

    @Test
    public void returnsCompletions() throws Exception {
        client.execute("life = 42");
        CompletionResult result = client.completions("li");

        assertThat(result.expression(), is("li"));
        assertThat(result.position(), is(0));
        assertThat(result.candidates().map(candidateValue()), is(one("life")));
    }

View Full Code Here

Examples of javarepl.console.ConsoleResult.expression()

    @Produces(MediaType.APPLICATION_JSON)
    public Model execute(@FormParam("expression") String expr) {
        ConsoleResult result = console.execute(expr);

        return model()
                .add("expression", result.expression())
                .add("logs", result.logs().map(commandResultToModel()));
    }

    @POST
    @Path("readExpression")
View Full Code Here

Examples of javax.faces.flow.builder.MethodCallBuilder.expression()

                    }
                    methodCallBuilder.parameters(paramList);
                }
                Class [] paramArray = new Class[paramTypes.size()];
                paramTypes.toArray(paramArray);
                methodCallBuilder.expression(methodStr, paramArray);
            }
           
            NodeList defaultOutcomeList = (NodeList)
                    xpath.evaluate(".//ns1:default-outcome/text()", methodCallNode, XPathConstants.NODESET);
            if (null != defaultOutcomeList && 1 < defaultOutcomeList.getLength()) {
View Full Code Here

Examples of jetbrick.template.parser.grammer.JetTemplateParser.Expression_listContext.expression()

            throw reportError("Arguments mismatch for #include directive.", ctx);
        }

        // argument 1: file
        SegmentCode fileCode = childrenCode.getChild(0);
        ExpressionContext fileExpression = expression_list.expression(0);
        if (!String.class.equals(fileCode.getKlass())) {
            throw reportError("Type mismatch: the first argument cannot convert from " + fileCode.getKlassName() + " to String", fileExpression);
        }

        // argument 2: parameters
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.