Examples of eval()


Examples of com.tulskiy.musique.playlist.formatting.tokens.Expression.eval()

                    pw.println(track.getTrackData().getLocation());
                } else if (track.getTrackData().isFile()) {
                    int seconds = (int) AudioMath.samplesToMillis(
                            track.getTrackData().getTotalSamples(),
                            track.getTrackData().getSampleRate()) / 1000;
                    String title = String.valueOf(expression.eval(track));
                    pw.printf("#EXTINF:%d,%s\n%s\n",
                            seconds, title,
                            track.getTrackData().getFile().getAbsolutePath());
                }
            }
View Full Code Here

Examples of com.ximpleware.extended.xpath.Predicate.eval()

  }
 
  public boolean evalPredicates(VTDNavHuge vn) throws NavExceptionHuge {
    Predicate temp = this.p;
    while(temp!=null) {
      if (temp.eval(vn)== false)
        return false;
      temp = temp.nextP;
    }
 
    return true;
View Full Code Here

Examples of eas.startSetup.arrowGUI.funktionen2D.Funktion.eval()

            this.calcCode += "\\\\\\hline\\hline\n";

            for (double x = xMin; x <= xMax; x += (xMax - xMin + 1) / xNum) {
                this.calcCode += "$" + StaticMethods.round(x, this.roundDigits) + "$";
                for (double y = yMin; y <= yMax; y += (yMax - yMin + 1) / yNum) {
                    this.calcCode += " & $" + StaticMethods.round(f.eval(x, y), this.roundDigits) + "$";
                }
                this.calcCode += "\\\\\\hline\n";
            }
           
            this.calcCode += "\\end{tabular}}";
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4compiler.translator.A4Solution.eval()

        A4Options opt = new A4Options();
        Command cmd = new Command(false, 3, 3, 3, expr.and(fact));
        A4Solution sol = TranslateAlloyToKodkod.execute_command(NOP, sigs, cmd, opt);
        System.out.println(sol.toString().trim());
        if (sol.satisfiable()) {
            System.out.println("In particular, File = " + sol.eval(file));
            System.out.println("In particular, Dir = " + sol.eval(dir));
            System.out.println("In particular, contains = " + sol.eval(contains));
            System.out.println("In particular, parent = " + sol.eval(parent));
        }
        System.out.println();
View Full Code Here

Examples of expressions.FuzzyExpression.eval()

        }

        List<FuzzyLiteral> res = new ArrayList();
        for (int i = 0; i < numberOfConstraints; i++) {
            FuzzyExpression exp = getRandomExpression(variables, pBinary, pUnary, pVar, pConst, maxDepth);
            double value = exp.eval(interpretation);
//           double upperbound = ceil(value + rand.nextDouble()*(1-value));
//           double lowerbound = floor(rand.nextDouble()*value);
            double upperbound = ceil(value);
            double lowerbound = floor(value);
            res.add(new FuzzyLiteral(lowerbound, upperbound, exp));
View Full Code Here

Examples of fmg.fmg8.pfeilGUI.funktionen2D.Funktion.eval()

        for (int ix = 0; ix < anfang; ix++) {
            neuDick.add(this.aktGrph.getDicken().get(ix));
        }
       
        for (int ix = anfang; ix <= ende; ix++) {
            neuDick.add(f.eval(ix - anfang, ypsilon));
        }

        for (int ix = ende + 1; ix < this.aktGrph.getPfeilPol().size(); ix++) {
            neuDick.add(this.aktGrph.getDicken().get(ix));
        }
View Full Code Here

Examples of javax.el.ELProcessor.eval()

public class TestAstAnd {

    @Test
    public void test01() {
        ELProcessor processor = new ELProcessor();
        Object result = processor.eval("true && true");
        Assert.assertEquals(Boolean.TRUE, result);
    }

    @Test
    public void test02() {
View Full Code Here

Examples of javax.faces.component.StateHelper.eval()

        helper.put(VALIDATOR_ID_KEY, validatorId);
    }

    public boolean isShowFieldMessages() {
        StateHelper helper = this.getStateHelper(true);
        return (Boolean) helper.eval(SHOW_FIELD_MESSAGES_KEY, false);
    }

    public void setShowFieldMessages(final boolean showFieldMessages) {
        StateHelper helper = this.getStateHelper(true);
        helper.put(SHOW_FIELD_MESSAGES_KEY, showFieldMessages);
View Full Code Here

Examples of javax.script.CompiledScript.eval()

      if(bean!=null)
      {
      context.setAttribute( "this", bean, ScriptContext.ENGINE_SCOPE );
      context.setAttribute( "self", bean, ScriptContext.ENGINE_SCOPE );
      }
      Object res = cscript.eval(context);
      assertEquals( expr, expectedResult, res);
      return res;
    }
    catch(ScriptException ex)
    {
View Full Code Here

Examples of javax.script.ScriptEngine.eval()

    }
    if(logger.isDebugEnabled())
      logger.debug("Transition Expressopn End");
   
    try {
      Object result = engine.eval(expression, variables);
      if(result instanceof Boolean && (Boolean)result) {
        return true;
      } else
        return false;
    } catch (Exception 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.