Examples of Expression


Examples of com.sun.tools.internal.xjc.reader.gbind.Expression

        if(comp==XSModelGroup.CHOICE) {
            // empty choice is not epsilon, but empty set,
            // so this initial value is incorrect. But this
            // kinda works.
            // properly handling empty set requires more work.
            Expression e = Expression.EPSILON;
            for (XSParticle p : group.getChildren()) {
                if(e==null)     e = particle(p);
                else            e = new Choice(e,particle(p));
            }
            return e;
        } else {
            Expression e = Expression.EPSILON;
            for (XSParticle p : group.getChildren()) {
                if(e==null)     e = particle(p);
                else            e = new Sequence(e,particle(p));
            }
            return e;
View Full Code Here

Examples of com.sun.tools.xjc.reader.gbind.Expression

        // for the ease of use.
        // so we don't give a damn about 'forcedProps'.
        // although, for a future note, it's conceivable to expand
        // the binding algorithm to cover this notion.

        Expression tree = ExpressionBuilder.createTree(p);
        Graph g = new Graph(tree);
        for (ConnectedComponent cc : g) {
            buildProperty(cc);
        }
    }
View Full Code Here

Examples of com.tulskiy.musique.playlist.formatting.tokens.Expression

    public void saveM3U(File file) {
        try {
            PrintWriter pw = new PrintWriter(file);
            pw.println("#EXTM3U");
            Expression expression = Parser.parse("[%artist% - ]%title%");
            for (Track track : this) {
                if (track.getTrackData().isStream()) {
                    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.volantis.xml.expression.Expression

            factory.createSequence(left));
        context.getCurrentScope().declareVariable(
            new ImmutableExpandedName("", "right"),
            factory.createSequence(right));

        Expression exp = compileExpression("$left = (($right))");
        Value result = exp.evaluate(context);     
        assertTrue("Nested variable comparison failed",
            ((BooleanValue) result).asJavaBoolean());
    }
View Full Code Here

Examples of cs227b.teamIago.resolver.Expression

      return new Variable(new Atom((String)_s));
    return new Atom((String)_s);
  }
  Statement s = (Statement) _s;
  String opt = s.operator.toUpperCase();
  Expression res=null;
 
  // TYPES OF EXPRESSIONS
  // 1. Implication
  if (opt.equals("<=")){ // type implication
    Expression consequence = parseExpression(s.members.get(0));
    ExpList premises = parseExpList(s.members.subList(1, s.members.size()));
    res = new Implication(consequence, premises);
  } else if (opt.equals("=>")){ // type implication
    Expression consequence = parseExpression(s.members.get(s.members.size()-1));
    ExpList premises = parseExpList(s.members.subList(0, s.members.size()-1));
    res = new Implication(consequence, premises);
  }
  else if (opt.equals("OR") && s.members.size() >= 2)
  {
View Full Code Here

Examples of cz.jirutka.rsql.parser.model.Expression

    }

    @Override
    public Predicate buildPredicate(String query, Class entityClass, Root root, CriteriaBuilder cb)
    {
        Expression queryTree;
        try
        {
            logger.info("Parsing query: {}", query);
            queryTree = RSQLParser.parse(query);
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.expr.Expression

      return TripleRelation.EMPTY;
    }
   
    MutableRelation mutator = new MutableRelation(selected.baseRelation());

    Expression constraint = nodeMakers.constraint();
    if (!constraint.isTrue()) {
      // Same variable occured more than once, so we add a constraint to the base relation
      mutator.select(constraint);
    }
   
    mutator.project(nodeMakers.allProjections());
View Full Code Here

Examples of de.halirutan.mathematica.parsing.psi.api.Expression

  @Override
  public TextRange surroundElements(@NotNull final Project project, @NotNull final Editor editor, final Expression element) throws IncorrectOperationException {
    MathematicaPsiElementFactory factory = new MathematicaPsiElementFactory(project);
    CodeStyleManager codeStyleManager = CodeStyleManager.getInstance(project);

    Expression parExpr = factory.createExpressionFromText(myOpener + element.getText() + myCloser);
    parExpr = (Expression) codeStyleManager.reformat(parExpr);
    final PsiElement replace = element.replace(parExpr);
    return TextRange.from(replace.getTextOffset() + replace.getTextLength(), 0);
  }
View Full Code Here

Examples of de.sebastianbenz.task.query.Expression

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetExpression(Expression newExpression, NotificationChain msgs)
  {
    Expression oldExpression = expression;
    expression = newExpression;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, QueryPackage.QUERY__EXPRESSION, oldExpression, newExpression);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of dtool.ast.expressions.Expression

  public NodeResult<DeclarationStaticIf> parseDeclarationStaticIf(boolean isStatement) {
    ParseHelper parse = new ParseHelper(lookAheadElement());
    if(!tryConsume(DeeTokens.KW_STATIC, DeeTokens.KW_IF))
      return null;
   
    Expression exp = null;
    ConditionalBodyParseRule body = new ConditionalBodyParseRule();
   
    parsing: {
      if(parse.consumeRequired(DeeTokens.OPEN_PARENS).ruleBroken) break parsing;
      exp = parseAssignExpression_toMissing();
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.