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, isResultValid
getLevel, getMessage, setLevel, setMessage
public EvaluateBeanshell()
public final void setCondition(String condition)
public final String getCondition()
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRuleException
protected boolean evaluateCondition(String script, Log log) throws EnforcerRuleException
script
- the expression to be evaluatedlog
- the loggerEnforcerRuleException
- if the script could not be evaluatedCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.