Examples of Expression


Examples of org.netbeans.modules.php.editor.parser.astnodes.Expression

    /**
     * Test of getStringValue method, of class YiiCodeUtils.
     */
    @Test
    public void testGetStringValue() {
        Expression e = null;
        String result = YiiCodeUtils.getStringValue(e);
        assertEquals("", result);

        Scalar scalar = new Scalar(0, 0, "1", Scalar.Type.INT);
        assertEquals("", YiiCodeUtils.getStringValue(scalar));
View Full Code Here

Examples of org.nuxeo.ecm.automation.core.scripting.Expression

        OperationContext ctx = new OperationContext(docCtx.getCoreSession());
        ctx.setInput(docCtx.getSourceDocument());
        ctx.put("addedMembers", buildPrincipalsString(addedMembers));
        ctx.put("removedMembers", buildPrincipalsString(removedMembers));

        Expression from = Scripting.newExpression("Env[\"mail.from\"]");
        // join both list to remove email of directly affected members
        addedMembers.addAll(removedMembers);
        StringList to = buildRecipientsList(sw, addedMembers);

        if (to.isEmpty()) {
View Full Code Here

Examples of org.objectweb.medor.expression.api.Expression

  public void testA() {
    FilterManager parser = new FilterManager(logger);
    for(int i=0; i<filters.length; i++) {
      logger.log(BasicLevel.DEBUG, "Parsing of filter: " + filters[i]);
      try {
        Expression exp = parser.getParser().parse(filters[i]);
        TestExpressionHelper.equals("", expressions[i], exp, logger);
      } catch (Error e) {
        fail(e.getMessage());
      } catch (Exception e) {
        Exception ie = ExceptionHelper.getNested(e);
View Full Code Here

Examples of org.omg.uml.foundation.datatypes.Expression

    /**
     * @see org.andromda.metafacades.uml.ParameterFacade#getDefaultValue()
     */
    public String handleGetDefaultValue()
    {
        final Expression expression = this.metaObject.getDefaultValue();
        return expression == null ? "" : expression.getBody();
    }
View Full Code Here

Examples of org.opengis.filter.expression.Expression

   *            A literal. A string that can be converted to a double.
   * @return filter
   */
  public Filter createBetweenFilter(String name, String lower, String upper) {
    PropertyName attrib = FF.property(name);
    Expression d1 = FF.literal(lower);
    Expression d2 = FF.literal(upper);
    return FF.between(attrib, d1, d2);
  }
View Full Code Here

Examples of org.openquark.cal.compiler.Expression

     * @return null if this is not an SC application, array of Expression otherwise.
     */
    static private Expression[] appChain (Expression root) {
        if (root.asAppl() != null) {
            // Walk down the left branch.
            Expression c = root;
            int nArgs = 0;
            while (c instanceof Expression.Appl) {
                nArgs++;
                c = ((Expression.Appl)c).getE1();
            }
View Full Code Here

Examples of org.outerj.expression.Expression

    public Expression parse(String expressionString) throws ParseException, ExpressionException
    {
        FormulaParser parser = new FormulaParser(new java.io.StringReader(expressionString)); //, functionFactory);
        parser.sum();

        Expression expression = parser.getExpression();
        expression.check();

        return expression;
    }
View Full Code Here

Examples of org.pdf4j.saxon.expr.Expression

        }
    }


    public Expression optimize(ExpressionVisitor visitor, ItemType contextItemType) throws XPathException {
        Expression exp = super.optimize(visitor, contextItemType);
        if (exp == this) {
            if (contextItemType.isAtomicType()) {
                return new ContextItemExpression();
            }
        }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.function.Expression

  protected void doneParsing() throws SAXException
  {
    super.doneParsing();
    if (formulaReadHandler != null)
    {
      final Expression expression = formulaReadHandler.getFormula();
      if (expression != null)
      {
        element.setAttributeExpression
            (AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, expression);
      }
View Full Code Here

Examples of org.rascalmpl.ast.Expression

        return processFormals(formals);
      }
     
      private String processFormals(List<Expression> formals) {
        if (formals.size() > 0) {
          Expression first = formals.get(0);
         
          if (first.isAsType()) {
            first = first.getArgument();
          }
          else if (first.isTypedVariableBecomes() || first.isVariableBecomes()) {
            first = first.getPattern();
          }
         
          if (first.isCallOrTree() && first.getExpression().isQualifiedName()) {
            return ((org.rascalmpl.semantics.dynamic.QualifiedName.Default) first.getExpression().getQualifiedName()).lastName();
          }
        }

        return null;
      }
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.