Class RuleUtil


  • public class RuleUtil
    extends Object
    Provides utility methods for configuring and running Prolog rules inside Gerrit.
    • Constructor Detail

      • RuleUtil

        public RuleUtil()
    • Method Detail

      • reductionLimit

        public static int reductionLimit​(org.eclipse.jgit.lib.Config gerritConfig)
        Returns the reduction limit to be applied to the Prolog machine to prevent infinite loops and other forms of computational overflow.
      • compileReductionLimit

        public static int compileReductionLimit​(org.eclipse.jgit.lib.Config gerritConfig)
        Returns the compile reduction limit to be applied to the Prolog machine to prevent infinite loops and other forms of computational overflow. The compiled reduction limit should be used when user-provided Prolog code is compiled by the interpreter before the limit gets applied.