Package lupos.rif.model

Examples of lupos.rif.model.AbstractExpressionContainer


    return term;
  }

  public Object visit(final RIFFrame n, final IRuleNode argu) {
    final List<INode> args = (List<INode>) n.f1.accept(this, argu);
    final AbstractExpressionContainer and = new Conjunction();
    for (final INode node : args) {
      final List<INode> nodeSeq = (List<INode>) node.accept(this, argu);
      final Uniterm term = new RulePredicate(true);
      term.setParent(argu);
      term.termName = (IExpression) nodeSeq.get(0).accept(this, term);
      term.termParams.add((IExpression) ((RIFAtomic)n.getParent().getParent().getParent()).f0.accept(this, term));
      term.termParams
          .add((IExpression) nodeSeq.get(2).accept(this, term));
      if (args.size() == 1)
        return term;
      else
        and.addExpr(term);
    }
    return and;
  }
View Full Code Here

TOP

Related Classes of lupos.rif.model.AbstractExpressionContainer

Copyright © 2018 www.massapicom. 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.