Examples of accept()


Examples of lupos.rif.generated.syntaxtree.NodeListOptional.accept()

    case 0:
      final NodeListOptional andFormulas = (NodeListOptional) ((List<INode>) n.f0.choice
          .accept(this, argu)).get(2);
      final Conjunction conj = new Conjunction();
      conj.setParent(argu);
      for (final INode node : (List<INode>) andFormulas
          .accept(this, conj))
        conj.addExpr((IExpression) node.accept(this, conj));
      return conj;
    case 1:
      final NodeListOptional orFormulas = (NodeListOptional) ((List<INode>) n.f0.choice
View Full Code Here

Examples of lupos.rif.generated.syntaxtree.RIFClause.accept()

      for (final INode node : ((List<INode>) seq.get(1).accept(this, rule)))
        rule.addVariable((RuleVariable) node.accept(this, rule));
      clause = (RIFClause) seq.get(3);
    } else
      clause = (RIFClause) n.f0.choice;
    clause.accept(this, rule);
    return rule;
  }

  public Object visit(final RIFClause n, final IRuleNode argu) {
    final Rule parent = (Rule) argu;
View Full Code Here

Examples of lupos.rif.model.Conjunction.accept()

        // normalize(And(...)) is either an atomic, an or formula or a
        // and formula.
        // TODO: Parent
        Conjunction conj = new Conjunction();
        conj.exprs.addAll(newConjuncts);
        return (IExpression) conj.accept(this, null);
      } else {
        // Either an atomic formula or an or formula.
        return newConjuncts.get(0);
      }
    }
View Full Code Here

Examples of lupos.rif.model.Disjunction.accept()

          orFormula.exprs.addAll(andFormulas);

          // normalize(Or(And(Fi G1) ... And(Fi Gm)))
          // TODO: Parent
          newConjuncts
              .add((IExpression) orFormula.accept(this, null));

          hasChanged = true;

          i++;
        } else {
View Full Code Here

Examples of lupos.rif.model.RulePredicate.accept()

      String nextGoal = body.termName.toString() + "_"
          + adornment.toString();
      if(this.goals.contains(nextGoal) && body.isRecursive()){
        // Recursive call -> create magic rule
      }
      body.accept(this, adornment.toString());
    }

    return null;
  }
View Full Code Here

Examples of lupos.sparql1_1.Node.accept()

      n = node.jjtGetChild(i); // get next child (which is sort condition)

      // parse node with the filter...
      final SPARQLParserVisitorImplementationDumper filterDumper = new SPARQLParserVisitorImplementationDumper();
      final String sortString = n.accept(filterDumper);

      try {
        final SortContainer sc = new SortContainer(this.prefix, desc,
            sortString); // create SortContainer
View Full Code Here

Examples of net.alteiar.beans.chat.Message.accept()

    System.out.println("wait for last message 1");
    Message result = getLastMessage(sendTextMessage);

    assertTrue("The message is for us so we can access it",
        result.accept(CampaignClient.getInstance().getCurrentPlayer()));

    sendTextMessage = new Runnable() {
      @Override
      public void run() {
        Message msg = new Message(expectedMessage);
View Full Code Here

Examples of net.emaze.dysfunctional.dispatching.logic.Predicate.accept()

    }

    @Test(expected = ClassCastException.class)
    public void passingNonStringToErasureYieldsException() {
        Predicate p = new StringEqualsIgnoreCase("a");
        p.accept(new Object());
    }   
   
    @Test
    public void testingEqualsYieldsTrue() {
        Assert.assertTrue(new StringEqualsIgnoreCase("a").accept("A"));
View Full Code Here

Examples of net.ftlines.metagen.processor.tree.BeanSpace.accept()

                annotated.getKind());
          }
        }
      }

      beans.accept(new PropertyResolvingVisitor(resolvers));
      beans.accept(new TrimmingVisitor());
      // beans.accept(new PrintVisitor());
      beans.accept(new ValidatingVisitor(environment));
      beans.accept(new SuperclassResolvingVisitor());
      beans.accept(new TrimmingVisitor());
View Full Code Here

Examples of net.mitza.rel.parser.expression.ExpressionNode.accept()

      logicalExpression = parseCondition(tokens);
      if (USE_CACHE) {
        cache.put(expression, logicalExpression);
      }
    } else {
      logicalExpression.accept(new SetContextVisitor(context));
    }

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