Examples of eval()


Examples of org.exist.xquery.value.FunctionReference.eval()

            params.add(getArgument(i));
        }
        ref.setArguments(params);
        ref.analyze(new AnalyzeContextInfo(this, 0));
        // Evaluate the function
        return ref.eval(contextSequence);
    }
}
View Full Code Here

Examples of org.exist.xslt.expression.Template.eval()

//        item = (Item) document.getDocumentElement();
//      }
     
      context.setContextSequencePosition(pos, currentSequence);

      Sequence res = template.eval(contextSequence, item);
      result.addAll(res);
      if (res.getItemCount() > 0)
        break;

      pos++;
View Full Code Here

Examples of org.fnlp.ml.eval.Evaluation.eval()

    //从模型文件读入分类器
    Linear cl =Linear.loadFrom(modelFile);
   
    //性能评测
    Evaluation eval = new Evaluation(testset);
    eval.eval(cl,1);

    /**
     * 测试
     */
    System.out.println("类别 : 文本内容");
View Full Code Here

Examples of org.foray.fotree.value.FnBodyStart.eval()

            return lengthDT.getValue(fobj.traitFontSize(context));
        }
        if (value() instanceof FnBodyStart
                && direction == RelativeCompass.START) {
            final FnBodyStart function = (FnBodyStart) value();
            final DtLength lengthDT = function.eval(fobj, context);
            return lengthDT.getValue(fobj.traitFontSize(context));
        }
        throw this.unexpectedRetrieval();
    }
View Full Code Here

Examples of org.foray.fotree.value.FnLabelEnd.eval()

            return this.convertValueToLength(value(), fobj, context);
        }
        if (value() instanceof FnLabelEnd
                && direction == RelativeCompass.END) {
            final FnLabelEnd function = (FnLabelEnd) value();
            final DtLength lengthDT = function.eval(fobj, context);
            return lengthDT.getValue(fobj.traitFontSize(context));
        }
        if (value() instanceof FnBodyStart
                && direction == RelativeCompass.START) {
            final FnBodyStart function = (FnBodyStart) value();
View Full Code Here

Examples of org.jaggeryjs.scriptengine.engine.RhinoEngine.eval()

        sctx.setSourceModifiedTime(lastModified);

        includedScripts.put(fileURL, true);
        includesCallstack.push(fileURL);
        if (isJSON) {
            scope = (ScriptableObject) engine.eval(source, scope, sctx);
        } else {
            engine.exec(source, scope, sctx);
        }
        includesCallstack.pop();
        return scope;
View Full Code Here

Examples of org.jbpm.graph.action.Script.eval()

        if (script == null) {
            transitionNames = getNode().getOutgoingConnections().keySet();
        } else {
            Map<String, Object> outputMap = null;
            try {
                outputMap = script.eval(new JpdlExecutionContext());
            } catch (Exception e) {
                this.raiseException(e);
            }
            if (outputMap.size() == 1) {
                Object result = outputMap.values().iterator().next();
View Full Code Here

Examples of org.jmock.Constraint.eval()

    }

    public void testIsNull() {
        Constraint p = new IsNull();

        assertTrue(p.eval(null));
        assertTrue(!p.eval(new Object()));
    }

    public void testIsSame() {
        Object o1 = new Object();
View Full Code Here

Examples of org.jmock.core.Constraint.eval()

    Constraint ctr = addOpCheck01();
    StringBuffer sb = new StringBuffer();
    ctr.describeTo(sb);
    System.err.println(sb);
   
    assertTrue(ctr.eval(o));
  }
 
  private Constraint addOpCheck01() {
    BasicAttributes bas = new BasicAttributes();
    BasicAttribute ba = new BasicAttribute("uid", "ut061111");
View Full Code Here

Examples of org.jruby.Ruby.eval()

    Ruby ruby = initializeRuntime();

    Node scriptRootNode = (oldParseMethod != null ?
        (Node) ReflectionUtils.invokeMethod(oldParseMethod, ruby, new Object[] {scriptSource, "", null}) :
        ruby.parse(scriptSource, "", null, 0));
    IRubyObject rubyObject = ruby.eval(scriptRootNode);

    if (rubyObject instanceof RubyNil) {
      String className = findClassName(scriptRootNode);
      rubyObject = ruby.evalScript("\n" + className + ".new");
    }
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.