Package com.puppetlabs.geppetto.pp

Examples of com.puppetlabs.geppetto.pp.OrExpression


        if(result == null)
          result = defaultCase(theEObject);
        return result;
      }
      case PPPackage.OR_EXPRESSION: {
        OrExpression orExpression = (OrExpression) theEObject;
        T result = caseOrExpression(orExpression);
        if(result == null)
          result = caseBinaryExpression(orExpression);
        if(result == null)
          result = caseExpression(orExpression);
View Full Code Here


    // -- test non equality
    predicate.setOpName("!=");
    // -- test and / or
    AndExpression and = pf.createAndExpression();
    and.setLeftExpr(predicate);
    OrExpression or = pf.createOrExpression();

    EqualityExpression predicate2 = pf.createEqualityExpression();
    predicate2.setLeftExpr(createNameOrReference("name"));
    predicate2.setOpName("!=");
    predicate2.setRightExpr(createNameOrReference("Darth"));
    EqualityExpression predicate3 = pf.createEqualityExpression();
    predicate3.setLeftExpr(createNameOrReference("name"));
    predicate3.setOpName("!=");
    predicate3.setRightExpr(createNameOrReference("Vader"));
    or.setLeftExpr(predicate2);
    or.setRightExpr(predicate3);
    ParenthesisedExpression pe = pf.createParenthesisedExpression();
    pe.setExpr(or);
    and.setRightExpr(pe);
    eq.setExpr(and);
    s = serializeFormatted(pp);
View Full Code Here

    tester.diagnose().assertOK();

    // -- test and / or
    AndExpression and = pf.createAndExpression();
    and.setLeftExpr(predicate);
    OrExpression or = pf.createOrExpression();

    EqualityExpression predicate2 = pf.createEqualityExpression();
    predicate2.setLeftExpr(createNameOrReference("name"));
    predicate2.setOpName("!=");
    predicate2.setRightExpr(createNameOrReference("Darth"));
    EqualityExpression predicate3 = pf.createEqualityExpression();
    predicate3.setLeftExpr(createNameOrReference("name"));
    predicate3.setOpName("!=");
    predicate3.setRightExpr(createNameOrReference("Vader"));

    or.setLeftExpr(predicate2);
    or.setRightExpr(predicate3);
    ParenthesisedExpression pe = pf.createParenthesisedExpression();
    pe.setExpr(or);
    and.setRightExpr(pe);
    eq.setExpr(and);
    tester.validator().checkCollectExpression(ce);
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.pp.OrExpression

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.