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 SummaryConstructors Constructor Description RuleUtil()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static intcompileReductionLimit(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 intreductionLimit(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- 
reductionLimitpublic 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.
 - 
compileReductionLimitpublic 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.
 
- 
 
-