Examples of FunctionCall


Examples of org.renjin.sexp.FunctionCall

      TranslationContext context, FunctionCall call) {
    SEXP argument = call.getArgument(0);
    if(!(argument instanceof FunctionCall)) {
      throw new InvalidSyntaxException(".Internal() expects a language object as its only argument");
    }
    FunctionCall primitiveCall = (FunctionCall) argument;

    return builder.translatePrimitiveCall(context, primitiveCall);
  }
View Full Code Here

Examples of org.renjin.sexp.FunctionCall

    SEXP arg = call.getArgument(0);
    assert arg!=null;
    if(!(arg instanceof FunctionCall)) {
      throw new EvalException("invalid .Internal() argument");
    }
    FunctionCall internalCall = (FunctionCall) arg;
    Symbol internalName = (Symbol)internalCall.getFunction();
    SEXP function = Primitives.getInternal(internalName);
    if(function==null || function == Null.INSTANCE) {
      throw new EvalException(String.format("no internal function \"%s\"", internalName.getPrintName()));
    }
    return ((Function)function).apply(context, rho, internalCall, internalCall.getArguments());
  }
View Full Code Here

Examples of org.renjin.sexp.FunctionCall

  @Override
  public FunctionCall apply(Context context, Environment rho, FunctionCall call,
      PairList args) {
 
    return new FunctionCall(call.getFunction(), call.getArguments(),
        AttributeMap.builder()
          .setClass("formula")
          .set(Symbols.DOT_ENVIRONMENT, rho)
          .build());
  }
View Full Code Here

Examples of org.xilaew.atg.model.tests.FunctionCall

      }
      // Read Values from Solver and store in Model
      if (solved == SolveResult.Solved) {
        TestCase tc = factory.createTestCase();
        result.getTests().add(tc);
        FunctionCall func = factory.createFunctionCall();
        func.setName(tcgActivity.getName());
        func.setActivity(tcgActivity);
        tc.setFunction(func);
        for (TCGVariable var : tcgActivity.getVariables()) {
          Value v = factory.createValue();
          v.setName(var.getName());
          v.setVariable(var);
          if (var.isIsParameter()) {
            Double value = null;
            try {
              value = ampl.getParameter(var.getName());
            } catch (IOException e) {
             
              e.printStackTrace();
              continue;
            }
            v.setValue(value);
            switch (var.getUsage()) {
            case IN_PARAMETER:
              func.getParameters().add(v);
              break;
            case OUT_PARAMETER:
              tc.getTestForValue().add(v);
              break;
            case INOUT_PARAMETER:
View Full Code Here

Examples of org.xilaew.atg.model.tests.FunctionCall

    // Create one Testcase per Path
    for (Entry<Path,Witness> p : paths.entrySet()) {
      // Read Values from Solver and store in Model
      TestCase tc = factory.createTestCase();
      result.getTests().add(tc);
      FunctionCall func = factory.createFunctionCall();
      func.setName(tcgActivity.getName());
      func.setActivity(tcgActivity);
      tc.setFunction(func);
      for (TCGVariable var : tcgActivity.getVariables()) {
        Value v = factory.createValue();
        v.setName(var.getName());
        v.setVariable(var);
        if (var.isIsParameter()) {
          Double value = p.getValue().get(var).get(0);
          v.setValue(value);
          switch (var.getUsage()) {
          case IN_PARAMETER:
            func.getParameters().add(v);
            break;
          case OUT_PARAMETER:
            tc.getTestForValue().add(v);
            break;
          case INOUT_PARAMETER:
View Full Code Here

Examples of r.nodes.ast.FunctionCall

                    if (i == posName) {
                        continue;
                    }
                    list.add(names[i], new Constant(args[i]));
                }
                return new RLanguage(new FunctionCall(functionName, list));
            }
        };
    }
View Full Code Here

Examples of xbird.xquery.expr.func.FunctionCall

                    baseType = filter.getType();
                    _hasContextualFilter = true;
                    continue;
                }
            } else if(e instanceof FunctionCall) {
                FunctionCall fc = (FunctionCall) e;
                BuiltInFunction fnlast = PredefinedFunctions.lookup(Last.SYMBOL);
                if(fnlast.getName().equals(fc.getFuncName())) { // if fn:last()
                    final LastFilter filter = new LastFilter(baseType);
                    _predicates.set(i, filter);
                    baseType = filter.getType();
                    _hasContextualFilter = true;
                    continue;
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.