Package com.google.gerrit.server.rules
Class RuleUtil
- java.lang.Object
-
- com.google.gerrit.server.rules.RuleUtil
-
public class RuleUtil extends Object
Provides utility methods for configuring and running Prolog rules inside Gerrit.
-
-
Constructor Summary
Constructors Constructor Description RuleUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.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.
-
-
-
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.
-
-