public class EvaluateBeanshell extends AbstractNonCacheableEnforcerRule
| Constructor and Description |
|---|
EvaluateBeanshell() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
evaluateCondition(String script,
Log log)
Evaluate expression using Beanshell.
|
void |
execute(EnforcerRuleHelper helper) |
String |
getCondition() |
void |
setCondition(String condition) |
getCacheId, isCacheable, isResultValidgetLevel, getMessage, setLevel, setMessagepublic EvaluateBeanshell()
public final void setCondition(String condition)
public final String getCondition()
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRuleExceptionprotected boolean evaluateCondition(String script, Log log) throws EnforcerRuleException
script - the expression to be evaluatedlog - the loggerEnforcerRuleException - if the script could not be evaluatedCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.