Class RuleConstructor.ActionClause

  • Enclosing class:
    RuleConstructor

    public final class RuleConstructor.ActionClause
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ActionClause()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RuleConstructor doAction​(java.lang.String... actions)
      Definition of actions for the rule.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActionClause

        public ActionClause()
    • Method Detail

      • doAction

        public RuleConstructor doAction​(java.lang.String... actions)

        Definition of actions for the rule.

        When called as

        doAction("debug(\"killing JVM\")", "killJVM()")

        rule looks

        DO debug("killing JVM"); killJVM()

        Parameters:
        actions - actions definitions to be part of the rule
        Returns:
        this, for having fluent api