Package org.drools.assistant.engine

Examples of org.drools.assistant.engine.DRLParserEngine


    return ruleRefactorEngine.execute(offset);
  }
 
  @Override
  protected RuleRefactorInfo generateRuleRefactorInfo(String text) {
    ruleParserEngine = new DRLParserEngine(text);
    RuleRefactorInfo info = ruleParserEngine.parse();
    return info;
  }
View Full Code Here


    "  $result : Company(company == $company, retireAge <= $age)\n" +
    "then\n"+
    "  System.out.println(\"can retire\")\n" +
    "end\n";

    engine = new DRLParserEngine(rule);

  }
View Full Code Here

    "\t\tPrueba()\n" +
    "\tthen\n" +
    "\t\tSystem.out.println( myMessage );\n" +
    "\t\tm.setMessage( \"Bon Giorno\" );\n" +
    "end";
    engine = new DRLParserEngine(rule);
    info = (DRLRuleRefactorInfo) engine.parse();
    RuleBasicContentInfo content = info.getContentAt(173);

    Assert.assertEquals(true, content!=null);
    Assert.assertEquals(DRLContentTypeEnum.RULE_LHS_LINE, content.getType());
View Full Code Here

TOP

Related Classes of org.drools.assistant.engine.DRLParserEngine

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.